Class: AboutDlg
- Inherits:
-
Qt::Dialog
- Object
- Qt::Dialog
- AboutDlg
- Defined in:
- lib/AboutDlg.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#aboutVersion ⇒ Object
readonly
Returns the value of attribute aboutVersion.
-
#buttonOk ⇒ Object
readonly
Returns the value of attribute buttonOk.
-
#TabPage ⇒ Object
readonly
Returns the value of attribute TabPage.
-
#tabWidget ⇒ Object
readonly
Returns the value of attribute tabWidget.
-
#textEdit1 ⇒ Object
readonly
Returns the value of attribute textEdit1.
-
#textLabel6 ⇒ Object
readonly
Returns the value of attribute textLabel6.
-
#Widget8 ⇒ Object
readonly
Returns the value of attribute Widget8.
-
#Widget9 ⇒ Object
readonly
Returns the value of attribute Widget9.
Instance Method Summary collapse
-
#initialize(parent = nil, name = nil, modal = false, fl = 0) ⇒ AboutDlg
constructor
A new instance of AboutDlg.
Constructor Details
#initialize(parent = nil, name = nil, modal = false, fl = 0) ⇒ AboutDlg
Returns a new instance of AboutDlg.
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 71 72 73 74 75 76 |
# File 'lib/AboutDlg.rb', line 23 def initialize(parent = nil, name = nil, modal = false, fl = 0) super if name.nil? setName("AboutDlg") end setSizeGripEnabled(true) @AboutDlgLayout = Qt::VBoxLayout.new(self, 11, 6, 'AboutDlgLayout') @tabWidget = Qt::TabWidget.new(self, "tabWidget") @Widget8 = Qt::Widget.new(@tabWidget, "Widget8") @Widget8Layout = Qt::GridLayout.new(@Widget8, 1, 1, 11, 6, 'Widget8Layout') @aboutVersion = Qt::Label.new(@Widget8, "aboutVersion") @Widget8Layout.addWidget(@aboutVersion, 0, 0) @tabWidget.insertTab(@Widget8, trUtf8("A&bout")) @Widget9 = Qt::Widget.new(@tabWidget, "Widget9") @Widget9Layout = Qt::GridLayout.new(@Widget9, 1, 1, 11, 6, 'Widget9Layout') @textLabel6 = Qt::Label.new(@Widget9, "textLabel6") @Widget9Layout.addWidget(@textLabel6, 0, 0) @tabWidget.insertTab(@Widget9, trUtf8("&Authors")) @TabPage = Qt::Widget.new(@tabWidget, "TabPage") @TabPageLayout = Qt::GridLayout.new(@TabPage, 1, 1, 11, 6, 'TabPageLayout') @textEdit1 = Qt::TextEdit.new(@TabPage, "textEdit1") @textEdit1.setTextFormat( Qt::TextEdit::RichText ) @textEdit1.setWordWrap( Qt::TextEdit::WidgetWidth ) @TabPageLayout.addWidget(@textEdit1, 0, 0) @tabWidget.insertTab(@TabPage, trUtf8("License Agreement")) @AboutDlgLayout.addWidget(@tabWidget) @Layout1 = Qt::HBoxLayout.new(nil, 0, 6, 'Layout1') @Horizontal_Spacing2 = Qt::SpacerItem.new(20, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) @Layout1.addItem(@Horizontal_Spacing2) = Qt::PushButton.new(self, "buttonOk") .setAutoDefault( true ) .setDefault( true ) @Layout1.addWidget() @AboutDlgLayout.addLayout(@Layout1) languageChange() resize( Qt::Size.new(566, 432).(minimumSizeHint()) ) clearWState( WState_Polished ) Qt::Object.connect(, SIGNAL("clicked()"), self, SLOT("accept()") ) end |
Instance Attribute Details
#aboutVersion ⇒ Object (readonly)
Returns the value of attribute aboutVersion.
15 16 17 |
# File 'lib/AboutDlg.rb', line 15 def aboutVersion @aboutVersion end |
#buttonOk ⇒ Object (readonly)
Returns the value of attribute buttonOk.
20 21 22 |
# File 'lib/AboutDlg.rb', line 20 def end |
#TabPage ⇒ Object (readonly)
Returns the value of attribute TabPage.
18 19 20 |
# File 'lib/AboutDlg.rb', line 18 def TabPage @TabPage end |
#tabWidget ⇒ Object (readonly)
Returns the value of attribute tabWidget.
13 14 15 |
# File 'lib/AboutDlg.rb', line 13 def tabWidget @tabWidget end |
#textEdit1 ⇒ Object (readonly)
Returns the value of attribute textEdit1.
19 20 21 |
# File 'lib/AboutDlg.rb', line 19 def textEdit1 @textEdit1 end |
#textLabel6 ⇒ Object (readonly)
Returns the value of attribute textLabel6.
17 18 19 |
# File 'lib/AboutDlg.rb', line 17 def textLabel6 @textLabel6 end |
#Widget8 ⇒ Object (readonly)
Returns the value of attribute Widget8.
14 15 16 |
# File 'lib/AboutDlg.rb', line 14 def Widget8 @Widget8 end |
#Widget9 ⇒ Object (readonly)
Returns the value of attribute Widget9.
16 17 18 |
# File 'lib/AboutDlg.rb', line 16 def Widget9 @Widget9 end |