clevic 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +12 -999
- data/Manifest.txt +1 -0
- data/README.txt +13 -10
- data/Rakefile +4 -3
- data/TODO +28 -13
- data/bin/clevic +64 -11
- data/config/hoe.rb +1 -1
- data/lib/clevic/browser.rb +86 -116
- data/lib/clevic/cache_table.rb +14 -4
- data/lib/clevic/db_options.rb +13 -8
- data/lib/clevic/delegates.rb +3 -1
- data/lib/clevic/extensions.rb +16 -0
- data/lib/clevic/field.rb +13 -3
- data/lib/clevic/field_builder.rb +42 -0
- data/lib/clevic/model_builder.rb +285 -92
- data/lib/clevic/record.rb +45 -2
- data/lib/clevic/table_model.rb +137 -40
- data/lib/clevic/table_view.rb +345 -150
- data/lib/clevic/ui/browser.ui +18 -73
- data/lib/clevic/ui/browser_ui.rb +57 -99
- data/lib/clevic/ui/search_dialog_ui.rb +51 -50
- data/lib/clevic/version.rb +1 -1
- data/models/accounts_models.rb +21 -26
- data/models/minimal_models.rb +2 -0
- data/models/times_models.rb +78 -79
- data/models/times_sqlite_models.rb +8 -8
- data/models/values_models.rb +7 -6
- data/website/index.html +24 -27
- metadata +4 -3
data/lib/clevic/ui/browser.ui
CHANGED
@@ -22,10 +22,13 @@
|
|
22
22
|
<x>0</x>
|
23
23
|
<y>0</y>
|
24
24
|
<width>727</width>
|
25
|
-
<height>
|
25
|
+
<height>31</height>
|
26
26
|
</rect>
|
27
27
|
</property>
|
28
28
|
<widget class="QMenu" name="menu_file" >
|
29
|
+
<property name="enabled" >
|
30
|
+
<bool>false</bool>
|
31
|
+
</property>
|
29
32
|
<property name="title" >
|
30
33
|
<string>&File</string>
|
31
34
|
</property>
|
@@ -36,31 +39,22 @@
|
|
36
39
|
</widget>
|
37
40
|
<widget class="QMenu" name="menu_edit" >
|
38
41
|
<property name="title" >
|
39
|
-
<string
|
42
|
+
<string>&Edit</string>
|
40
43
|
</property>
|
41
|
-
<addaction name="action_cut" />
|
42
|
-
<addaction name="action_copy" />
|
43
|
-
<addaction name="action_paste" />
|
44
44
|
</widget>
|
45
45
|
<widget class="QMenu" name="menu_search" >
|
46
46
|
<property name="title" >
|
47
47
|
<string>&Search</string>
|
48
48
|
</property>
|
49
|
-
<addaction name="action_filter" />
|
50
|
-
<addaction name="action_find" />
|
51
|
-
<addaction name="action_find_next" />
|
52
|
-
<addaction name="action_highlight" />
|
53
49
|
</widget>
|
54
50
|
<widget class="QMenu" name="menu_model" >
|
55
51
|
<property name="title" >
|
56
52
|
<string>&Table</string>
|
57
53
|
</property>
|
58
|
-
<addaction name="action_new_row" />
|
59
54
|
<addaction name="action_next" />
|
60
55
|
<addaction name="action_previous" />
|
61
|
-
<addaction name="separator" />
|
62
|
-
<addaction name="action_refresh" />
|
63
56
|
<addaction name="action_dump" />
|
57
|
+
<addaction name="separator" />
|
64
58
|
</widget>
|
65
59
|
<addaction name="menu_file" />
|
66
60
|
<addaction name="menu_edit" />
|
@@ -71,63 +65,32 @@
|
|
71
65
|
<property name="text" >
|
72
66
|
<string>&Open</string>
|
73
67
|
</property>
|
68
|
+
<property name="visible" >
|
69
|
+
<bool>false</bool>
|
70
|
+
</property>
|
74
71
|
</action>
|
75
72
|
<action name="action_close" >
|
76
73
|
<property name="text" >
|
77
74
|
<string>&Close</string>
|
78
75
|
</property>
|
76
|
+
<property name="visible" >
|
77
|
+
<bool>false</bool>
|
78
|
+
</property>
|
79
79
|
</action>
|
80
80
|
<action name="action_recent" >
|
81
81
|
<property name="text" >
|
82
82
|
<string>&Recent</string>
|
83
83
|
</property>
|
84
|
-
|
85
|
-
|
86
|
-
<property name="text" >
|
87
|
-
<string>Cut</string>
|
88
|
-
</property>
|
89
|
-
</action>
|
90
|
-
<action name="action_copy" >
|
91
|
-
<property name="text" >
|
92
|
-
<string>Copy</string>
|
93
|
-
</property>
|
94
|
-
</action>
|
95
|
-
<action name="action_paste" >
|
96
|
-
<property name="text" >
|
97
|
-
<string>Paste</string>
|
98
|
-
</property>
|
99
|
-
</action>
|
100
|
-
<action name="action_filter" >
|
101
|
-
<property name="checkable" >
|
102
|
-
<bool>true</bool>
|
103
|
-
</property>
|
104
|
-
<property name="text" >
|
105
|
-
<string>F&ilter by current</string>
|
106
|
-
</property>
|
107
|
-
<property name="toolTip" >
|
108
|
-
<string>Filter by value in current field</string>
|
109
|
-
</property>
|
110
|
-
<property name="shortcut" >
|
111
|
-
<string>Ctrl+L</string>
|
112
|
-
</property>
|
113
|
-
</action>
|
114
|
-
<action name="action_find" >
|
115
|
-
<property name="text" >
|
116
|
-
<string>&Find First</string>
|
117
|
-
</property>
|
118
|
-
<property name="statusTip" >
|
119
|
-
<string>Find a row with some value</string>
|
120
|
-
</property>
|
121
|
-
<property name="shortcut" >
|
122
|
-
<string>Ctrl+F</string>
|
84
|
+
<property name="visible" >
|
85
|
+
<bool>false</bool>
|
123
86
|
</property>
|
124
87
|
</action>
|
125
88
|
<action name="action_dump" >
|
126
89
|
<property name="text" >
|
127
|
-
<string
|
90
|
+
<string>&Dump</string>
|
128
91
|
</property>
|
129
92
|
<property name="shortcut" >
|
130
|
-
<string>
|
93
|
+
<string>Alt+Shift+D</string>
|
131
94
|
</property>
|
132
95
|
</action>
|
133
96
|
<action name="action_refresh" >
|
@@ -169,30 +132,12 @@
|
|
169
132
|
<string>Ctrl+Shift+Backtab</string>
|
170
133
|
</property>
|
171
134
|
</action>
|
172
|
-
<action name="action_highlight" >
|
173
|
-
<property name="text" >
|
174
|
-
<string>&Highlight</string>
|
175
|
-
</property>
|
176
|
-
<property name="shortcut" >
|
177
|
-
<string>Ctrl+H</string>
|
178
|
-
</property>
|
179
|
-
</action>
|
180
135
|
<action name="action_new_window" >
|
181
136
|
<property name="text" >
|
182
137
|
<string>&New Window</string>
|
183
138
|
</property>
|
184
|
-
|
185
|
-
|
186
|
-
<property name="text" >
|
187
|
-
<string>Find &Next</string>
|
188
|
-
</property>
|
189
|
-
<property name="shortcut" >
|
190
|
-
<string>Ctrl+G</string>
|
191
|
-
</property>
|
192
|
-
</action>
|
193
|
-
<action name="action_new_row" >
|
194
|
-
<property name="text" >
|
195
|
-
<string>New &Row</string>
|
139
|
+
<property name="visible" >
|
140
|
+
<bool>false</bool>
|
196
141
|
</property>
|
197
142
|
</action>
|
198
143
|
</widget>
|
data/lib/clevic/ui/browser_ui.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'browser.ui'
|
3
3
|
**
|
4
|
-
** Created:
|
5
|
-
** by: Qt User Interface Compiler version 4.3.
|
4
|
+
** Created: Fri Aug 8 22:32:38 2008
|
5
|
+
** by: Qt User Interface Compiler version 4.3.2
|
6
6
|
**
|
7
7
|
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
8
|
=end
|
@@ -11,21 +11,13 @@ class Ui_Browser
|
|
11
11
|
attr_reader :action_open
|
12
12
|
attr_reader :action_close
|
13
13
|
attr_reader :action_recent
|
14
|
-
attr_reader :action_cut
|
15
|
-
attr_reader :action_copy
|
16
|
-
attr_reader :action_paste
|
17
|
-
attr_reader :action_filter
|
18
|
-
attr_reader :action_find
|
19
14
|
attr_reader :action_dump
|
20
15
|
attr_reader :action_refresh
|
21
16
|
attr_reader :action_next
|
22
17
|
attr_reader :action_previous
|
23
|
-
attr_reader :action_highlight
|
24
18
|
attr_reader :action_new_window
|
25
|
-
attr_reader :action_find_next
|
26
|
-
attr_reader :action_new_row
|
27
19
|
attr_reader :main_widget
|
28
|
-
attr_reader :
|
20
|
+
attr_reader :qvboxLayout
|
29
21
|
attr_reader :statusbar
|
30
22
|
attr_reader :menubar
|
31
23
|
attr_reader :menu_file
|
@@ -34,64 +26,48 @@ class Ui_Browser
|
|
34
26
|
attr_reader :menu_model
|
35
27
|
|
36
28
|
def setupUi(browser)
|
37
|
-
|
38
|
-
|
39
|
-
end
|
40
|
-
browser.resize(727, 740)
|
41
|
-
icon = Qt::Icon.new("icon.png")
|
42
|
-
browser.windowIcon = icon
|
29
|
+
browser.setObjectName("browser")
|
30
|
+
browser.setWindowIcon(Qt::Icon.new("icon.png"))
|
43
31
|
@action_open = Qt::Action.new(browser)
|
44
|
-
@action_open.
|
32
|
+
@action_open.setObjectName("action_open")
|
33
|
+
@action_open.setVisible(false)
|
45
34
|
@action_close = Qt::Action.new(browser)
|
46
|
-
@action_close.
|
35
|
+
@action_close.setObjectName("action_close")
|
36
|
+
@action_close.setVisible(false)
|
47
37
|
@action_recent = Qt::Action.new(browser)
|
48
|
-
@action_recent.
|
49
|
-
@
|
50
|
-
@action_cut.objectName = "action_cut"
|
51
|
-
@action_copy = Qt::Action.new(browser)
|
52
|
-
@action_copy.objectName = "action_copy"
|
53
|
-
@action_paste = Qt::Action.new(browser)
|
54
|
-
@action_paste.objectName = "action_paste"
|
55
|
-
@action_filter = Qt::Action.new(browser)
|
56
|
-
@action_filter.objectName = "action_filter"
|
57
|
-
@action_filter.checkable = true
|
58
|
-
@action_find = Qt::Action.new(browser)
|
59
|
-
@action_find.objectName = "action_find"
|
38
|
+
@action_recent.setObjectName("action_recent")
|
39
|
+
@action_recent.setVisible(false)
|
60
40
|
@action_dump = Qt::Action.new(browser)
|
61
|
-
@action_dump.
|
41
|
+
@action_dump.setObjectName("action_dump")
|
62
42
|
@action_refresh = Qt::Action.new(browser)
|
63
|
-
@action_refresh.
|
43
|
+
@action_refresh.setObjectName("action_refresh")
|
64
44
|
@action_next = Qt::Action.new(browser)
|
65
|
-
@action_next.
|
45
|
+
@action_next.setObjectName("action_next")
|
66
46
|
@action_previous = Qt::Action.new(browser)
|
67
|
-
@action_previous.
|
68
|
-
@action_highlight = Qt::Action.new(browser)
|
69
|
-
@action_highlight.objectName = "action_highlight"
|
47
|
+
@action_previous.setObjectName("action_previous")
|
70
48
|
@action_new_window = Qt::Action.new(browser)
|
71
|
-
@action_new_window.
|
72
|
-
@
|
73
|
-
@action_find_next.objectName = "action_find_next"
|
74
|
-
@action_new_row = Qt::Action.new(browser)
|
75
|
-
@action_new_row.objectName = "action_new_row"
|
49
|
+
@action_new_window.setObjectName("action_new_window")
|
50
|
+
@action_new_window.setVisible(false)
|
76
51
|
@main_widget = Qt::Widget.new(browser)
|
77
|
-
@main_widget.
|
78
|
-
@
|
79
|
-
@
|
80
|
-
browser.
|
52
|
+
@main_widget.setObjectName("main_widget")
|
53
|
+
@qvboxLayout = Qt::VBoxLayout.new(@main_widget)
|
54
|
+
@qvboxLayout.setObjectName("qvboxLayout")
|
55
|
+
browser.setCentralWidget(@main_widget)
|
81
56
|
@statusbar = Qt::StatusBar.new(browser)
|
82
|
-
@statusbar.
|
83
|
-
browser.
|
57
|
+
@statusbar.setObjectName("statusbar")
|
58
|
+
browser.setStatusBar(@statusbar)
|
84
59
|
@menubar = Qt::MenuBar.new(browser)
|
85
|
-
@menubar.
|
86
|
-
@menubar.
|
60
|
+
@menubar.setObjectName("menubar")
|
61
|
+
@menubar.setGeometry(Qt::Rect.new(0, 0, 727, 31))
|
87
62
|
@menu_file = Qt::Menu.new(@menubar)
|
88
|
-
@menu_file.
|
63
|
+
@menu_file.setObjectName("menu_file")
|
64
|
+
@menu_file.setEnabled(false)
|
89
65
|
@menu_edit = Qt::Menu.new(@menubar)
|
90
|
-
@menu_edit.
|
66
|
+
@menu_edit.setObjectName("menu_edit")
|
91
67
|
@menu_search = Qt::Menu.new(@menubar)
|
92
|
-
@menu_search.
|
68
|
+
@menu_search.setObjectName("menu_search")
|
93
69
|
@menu_model = Qt::Menu.new(@menubar)
|
94
|
-
@menu_model.
|
70
|
+
@menu_model.setObjectName("menu_model")
|
95
71
|
browser.setMenuBar(@menubar)
|
96
72
|
|
97
73
|
@menubar.addAction(@menu_file.menuAction())
|
@@ -102,22 +78,18 @@ class Ui_Browser
|
|
102
78
|
@menu_file.addAction(@action_close)
|
103
79
|
@menu_file.addAction(@action_recent)
|
104
80
|
@menu_file.addAction(@action_new_window)
|
105
|
-
@menu_edit.addAction(@action_cut)
|
106
|
-
@menu_edit.addAction(@action_copy)
|
107
|
-
@menu_edit.addAction(@action_paste)
|
108
|
-
@menu_search.addAction(@action_filter)
|
109
|
-
@menu_search.addAction(@action_find)
|
110
|
-
@menu_search.addAction(@action_find_next)
|
111
|
-
@menu_search.addAction(@action_highlight)
|
112
|
-
@menu_model.addAction(@action_new_row)
|
113
81
|
@menu_model.addAction(@action_next)
|
114
82
|
@menu_model.addAction(@action_previous)
|
115
|
-
@menu_model.addSeparator()
|
116
|
-
@menu_model.addAction(@action_refresh)
|
117
83
|
@menu_model.addAction(@action_dump)
|
84
|
+
@menu_model.addSeparator()
|
118
85
|
|
119
86
|
retranslateUi(browser)
|
120
87
|
|
88
|
+
size = Qt::Size.new(727, 740)
|
89
|
+
size = size.expandedTo(browser.minimumSizeHint())
|
90
|
+
browser.resize(size)
|
91
|
+
|
92
|
+
|
121
93
|
Qt::MetaObject.connectSlotsByName(browser)
|
122
94
|
end # setupUi
|
123
95
|
|
@@ -126,41 +98,27 @@ class Ui_Browser
|
|
126
98
|
end
|
127
99
|
|
128
100
|
def retranslateUi(browser)
|
129
|
-
@action_open.
|
130
|
-
@action_close.
|
131
|
-
@action_recent.
|
132
|
-
@
|
133
|
-
@
|
134
|
-
@
|
135
|
-
@
|
136
|
-
@
|
137
|
-
@
|
138
|
-
@
|
139
|
-
@
|
140
|
-
@
|
141
|
-
@
|
142
|
-
@
|
143
|
-
@
|
144
|
-
@
|
145
|
-
@
|
146
|
-
@
|
147
|
-
@
|
148
|
-
@
|
149
|
-
@
|
150
|
-
@action_next.shortcut = Qt::Application.translate("Browser", "Ctrl+Tab", nil, Qt::Application::UnicodeUTF8)
|
151
|
-
@action_previous.text = Qt::Application.translate("Browser", "&Previous", nil, Qt::Application::UnicodeUTF8)
|
152
|
-
@action_previous.toolTip = Qt::Application.translate("Browser", "Previous Model", nil, Qt::Application::UnicodeUTF8)
|
153
|
-
@action_previous.shortcut = Qt::Application.translate("Browser", "Ctrl+Shift+Backtab", nil, Qt::Application::UnicodeUTF8)
|
154
|
-
@action_highlight.text = Qt::Application.translate("Browser", "&Highlight", nil, Qt::Application::UnicodeUTF8)
|
155
|
-
@action_highlight.shortcut = Qt::Application.translate("Browser", "Ctrl+H", nil, Qt::Application::UnicodeUTF8)
|
156
|
-
@action_new_window.text = Qt::Application.translate("Browser", "&New Window", nil, Qt::Application::UnicodeUTF8)
|
157
|
-
@action_find_next.text = Qt::Application.translate("Browser", "Find &Next", nil, Qt::Application::UnicodeUTF8)
|
158
|
-
@action_find_next.shortcut = Qt::Application.translate("Browser", "Ctrl+G", nil, Qt::Application::UnicodeUTF8)
|
159
|
-
@action_new_row.text = Qt::Application.translate("Browser", "New &Row", nil, Qt::Application::UnicodeUTF8)
|
160
|
-
@menu_file.title = Qt::Application.translate("Browser", "&File", nil, Qt::Application::UnicodeUTF8)
|
161
|
-
@menu_edit.title = Qt::Application.translate("Browser", "Edit", nil, Qt::Application::UnicodeUTF8)
|
162
|
-
@menu_search.title = Qt::Application.translate("Browser", "&Search", nil, Qt::Application::UnicodeUTF8)
|
163
|
-
@menu_model.title = Qt::Application.translate("Browser", "&Table", nil, Qt::Application::UnicodeUTF8)
|
101
|
+
@action_open.setText(Qt::Application.translate("Browser", "&Open", nil, Qt::Application::UnicodeUTF8))
|
102
|
+
@action_close.setText(Qt::Application.translate("Browser", "&Close", nil, Qt::Application::UnicodeUTF8))
|
103
|
+
@action_recent.setText(Qt::Application.translate("Browser", "&Recent", nil, Qt::Application::UnicodeUTF8))
|
104
|
+
@action_dump.setText(Qt::Application.translate("Browser", "&Dump", nil, Qt::Application::UnicodeUTF8))
|
105
|
+
@action_dump.setShortcut(Qt::Application.translate("Browser", "Alt+Shift+D", nil, Qt::Application::UnicodeUTF8))
|
106
|
+
@action_refresh.setText(Qt::Application.translate("Browser", "&Refresh", nil, Qt::Application::UnicodeUTF8))
|
107
|
+
@action_refresh.setIconText(Qt::Application.translate("Browser", "Refresh current table from database", nil, Qt::Application::UnicodeUTF8))
|
108
|
+
@action_refresh.setToolTip(Qt::Application.translate("Browser", "Refresh current table from database", nil, Qt::Application::UnicodeUTF8))
|
109
|
+
@action_refresh.setShortcut(Qt::Application.translate("Browser", "Ctrl+R", nil, Qt::Application::UnicodeUTF8))
|
110
|
+
@action_next.setText(Qt::Application.translate("Browser", "&Next", nil, Qt::Application::UnicodeUTF8))
|
111
|
+
@action_next.setIconText(Qt::Application.translate("Browser", "Next", nil, Qt::Application::UnicodeUTF8))
|
112
|
+
@action_next.setToolTip(Qt::Application.translate("Browser", "Next Model", nil, Qt::Application::UnicodeUTF8))
|
113
|
+
@action_next.setShortcut(Qt::Application.translate("Browser", "Ctrl+Tab", nil, Qt::Application::UnicodeUTF8))
|
114
|
+
@action_previous.setText(Qt::Application.translate("Browser", "&Previous", nil, Qt::Application::UnicodeUTF8))
|
115
|
+
@action_previous.setToolTip(Qt::Application.translate("Browser", "Previous Model", nil, Qt::Application::UnicodeUTF8))
|
116
|
+
@action_previous.setShortcut(Qt::Application.translate("Browser", "Ctrl+Shift+Backtab", nil, Qt::Application::UnicodeUTF8))
|
117
|
+
@action_new_window.setText(Qt::Application.translate("Browser", "&New Window", nil, Qt::Application::UnicodeUTF8))
|
118
|
+
@menu_file.setTitle(Qt::Application.translate("Browser", "&File", nil, Qt::Application::UnicodeUTF8))
|
119
|
+
@menu_edit.setTitle(Qt::Application.translate("Browser", "&Edit", nil, Qt::Application::UnicodeUTF8))
|
120
|
+
@menu_search.setTitle(Qt::Application.translate("Browser", "&Search", nil, Qt::Application::UnicodeUTF8))
|
121
|
+
@menu_model.setTitle(Qt::Application.translate("Browser", "&Table", nil, Qt::Application::UnicodeUTF8))
|
164
122
|
end # retranslateUi
|
165
123
|
|
166
124
|
def retranslate_ui(browser)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
=begin
|
2
2
|
** Form generated from reading ui file 'search_dialog.ui'
|
3
3
|
**
|
4
|
-
** Created:
|
5
|
-
** by: Qt User Interface Compiler version 4.3.
|
4
|
+
** Created: Sun Aug 3 22:07:49 2008
|
5
|
+
** by: Qt User Interface Compiler version 4.3.2
|
6
6
|
**
|
7
7
|
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
8
|
=end
|
@@ -20,57 +20,58 @@ class Ui_SearchDialog
|
|
20
20
|
attr_reader :backwards
|
21
21
|
|
22
22
|
def setupUi(searchDialog)
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
searchDialog.windowModality = Qt::WindowModal
|
27
|
-
searchDialog.resize(307, 400)
|
28
|
-
icon = Qt::Icon.new("../../hilfer/bin/hilfer-icon.png")
|
29
|
-
searchDialog.windowIcon = icon
|
23
|
+
searchDialog.setObjectName("searchDialog")
|
24
|
+
searchDialog.setWindowModality(Qt::WindowModal)
|
25
|
+
searchDialog.setWindowIcon(Qt::Icon.new("../../hilfer/bin/hilfer-icon.png"))
|
30
26
|
@button_box = Qt::DialogButtonBox.new(searchDialog)
|
31
|
-
@button_box.
|
32
|
-
@button_box.
|
33
|
-
@button_box.
|
34
|
-
@button_box.
|
27
|
+
@button_box.setObjectName("button_box")
|
28
|
+
@button_box.setGeometry(Qt::Rect.new(30, 240, 261, 32))
|
29
|
+
@button_box.setOrientation(Qt::Horizontal)
|
30
|
+
@button_box.setStandardButtons(Qt::DialogButtonBox::Cancel|Qt::DialogButtonBox::NoButton|Qt::DialogButtonBox::Ok)
|
35
31
|
@selected_rows = Qt::CheckBox.new(searchDialog)
|
36
|
-
@selected_rows.
|
37
|
-
@selected_rows.
|
38
|
-
@selected_rows.
|
32
|
+
@selected_rows.setObjectName("selected_rows")
|
33
|
+
@selected_rows.setEnabled(false)
|
34
|
+
@selected_rows.setGeometry(Qt::Rect.new(30, 280, 191, 21))
|
39
35
|
@selected_columns = Qt::CheckBox.new(searchDialog)
|
40
|
-
@selected_columns.
|
41
|
-
@selected_columns.
|
42
|
-
@selected_columns.
|
36
|
+
@selected_columns.setObjectName("selected_columns")
|
37
|
+
@selected_columns.setEnabled(false)
|
38
|
+
@selected_columns.setGeometry(Qt::Rect.new(30, 310, 191, 21))
|
43
39
|
@search_label = Qt::Label.new(searchDialog)
|
44
|
-
@search_label.
|
45
|
-
@search_label.
|
46
|
-
@search_label.
|
40
|
+
@search_label.setObjectName("search_label")
|
41
|
+
@search_label.setGeometry(Qt::Rect.new(20, 10, 51, 21))
|
42
|
+
@search_label.setTextFormat(Qt::PlainText)
|
47
43
|
@search_combo = Qt::ComboBox.new(searchDialog)
|
48
|
-
@search_combo.
|
49
|
-
@search_combo.
|
50
|
-
@search_combo.
|
51
|
-
@search_combo.
|
44
|
+
@search_combo.setObjectName("search_combo")
|
45
|
+
@search_combo.setGeometry(Qt::Rect.new(90, 10, 201, 25))
|
46
|
+
@search_combo.setFocusPolicy(Qt::StrongFocus)
|
47
|
+
@search_combo.setEditable(true)
|
52
48
|
@from_start = Qt::CheckBox.new(searchDialog)
|
53
|
-
@from_start.
|
54
|
-
@from_start.
|
49
|
+
@from_start.setObjectName("from_start")
|
50
|
+
@from_start.setGeometry(Qt::Rect.new(90, 50, 191, 21))
|
55
51
|
@regex = Qt::CheckBox.new(searchDialog)
|
56
|
-
@regex.
|
57
|
-
@regex.
|
52
|
+
@regex.setObjectName("regex")
|
53
|
+
@regex.setGeometry(Qt::Rect.new(90, 80, 191, 21))
|
58
54
|
@whole_words = Qt::CheckBox.new(searchDialog)
|
59
|
-
@whole_words.
|
60
|
-
@whole_words.
|
55
|
+
@whole_words.setObjectName("whole_words")
|
56
|
+
@whole_words.setGeometry(Qt::Rect.new(90, 110, 191, 21))
|
61
57
|
@forwards = Qt::RadioButton.new(searchDialog)
|
62
|
-
@forwards.
|
63
|
-
@forwards.
|
64
|
-
@forwards.
|
58
|
+
@forwards.setObjectName("forwards")
|
59
|
+
@forwards.setGeometry(Qt::Rect.new(90, 140, 171, 26))
|
60
|
+
@forwards.setChecked(true)
|
65
61
|
@backwards = Qt::RadioButton.new(searchDialog)
|
66
|
-
@backwards.
|
67
|
-
@backwards.
|
68
|
-
@search_label.
|
69
|
-
Qt::Widget
|
70
|
-
Qt::Widget
|
71
|
-
Qt::Widget
|
62
|
+
@backwards.setObjectName("backwards")
|
63
|
+
@backwards.setGeometry(Qt::Rect.new(90, 170, 176, 26))
|
64
|
+
@search_label.setBuddy(@search_combo)
|
65
|
+
Qt::Widget::setTabOrder(@search_combo, @selected_columns)
|
66
|
+
Qt::Widget::setTabOrder(@selected_columns, @selected_rows)
|
67
|
+
Qt::Widget::setTabOrder(@selected_rows, @button_box)
|
72
68
|
|
73
69
|
retranslateUi(searchDialog)
|
70
|
+
|
71
|
+
size = Qt::Size.new(307, 400)
|
72
|
+
size = size.expandedTo(searchDialog.minimumSizeHint())
|
73
|
+
searchDialog.resize(size)
|
74
|
+
|
74
75
|
Qt::Object.connect(@button_box, SIGNAL('accepted()'), searchDialog, SLOT('accept()'))
|
75
76
|
Qt::Object.connect(@button_box, SIGNAL('rejected()'), searchDialog, SLOT('reject()'))
|
76
77
|
|
@@ -82,15 +83,15 @@ class Ui_SearchDialog
|
|
82
83
|
end
|
83
84
|
|
84
85
|
def retranslateUi(searchDialog)
|
85
|
-
searchDialog.
|
86
|
-
@selected_rows.
|
87
|
-
@selected_columns.
|
88
|
-
@search_label.
|
89
|
-
@from_start.
|
90
|
-
@regex.
|
91
|
-
@whole_words.
|
92
|
-
@forwards.
|
93
|
-
@backwards.
|
86
|
+
searchDialog.setWindowTitle(Qt::Application.translate("SearchDialog", "Search", nil, Qt::Application::UnicodeUTF8))
|
87
|
+
@selected_rows.setText(Qt::Application.translate("SearchDialog", "Selected Rows", nil, Qt::Application::UnicodeUTF8))
|
88
|
+
@selected_columns.setText(Qt::Application.translate("SearchDialog", "Selected Columns", nil, Qt::Application::UnicodeUTF8))
|
89
|
+
@search_label.setText(Qt::Application.translate("SearchDialog", "Search", nil, Qt::Application::UnicodeUTF8))
|
90
|
+
@from_start.setText(Qt::Application.translate("SearchDialog", "From &Start", nil, Qt::Application::UnicodeUTF8))
|
91
|
+
@regex.setText(Qt::Application.translate("SearchDialog", "&Regular Expression", nil, Qt::Application::UnicodeUTF8))
|
92
|
+
@whole_words.setText(Qt::Application.translate("SearchDialog", "&Whole Words", nil, Qt::Application::UnicodeUTF8))
|
93
|
+
@forwards.setText(Qt::Application.translate("SearchDialog", "&Forwards", nil, Qt::Application::UnicodeUTF8))
|
94
|
+
@backwards.setText(Qt::Application.translate("SearchDialog", "&Backwards", nil, Qt::Application::UnicodeUTF8))
|
94
95
|
end # retranslateUi
|
95
96
|
|
96
97
|
def retranslate_ui(searchDialog)
|