Class: LogFileSelectorDlg
- Inherits:
-
Qt::Dialog
- Object
- Qt::Dialog
- LogFileSelectorDlg
- Defined in:
- lib/LogFileSelectorDlg.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cancelBtn ⇒ Object
readonly
Returns the value of attribute cancelBtn.
-
#fileList ⇒ Object
readonly
Returns the value of attribute fileList.
-
#monitorBtn ⇒ Object
readonly
Returns the value of attribute monitorBtn.
-
#otherLogBtn ⇒ Object
readonly
Returns the value of attribute otherLogBtn.
-
#textLabel1 ⇒ Object
readonly
Returns the value of attribute textLabel1.
Instance Method Summary collapse
-
#initialize(parent = nil, name = nil, modal = false, fl = 0) ⇒ LogFileSelectorDlg
constructor
A new instance of LogFileSelectorDlg.
- #otherLogBtnClicked(*k) ⇒ Object
Constructor Details
#initialize(parent = nil, name = nil, modal = false, fl = 0) ⇒ LogFileSelectorDlg
Returns a new instance of LogFileSelectorDlg.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/LogFileSelectorDlg.rb', line 23 def initialize(parent = nil, name = nil, modal = false, fl = 0) super if name.nil? setName("LogFileSelectorDlg") end setSizeGripEnabled(true) @LogFileSelectorDlgLayout = Qt::GridLayout.new(self, 1, 1, 11, 6, 'LogFileSelectorDlgLayout') @fileList = Qt::ListView.new(self, "fileList") @fileList.addColumn(trUtf8("Name")) @fileList.addColumn(trUtf8("File")) @fileList.setAllColumnsShowFocus( true ) @LogFileSelectorDlgLayout.addWidget(@fileList, 1, 0) @textLabel1 = Qt::Label.new(self, "textLabel1") @LogFileSelectorDlgLayout.addWidget(@textLabel1, 0, 0) @layout2 = Qt::HBoxLayout.new(nil, 0, 6, 'layout2') @otherLogBtn = Qt::PushButton.new(self, "otherLogBtn") @layout2.addWidget(@otherLogBtn) @Horizontal_Spacing2 = Qt::SpacerItem.new(230, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @layout2.addItem(@Horizontal_Spacing2) @monitorBtn = Qt::PushButton.new(self, "monitorBtn") @monitorBtn.setEnabled( false ) @monitorBtn.setAutoDefault( true ) @monitorBtn.setDefault( true ) @layout2.addWidget(@monitorBtn) @cancelBtn = Qt::PushButton.new(self, "cancelBtn") @cancelBtn.setAutoDefault( true ) @layout2.addWidget(@cancelBtn) @LogFileSelectorDlgLayout.addLayout(@layout2, 2, 0) languageChange() resize( Qt::Size.new(511, 282).(minimumSizeHint()) ) clearWState( WState_Polished ) Qt::Object.connect(@fileList, SIGNAL("doubleClicked(QListViewItem*)"), self, SLOT("accept()") ) Qt::Object.connect(@cancelBtn, SIGNAL("clicked()"), self, SLOT("reject()") ) Qt::Object.connect(@otherLogBtn, SIGNAL("clicked()"), self, SLOT("otherLogBtnClicked()") ) Qt::Object.connect(@monitorBtn, SIGNAL("clicked()"), self, SLOT("accept()") ) end |
Instance Attribute Details
#cancelBtn ⇒ Object (readonly)
Returns the value of attribute cancelBtn.
20 21 22 |
# File 'lib/LogFileSelectorDlg.rb', line 20 def cancelBtn @cancelBtn end |
#fileList ⇒ Object (readonly)
Returns the value of attribute fileList.
16 17 18 |
# File 'lib/LogFileSelectorDlg.rb', line 16 def fileList @fileList end |
#monitorBtn ⇒ Object (readonly)
Returns the value of attribute monitorBtn.
19 20 21 |
# File 'lib/LogFileSelectorDlg.rb', line 19 def monitorBtn @monitorBtn end |
#otherLogBtn ⇒ Object (readonly)
Returns the value of attribute otherLogBtn.
18 19 20 |
# File 'lib/LogFileSelectorDlg.rb', line 18 def otherLogBtn @otherLogBtn end |
#textLabel1 ⇒ Object (readonly)
Returns the value of attribute textLabel1.
17 18 19 |
# File 'lib/LogFileSelectorDlg.rb', line 17 def textLabel1 @textLabel1 end |
Instance Method Details
#otherLogBtnClicked(*k) ⇒ Object
93 94 95 |
# File 'lib/LogFileSelectorDlg.rb', line 93 def otherLogBtnClicked(*k) print("LogFileSelectorDlg.otherLogBtnClicked(): Not implemented yet.\n") end |