Class: WorldMapDlg
- Inherits:
-
Qt::Widget
- Object
- Qt::Widget
- WorldMapDlg
- Defined in:
- lib/WorldMapDlg.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#closeBtn ⇒ Object
readonly
Returns the value of attribute closeBtn.
-
#lastMinutes ⇒ Object
readonly
Returns the value of attribute lastMinutes.
-
#mapFrame ⇒ Object
readonly
Returns the value of attribute mapFrame.
-
#showCitiesCB ⇒ Object
readonly
Returns the value of attribute showCitiesCB.
-
#showHostNamesCB ⇒ Object
readonly
Returns the value of attribute showHostNamesCB.
-
#showIPsCB ⇒ Object
readonly
Returns the value of attribute showIPsCB.
-
#showLastCB ⇒ Object
readonly
Returns the value of attribute showLastCB.
-
#showRoutersCB ⇒ Object
readonly
Returns the value of attribute showRoutersCB.
-
#showRoutesCB ⇒ Object
readonly
Returns the value of attribute showRoutesCB.
-
#textLabel2 ⇒ Object
readonly
Returns the value of attribute textLabel2.
Instance Method Summary collapse
-
#initialize(parent = nil, name = nil, fl = 0) ⇒ WorldMapDlg
constructor
A new instance of WorldMapDlg.
- #lastMinutesValueChanged(*k) ⇒ Object
- #showCitiesCBToggled(*k) ⇒ Object
- #showHostNamesCBToggled(*k) ⇒ Object
- #showIPsCBToggled(*k) ⇒ Object
- #showLastCBToggled(*k) ⇒ Object
- #showRoutersCBToggled(*k) ⇒ Object
- #showRoutesCBToggled(*k) ⇒ Object
Constructor Details
#initialize(parent = nil, name = nil, fl = 0) ⇒ WorldMapDlg
Returns a new instance of WorldMapDlg.
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/WorldMapDlg.rb', line 34 def initialize(parent = nil, name = nil, fl = 0) super if name.nil? setName("WorldMapDlg") end setSizePolicy(Qt::SizePolicy.new(5, 5, 0, 0, self.sizePolicy().hasHeightForWidth())) @WorldMapDlgLayout = Qt::GridLayout.new(self, 1, 1, 11, 6, 'WorldMapDlgLayout') @mapFrame = Qt::GroupBox.new(self, "mapFrame") @WorldMapDlgLayout.addMultiCellWidget(@mapFrame, 0, 0, 0, 10) @spacer4 = Qt::SpacerItem.new(30, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @WorldMapDlgLayout.addItem(@spacer4, 1, 9) @textLabel2 = Qt::Label.new(self, "textLabel2") @WorldMapDlgLayout.addWidget(@textLabel2, 1, 8) @lastMinutes = Qt::SpinBox.new(self, "lastMinutes") @lastMinutes.setEnabled( false ) @lastMinutes.setMaxValue( 32767 ) @lastMinutes.setMinValue( 1 ) @WorldMapDlgLayout.addWidget(@lastMinutes, 1, 7) @spacer7 = Qt::SpacerItem.new(20, 21, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @WorldMapDlgLayout.addItem(@spacer7, 1, 5) @showRoutersCB = Qt::CheckBox.new(self, "showRoutersCB") @WorldMapDlgLayout.addWidget(@showRoutersCB, 1, 3) @showIPsCB = Qt::CheckBox.new(self, "showIPsCB") @WorldMapDlgLayout.addWidget(@showIPsCB, 1, 0) @showHostNamesCB = Qt::CheckBox.new(self, "showHostNamesCB") @WorldMapDlgLayout.addWidget(@showHostNamesCB, 1, 1) @showCitiesCB = Qt::CheckBox.new(self, "showCitiesCB") @WorldMapDlgLayout.addWidget(@showCitiesCB, 1, 2) @showRoutesCB = Qt::CheckBox.new(self, "showRoutesCB") @WorldMapDlgLayout.addWidget(@showRoutesCB, 1, 4) @showLastCB = Qt::CheckBox.new(self, "showLastCB") @WorldMapDlgLayout.addWidget(@showLastCB, 1, 6) @closeBtn = Qt::PushButton.new(self, "closeBtn") @WorldMapDlgLayout.addWidget(@closeBtn, 1, 10) languageChange() resize( Qt::Size.new(1033, 878).(minimumSizeHint()) ) clearWState( WState_Polished ) Qt::Object.connect(@showCitiesCB, SIGNAL("toggled(bool)"), self, SLOT("showCitiesCBToggled(bool)") ) Qt::Object.connect(@showIPsCB, SIGNAL("toggled(bool)"), self, SLOT("showIPsCBToggled(bool)") ) Qt::Object.connect(@showRoutesCB, SIGNAL("toggled(bool)"), self, SLOT("showRoutesCBToggled(bool)") ) Qt::Object.connect(@closeBtn, SIGNAL("clicked()"), self, SLOT("close()") ) Qt::Object.connect(@showHostNamesCB, SIGNAL("toggled(bool)"), self, SLOT("showHostNamesCBToggled(bool)") ) Qt::Object.connect(@showLastCB, SIGNAL("toggled(bool)"), self, SLOT("showLastCBToggled(bool)") ) Qt::Object.connect(@lastMinutes, SIGNAL("valueChanged(int)"), self, SLOT("lastMinutesValueChanged(int)") ) Qt::Object.connect(@showRoutersCB, SIGNAL("toggled(bool)"), self, SLOT("showRoutersCBToggled(bool)") ) setTabOrder(@showIPsCB, @showHostNamesCB) setTabOrder(@showHostNamesCB, @showCitiesCB) setTabOrder(@showCitiesCB, @showRoutersCB) setTabOrder(@showRoutersCB, @showRoutesCB) setTabOrder(@showRoutesCB, @showLastCB) setTabOrder(@showLastCB, @lastMinutes) setTabOrder(@lastMinutes, @closeBtn) end |
Instance Attribute Details
#closeBtn ⇒ Object (readonly)
Returns the value of attribute closeBtn.
31 32 33 |
# File 'lib/WorldMapDlg.rb', line 31 def closeBtn @closeBtn end |
#lastMinutes ⇒ Object (readonly)
Returns the value of attribute lastMinutes.
24 25 26 |
# File 'lib/WorldMapDlg.rb', line 24 def lastMinutes @lastMinutes end |
#mapFrame ⇒ Object (readonly)
Returns the value of attribute mapFrame.
22 23 24 |
# File 'lib/WorldMapDlg.rb', line 22 def mapFrame @mapFrame end |
#showCitiesCB ⇒ Object (readonly)
Returns the value of attribute showCitiesCB.
28 29 30 |
# File 'lib/WorldMapDlg.rb', line 28 def showCitiesCB @showCitiesCB end |
#showHostNamesCB ⇒ Object (readonly)
Returns the value of attribute showHostNamesCB.
27 28 29 |
# File 'lib/WorldMapDlg.rb', line 27 def showHostNamesCB @showHostNamesCB end |
#showIPsCB ⇒ Object (readonly)
Returns the value of attribute showIPsCB.
26 27 28 |
# File 'lib/WorldMapDlg.rb', line 26 def showIPsCB @showIPsCB end |
#showLastCB ⇒ Object (readonly)
Returns the value of attribute showLastCB.
30 31 32 |
# File 'lib/WorldMapDlg.rb', line 30 def showLastCB @showLastCB end |
#showRoutersCB ⇒ Object (readonly)
Returns the value of attribute showRoutersCB.
25 26 27 |
# File 'lib/WorldMapDlg.rb', line 25 def showRoutersCB @showRoutersCB end |
#showRoutesCB ⇒ Object (readonly)
Returns the value of attribute showRoutesCB.
29 30 31 |
# File 'lib/WorldMapDlg.rb', line 29 def showRoutesCB @showRoutesCB end |
#textLabel2 ⇒ Object (readonly)
Returns the value of attribute textLabel2.
23 24 25 |
# File 'lib/WorldMapDlg.rb', line 23 def textLabel2 @textLabel2 end |
Instance Method Details
#lastMinutesValueChanged(*k) ⇒ Object
158 159 160 |
# File 'lib/WorldMapDlg.rb', line 158 def lastMinutesValueChanged(*k) print("WorldMapDlg.lastMinutesValueChanged(int): Not implemented yet.\n") end |
#showCitiesCBToggled(*k) ⇒ Object
138 139 140 |
# File 'lib/WorldMapDlg.rb', line 138 def showCitiesCBToggled(*k) print("WorldMapDlg.showCitiesCBToggled(bool): Not implemented yet.\n") end |
#showHostNamesCBToggled(*k) ⇒ Object
150 151 152 |
# File 'lib/WorldMapDlg.rb', line 150 def showHostNamesCBToggled(*k) print("WorldMapDlg.showHostNamesCBToggled(bool): Not implemented yet.\n") end |
#showIPsCBToggled(*k) ⇒ Object
142 143 144 |
# File 'lib/WorldMapDlg.rb', line 142 def showIPsCBToggled(*k) print("WorldMapDlg.showIPsCBToggled(bool): Not implemented yet.\n") end |
#showLastCBToggled(*k) ⇒ Object
154 155 156 |
# File 'lib/WorldMapDlg.rb', line 154 def showLastCBToggled(*k) print("WorldMapDlg.showLastCBToggled(bool): Not implemented yet.\n") end |
#showRoutersCBToggled(*k) ⇒ Object
162 163 164 |
# File 'lib/WorldMapDlg.rb', line 162 def showRoutersCBToggled(*k) print("WorldMapDlg.showRoutersCBToggled(bool): Not implemented yet.\n") end |
#showRoutesCBToggled(*k) ⇒ Object
146 147 148 |
# File 'lib/WorldMapDlg.rb', line 146 def showRoutesCBToggled(*k) print("WorldMapDlg.showRoutesCBToggled(bool): Not implemented yet.\n") end |