Class: Ui_SettingsDialog
- Inherits:
-
Object
- Object
- Ui_SettingsDialog
- Defined in:
- lib/ui/ui_settings.rb
Overview
** Form generated from reading ui file ‘settings.ui’ ** ** Created: 水 2月 10 17:46:30 2016 ** by: Qt User Interface Compiler version 4.8.7 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!
Direct Known Subclasses
Instance Attribute Summary collapse
-
#buttonBox ⇒ Object
readonly
Returns the value of attribute buttonBox.
-
#dictLanguageBox ⇒ Object
readonly
Returns the value of attribute dictLanguageBox.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#groupBox ⇒ Object
readonly
Returns the value of attribute groupBox.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#label_2 ⇒ Object
readonly
Returns the value of attribute label_2.
-
#maxResultsBox ⇒ Object
readonly
Returns the value of attribute maxResultsBox.
-
#rebuildIndexButton ⇒ Object
readonly
Returns the value of attribute rebuildIndexButton.
-
#verticalLayout ⇒ Object
readonly
Returns the value of attribute verticalLayout.
-
#verticalLayout_2 ⇒ Object
readonly
Returns the value of attribute verticalLayout_2.
-
#verticalSpacer ⇒ Object
readonly
Returns the value of attribute verticalSpacer.
Instance Method Summary collapse
-
#retranslate_ui(settingsDialog) ⇒ Object
retranslateUi.
- #retranslateUi(settingsDialog) ⇒ Object
-
#setup_ui(settingsDialog) ⇒ Object
setupUi.
- #setupUi(settingsDialog) ⇒ Object
Instance Attribute Details
#buttonBox ⇒ Object (readonly)
Returns the value of attribute buttonBox.
21 22 23 |
# File 'lib/ui/ui_settings.rb', line 21 def end |
#dictLanguageBox ⇒ Object (readonly)
Returns the value of attribute dictLanguageBox.
17 18 19 |
# File 'lib/ui/ui_settings.rb', line 17 def dictLanguageBox @dictLanguageBox end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
14 15 16 |
# File 'lib/ui/ui_settings.rb', line 14 def gridLayout @gridLayout end |
#groupBox ⇒ Object (readonly)
Returns the value of attribute groupBox.
13 14 15 |
# File 'lib/ui/ui_settings.rb', line 13 def groupBox @groupBox end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
16 17 18 |
# File 'lib/ui/ui_settings.rb', line 16 def label @label end |
#label_2 ⇒ Object (readonly)
Returns the value of attribute label_2.
19 20 21 |
# File 'lib/ui/ui_settings.rb', line 19 def label_2 @label_2 end |
#maxResultsBox ⇒ Object (readonly)
Returns the value of attribute maxResultsBox.
18 19 20 |
# File 'lib/ui/ui_settings.rb', line 18 def maxResultsBox @maxResultsBox end |
#rebuildIndexButton ⇒ Object (readonly)
Returns the value of attribute rebuildIndexButton.
15 16 17 |
# File 'lib/ui/ui_settings.rb', line 15 def rebuildIndexButton @rebuildIndexButton end |
#verticalLayout ⇒ Object (readonly)
Returns the value of attribute verticalLayout.
12 13 14 |
# File 'lib/ui/ui_settings.rb', line 12 def verticalLayout @verticalLayout end |
#verticalLayout_2 ⇒ Object (readonly)
Returns the value of attribute verticalLayout_2.
11 12 13 |
# File 'lib/ui/ui_settings.rb', line 11 def verticalLayout_2 @verticalLayout_2 end |
#verticalSpacer ⇒ Object (readonly)
Returns the value of attribute verticalSpacer.
20 21 22 |
# File 'lib/ui/ui_settings.rb', line 20 def verticalSpacer @verticalSpacer end |
Instance Method Details
#retranslate_ui(settingsDialog) ⇒ Object
retranslateUi
101 102 103 |
# File 'lib/ui/ui_settings.rb', line 101 def retranslate_ui(settingsDialog) retranslateUi(settingsDialog) end |
#retranslateUi(settingsDialog) ⇒ Object
93 94 95 96 97 98 99 |
# File 'lib/ui/ui_settings.rb', line 93 def retranslateUi(settingsDialog) settingsDialog.windowTitle = Qt::Application.translate("SettingsDialog", "Settings", nil, Qt::Application::UnicodeUTF8) @groupBox.title = Qt::Application.translate("SettingsDialog", "Settings", nil, Qt::Application::UnicodeUTF8) @rebuildIndexButton.text = Qt::Application.translate("SettingsDialog", "Rebuild Index", nil, Qt::Application::UnicodeUTF8) @label.text = Qt::Application.translate("SettingsDialog", "Max. Search Results: ", nil, Qt::Application::UnicodeUTF8) @label_2.text = Qt::Application.translate("SettingsDialog", "Dictionary Language: ", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(settingsDialog) ⇒ Object
setupUi
89 90 91 |
# File 'lib/ui/ui_settings.rb', line 89 def setup_ui(settingsDialog) setupUi(settingsDialog) end |
#setupUi(settingsDialog) ⇒ Object
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 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/ui/ui_settings.rb', line 23 def setupUi(settingsDialog) if settingsDialog.objectName.nil? settingsDialog.objectName = "settingsDialog" end settingsDialog.resize(400, 300) @verticalLayout_2 = Qt::VBoxLayout.new(settingsDialog) @verticalLayout_2.objectName = "verticalLayout_2" @verticalLayout = Qt::VBoxLayout.new() @verticalLayout.objectName = "verticalLayout" @groupBox = Qt::GroupBox.new(settingsDialog) @groupBox.objectName = "groupBox" @gridLayout = Qt::GridLayout.new(@groupBox) @gridLayout.objectName = "gridLayout" @rebuildIndexButton = Qt::PushButton.new(@groupBox) @rebuildIndexButton.objectName = "rebuildIndexButton" @gridLayout.addWidget(@rebuildIndexButton, 5, 0, 1, 1) @label = Qt::Label.new(@groupBox) @label.objectName = "label" @gridLayout.addWidget(@label, 0, 0, 1, 1) @dictLanguageBox = Qt::ComboBox.new(@groupBox) @dictLanguageBox.objectName = "dictLanguageBox" @gridLayout.addWidget(@dictLanguageBox, 2, 1, 1, 1) @maxResultsBox = Qt::SpinBox.new(@groupBox) @maxResultsBox.objectName = "maxResultsBox" @maxResultsBox.minimum = 1 @maxResultsBox.maximum = 1000 @maxResultsBox.value = 50 @gridLayout.addWidget(@maxResultsBox, 0, 1, 1, 1) @label_2 = Qt::Label.new(@groupBox) @label_2.objectName = "label_2" @gridLayout.addWidget(@label_2, 2, 0, 1, 1) @verticalSpacer = Qt::SpacerItem.new(20, 40, Qt::SizePolicy::Minimum, Qt::SizePolicy::Expanding) @gridLayout.addItem(@verticalSpacer, 3, 0, 1, 2) @verticalLayout.addWidget(@groupBox) @verticalLayout_2.addLayout(@verticalLayout) = Qt::DialogButtonBox.new(settingsDialog) .objectName = "buttonBox" .orientation = Qt::Horizontal .standardButtons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::Ok @verticalLayout_2.addWidget() retranslateUi(settingsDialog) Qt::Object.connect(, SIGNAL('accepted()'), settingsDialog, SLOT('accept()')) Qt::Object.connect(, SIGNAL('rejected()'), settingsDialog, SLOT('reject()')) Qt::MetaObject.connectSlotsByName(settingsDialog) end |