Class: Ui_OpenFileInProjectDlg

Inherits:
Object
  • Object
show all
Defined in:
lib/ruber/main_window/ui/open_file_in_project_dlg.rb

Overview

** Form generated from reading ui file ‘open_file_in_project_dlg.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

Ui::OpenFileInProjectDlg

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#buttonsObject (readonly)

Returns the value of attribute buttons.



15
16
17
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 15

def buttons
  @buttons
end

#file_listObject (readonly)

Returns the value of attribute file_list.



17
18
19
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 17

def file_list
  @file_list
end

#gridLayoutObject (readonly)

Returns the value of attribute gridLayout.



11
12
13
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 11

def gridLayout
  @gridLayout
end

#labelObject (readonly)

Returns the value of attribute label.



12
13
14
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 12

def label
  @label
end

#label_2Object (readonly)

Returns the value of attribute label_2.



14
15
16
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 14

def label_2
  @label_2
end

#patternObject (readonly)

Returns the value of attribute pattern.



13
14
15
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 13

def pattern
  @pattern
end

#regexp_errorObject (readonly)

Returns the value of attribute regexp_error.



16
17
18
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 16

def regexp_error
  @regexp_error
end

Instance Method Details

#retranslate_ui(openFileInProjectDlg) ⇒ Object

retranslateUi



99
100
101
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 99

def retranslate_ui(openFileInProjectDlg)
    retranslateUi(openFileInProjectDlg)
end

#retranslateUi(openFileInProjectDlg) ⇒ Object



86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 86

def retranslateUi(openFileInProjectDlg)
openFileInProjectDlg.windowTitle = Qt::Application.translate("OpenFileInProjectDlg", "Open project file", nil, Qt::Application::UnicodeUTF8)
@label.text = Qt::Application.translate("OpenFileInProjectDlg", "&Pattern", nil, Qt::Application::UnicodeUTF8)
@pattern.toolTip = Qt::Application.translate("OpenFileInProjectDlg", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" \
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" \
"p, li { white-space: pre-wrap; }\n" \
"</style></head><body style=\" font-family:'Utopia'; font-size:10pt; font-weight:400; font-style:normal;\">\n" \
"<p align=\"justify\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">A regexp for the files to display. If it includes the path separator (the / character on UNIX), it will be matched agains the whole path of the file, otherwise only the name of the file will be matched</p></body></html>", nil, Qt::Application::UnicodeUTF8)
@pattern.whatsThis = Qt::Application.translate("OpenFileInProjectDlg", "A regexp for the files to display. If it includes the path separator (the / character on UNIX), it will be matched agains the whole path of the file, otherwise only the name of the file will be matched", nil, Qt::Application::UnicodeUTF8)
@label_2.text = Qt::Application.translate("OpenFileInProjectDlg", "&Files in project", nil, Qt::Application::UnicodeUTF8)
@regexp_error.text = Qt::Application.translate("OpenFileInProjectDlg", "Invalid regexp.", nil, Qt::Application::UnicodeUTF8)
end

#setup_ui(openFileInProjectDlg) ⇒ Object

setupUi



82
83
84
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 82

def setup_ui(openFileInProjectDlg)
    setupUi(openFileInProjectDlg)
end

#setupUi(openFileInProjectDlg) ⇒ Object



19
20
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
# File 'lib/ruber/main_window/ui/open_file_in_project_dlg.rb', line 19

def setupUi(openFileInProjectDlg)
if openFileInProjectDlg.objectName.nil?
    openFileInProjectDlg.objectName = "openFileInProjectDlg"
end
openFileInProjectDlg.resize(400, 353)
@gridLayout = Qt::GridLayout.new(openFileInProjectDlg)
@gridLayout.objectName = "gridLayout"
@label = Qt::Label.new(openFileInProjectDlg)
@label.objectName = "label"

@gridLayout.addWidget(@label, 0, 0, 1, 1)

@pattern = KDE::LineEdit.new(openFileInProjectDlg)
@pattern.objectName = "pattern"

@gridLayout.addWidget(@pattern, 1, 0, 1, 1)

@label_2 = Qt::Label.new(openFileInProjectDlg)
@label_2.objectName = "label_2"

@gridLayout.addWidget(@label_2, 3, 0, 1, 1)

@buttons = Qt::DialogButtonBox.new(openFileInProjectDlg)
@buttons.objectName = "buttons"
@buttons.orientation = Qt::Horizontal
@buttons.standardButtons = Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::Ok

@gridLayout.addWidget(@buttons, 5, 0, 1, 1)

@regexp_error = Qt::Label.new(openFileInProjectDlg)
@regexp_error.objectName = "regexp_error"
@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::Inactive, Qt::Palette::WindowText, 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)
@regexp_error.palette = @palette
@regexp_error.alignment = Qt::AlignCenter

@gridLayout.addWidget(@regexp_error, 2, 0, 1, 1)

@file_list = Qt::ListView.new(openFileInProjectDlg)
@file_list.objectName = "file_list"
@file_list.horizontalScrollBarPolicy = Qt::ScrollBarAsNeeded
@file_list.setProperty("showDropIndicator", Qt::Variant.new(false))
@file_list.textElideMode = Qt::ElideRight
@file_list.horizontalScrollMode = Qt::AbstractItemView::ScrollPerPixel

@gridLayout.addWidget(@file_list, 4, 0, 1, 1)

@label.buddy = @pattern
@label_2.buddy = @file_list

retranslateUi(openFileInProjectDlg)
Qt::Object.connect(@buttons, SIGNAL('accepted()'), openFileInProjectDlg, SLOT('accept()'))
Qt::Object.connect(@buttons, SIGNAL('rejected()'), openFileInProjectDlg, SLOT('reject()'))

Qt::MetaObject.connectSlotsByName(openFileInProjectDlg)
end