Class: Ui_NewProjectWidget
- Defined in:
- lib/ruber/main_window/ui/new_project_widget.rb
Overview
** Form generated from reading ui file ‘new_project_widget.ui’ ** ** Created: mer gen 12 12:12:11 2011 ** by: Qt User Interface Compiler version 4.7.1 ** ** WARNING! All changes made in this file will be lost when recompiling ui file!
Direct Known Subclasses
Instance Attribute Summary collapse
-
#container_dir ⇒ Object
readonly
Returns the value of attribute container_dir.
-
#final_location ⇒ Object
readonly
Returns the value of attribute final_location.
-
#gridLayout ⇒ Object
readonly
Returns the value of attribute gridLayout.
-
#horizontalSpacer ⇒ Object
readonly
Returns the value of attribute horizontalSpacer.
-
#invalid_project ⇒ Object
readonly
Returns the value of attribute invalid_project.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#label_2 ⇒ Object
readonly
Returns the value of attribute label_2.
-
#label_3 ⇒ Object
readonly
Returns the value of attribute label_3.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
Instance Method Summary collapse
-
#retranslate_ui(newProjectWidget) ⇒ Object
retranslateUi.
- #retranslateUi(newProjectWidget) ⇒ Object
-
#setup_ui(newProjectWidget) ⇒ Object
setupUi.
- #setupUi(newProjectWidget) ⇒ Object
Instance Attribute Details
#container_dir ⇒ Object (readonly)
Returns the value of attribute container_dir.
13 14 15 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 13 def container_dir @container_dir end |
#final_location ⇒ Object (readonly)
Returns the value of attribute final_location.
18 19 20 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 18 def final_location @final_location end |
#gridLayout ⇒ Object (readonly)
Returns the value of attribute gridLayout.
11 12 13 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 11 def gridLayout @gridLayout end |
#horizontalSpacer ⇒ Object (readonly)
Returns the value of attribute horizontalSpacer.
15 16 17 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 15 def horizontalSpacer @horizontalSpacer end |
#invalid_project ⇒ Object (readonly)
Returns the value of attribute invalid_project.
19 20 21 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 19 def invalid_project @invalid_project end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
12 13 14 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 12 def label @label end |
#label_2 ⇒ Object (readonly)
Returns the value of attribute label_2.
14 15 16 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 14 def label_2 @label_2 end |
#label_3 ⇒ Object (readonly)
Returns the value of attribute label_3.
17 18 19 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 17 def label_3 @label_3 end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
16 17 18 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 16 def project_name @project_name end |
Instance Method Details
#retranslate_ui(newProjectWidget) ⇒ Object
retranslateUi
109 110 111 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 109 def retranslate_ui(newProjectWidget) retranslateUi(newProjectWidget) end |
#retranslateUi(newProjectWidget) ⇒ Object
100 101 102 103 104 105 106 107 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 100 def retranslateUi(newProjectWidget) newProjectWidget.windowTitle = Qt::Application.translate("NewProjectWidget", "Form", nil, Qt::Application::UnicodeUTF8) @label.text = Qt::Application.translate("NewProjectWidget", "&Location", nil, Qt::Application::UnicodeUTF8) @label_2.text = Qt::Application.translate("NewProjectWidget", "&Project name", nil, Qt::Application::UnicodeUTF8) @label_3.text = Qt::Application.translate("NewProjectWidget", "Final location:", nil, Qt::Application::UnicodeUTF8) @final_location.text = '' @invalid_project.text = Qt::Application.translate("NewProjectWidget", "Invalid final location", nil, Qt::Application::UnicodeUTF8) end |
#setup_ui(newProjectWidget) ⇒ Object
setupUi
96 97 98 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 96 def setup_ui(newProjectWidget) setupUi(newProjectWidget) end |
#setupUi(newProjectWidget) ⇒ Object
21 22 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 88 89 90 91 92 93 94 |
# File 'lib/ruber/main_window/ui/new_project_widget.rb', line 21 def setupUi(newProjectWidget) if newProjectWidget.objectName.nil? newProjectWidget.objectName = "newProjectWidget" end newProjectWidget.resize(472, 124) newProjectWidget.minimumSize = Qt::Size.new(450, 100) @gridLayout = Qt::GridLayout.new(newProjectWidget) @gridLayout.objectName = "gridLayout" @label = Qt::Label.new(newProjectWidget) @label.objectName = "label" @gridLayout.addWidget(@label, 0, 0, 1, 1) @container_dir = KDE::UrlRequester.new(newProjectWidget) @container_dir.objectName = "container_dir" @gridLayout.addWidget(@container_dir, 0, 2, 1, 1) @label_2 = Qt::Label.new(newProjectWidget) @label_2.objectName = "label_2" @gridLayout.addWidget(@label_2, 1, 0, 1, 1) @horizontalSpacer = Qt::SpacerItem.new(17, 20, Qt::SizePolicy::Preferred, Qt::SizePolicy::Minimum) @gridLayout.addItem(@horizontalSpacer, 1, 1, 2, 1) @project_name = KDE::LineEdit.new(newProjectWidget) @project_name.objectName = "project_name" @gridLayout.addWidget(@project_name, 1, 2, 1, 1) @label_3 = Qt::Label.new(newProjectWidget) @label_3.objectName = "label_3" @gridLayout.addWidget(@label_3, 2, 0, 1, 1) @final_location = Qt::Label.new(newProjectWidget) @final_location.objectName = "final_location" @gridLayout.addWidget(@final_location, 2, 2, 1, 1) @invalid_project = Qt::Label.new(newProjectWidget) @invalid_project.objectName = "invalid_project" @palette = Qt::Palette.new brush = Qt::Brush.new(Qt::Color.new(255, 0, 0, 255)) brush.style = Qt::SolidPattern @palette.setBrush(Qt::Palette::Active, Qt::Palette::WindowText, brush) @palette.setBrush(Qt::Palette::Active, Qt::Palette::Text, brush) @palette.setBrush(Qt::Palette::Inactive, Qt::Palette::WindowText, brush) @palette.setBrush(Qt::Palette::Inactive, Qt::Palette::Text, brush) brush1 = Qt::Brush.new(Qt::Color.new(137, 141, 146, 255)) brush1.style = Qt::SolidPattern @palette.setBrush(Qt::Palette::Disabled, Qt::Palette::WindowText, brush1) brush2 = Qt::Brush.new(Qt::Color.new(146, 146, 146, 255)) brush2.style = Qt::SolidPattern @palette.setBrush(Qt::Palette::Disabled, Qt::Palette::Text, brush2) @invalid_project.palette = @palette @font = Qt::Font.new @font.bold = true @font.weight = 75 @invalid_project.font = @font @invalid_project.alignment = Qt::AlignCenter @gridLayout.addWidget(@invalid_project, 3, 0, 1, 3) @label.buddy = @container_dir @label_2.buddy = @project_name Qt::Widget.setTabOrder(@container_dir, @project_name) retranslateUi(newProjectWidget) Qt::MetaObject.connectSlotsByName(newProjectWidget) end |