ruber 0.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +339 -0
- data/INSTALL +137 -0
- data/LICENSE +8 -0
- data/bin/ruber +65 -0
- data/data/share/apps/ruber/core_components.yaml +31 -0
- data/data/share/apps/ruber/ruberui.rc +109 -0
- data/data/share/icons/ruber.png +0 -0
- data/data/share/pixmaps/ruby.png +0 -0
- data/icons/ruber-16.png +0 -0
- data/icons/ruber-32.png +0 -0
- data/icons/ruber-48.png +0 -0
- data/icons/ruber-8.png +0 -0
- data/lib/ruber/application/application.rb +288 -0
- data/lib/ruber/application/plugin.yaml +11 -0
- data/lib/ruber/component_manager.rb +899 -0
- data/lib/ruber/config/config.rb +82 -0
- data/lib/ruber/config/plugin.yaml +3 -0
- data/lib/ruber/document_project.rb +209 -0
- data/lib/ruber/documents/document_list.rb +416 -0
- data/lib/ruber/documents/plugin.yaml +4 -0
- data/lib/ruber/editor/document.rb +506 -0
- data/lib/ruber/editor/editor_view.rb +167 -0
- data/lib/ruber/editor/ktexteditor_wrapper.rb +202 -0
- data/lib/ruber/exception_widgets.rb +245 -0
- data/lib/ruber/external_program_plugin.rb +397 -0
- data/lib/ruber/filtered_output_widget.rb +342 -0
- data/lib/ruber/gui_states_handler.rb +231 -0
- data/lib/ruber/kde_config_option_backend.rb +167 -0
- data/lib/ruber/kde_sugar.rb +249 -0
- data/lib/ruber/main_window/choose_plugins_dlg.rb +353 -0
- data/lib/ruber/main_window/main_window.rb +524 -0
- data/lib/ruber/main_window/main_window_actions.rb +537 -0
- data/lib/ruber/main_window/main_window_internal.rb +239 -0
- data/lib/ruber/main_window/open_file_in_project_dlg.rb +212 -0
- data/lib/ruber/main_window/output_color_widget.rb +35 -0
- data/lib/ruber/main_window/plugin.yaml +58 -0
- data/lib/ruber/main_window/save_modified_files_dlg.rb +89 -0
- data/lib/ruber/main_window/status_bar.rb +156 -0
- data/lib/ruber/main_window/ui/choose_plugins_widget.rb +90 -0
- data/lib/ruber/main_window/ui/choose_plugins_widget.ui +77 -0
- data/lib/ruber/main_window/ui/main_window_settings_widget.rb +108 -0
- data/lib/ruber/main_window/ui/main_window_settings_widget.ui +89 -0
- data/lib/ruber/main_window/ui/new_project_widget.rb +119 -0
- data/lib/ruber/main_window/ui/new_project_widget.ui +178 -0
- data/lib/ruber/main_window/ui/open_file_in_project_dlg.rb +109 -0
- data/lib/ruber/main_window/ui/open_file_in_project_dlg.ui +168 -0
- data/lib/ruber/main_window/ui/output_color_widget.rb +241 -0
- data/lib/ruber/main_window/ui/output_color_widget.ui +204 -0
- data/lib/ruber/main_window/workspace.rb +442 -0
- data/lib/ruber/output_widget.rb +1093 -0
- data/lib/ruber/plugin.rb +264 -0
- data/lib/ruber/plugin_like.rb +589 -0
- data/lib/ruber/plugin_specification.rb +106 -0
- data/lib/ruber/plugin_specification_reader.rb +451 -0
- data/lib/ruber/project.rb +493 -0
- data/lib/ruber/project_backend.rb +105 -0
- data/lib/ruber/projects/plugin.yaml +11 -0
- data/lib/ruber/projects/project_files_list.rb +314 -0
- data/lib/ruber/projects/project_files_widget.rb +301 -0
- data/lib/ruber/projects/project_list.rb +314 -0
- data/lib/ruber/projects/ui/project_files_rule_chooser_widget.rb +74 -0
- data/lib/ruber/projects/ui/project_files_rule_chooser_widget.ui +61 -0
- data/lib/ruber/projects/ui/project_files_widget.rb +117 -0
- data/lib/ruber/projects/ui/project_files_widget.ui +123 -0
- data/lib/ruber/qt_sugar.rb +673 -0
- data/lib/ruber/settings_container.rb +515 -0
- data/lib/ruber/settings_dialog.rb +244 -0
- data/lib/ruber/settings_dialog_manager.rb +503 -0
- data/lib/ruber/utils.rb +414 -0
- data/lib/ruber/yaml_option_backend.rb +159 -0
- data/outsider_files +15 -0
- data/plugins/autosave/autosave.rb +404 -0
- data/plugins/autosave/plugin.yaml +16 -0
- data/plugins/autosave/ui/autosave_config_widget.rb +83 -0
- data/plugins/autosave/ui/autosave_config_widget.ui +68 -0
- data/plugins/command/command.png +0 -0
- data/plugins/command/command.rb +74 -0
- data/plugins/command/plugin.yaml +11 -0
- data/plugins/find_in_files/find_in_files.rb +337 -0
- data/plugins/find_in_files/find_in_files_dlg.rb +411 -0
- data/plugins/find_in_files/find_in_files_ui.rc +11 -0
- data/plugins/find_in_files/find_in_files_widgets.rb +485 -0
- data/plugins/find_in_files/plugin.yaml +23 -0
- data/plugins/find_in_files/ui/config_widget.rb +58 -0
- data/plugins/find_in_files/ui/config_widget.ui +41 -0
- data/plugins/find_in_files/ui/find_in_files_widget.rb +260 -0
- data/plugins/find_in_files/ui/find_in_files_widget.ui +324 -0
- data/plugins/project_browser/plugin.yaml +10 -0
- data/plugins/project_browser/project_browser.rb +245 -0
- data/plugins/rake/plugin.yaml +39 -0
- data/plugins/rake/rake.png +0 -0
- data/plugins/rake/rake.rb +567 -0
- data/plugins/rake/rake_extension.rb +153 -0
- data/plugins/rake/rake_widgets.rb +615 -0
- data/plugins/rake/rakeui.rc +27 -0
- data/plugins/rake/ui/add_quick_task_widget.rb +71 -0
- data/plugins/rake/ui/add_quick_task_widget.ui +59 -0
- data/plugins/rake/ui/choose_task_widget.rb +77 -0
- data/plugins/rake/ui/choose_task_widget.ui +72 -0
- data/plugins/rake/ui/config_widget.rb +127 -0
- data/plugins/rake/ui/config_widget.ui +123 -0
- data/plugins/rake/ui/project_widget.rb +217 -0
- data/plugins/rake/ui/project_widget.ui +246 -0
- data/plugins/rspec/plugin.yaml +30 -0
- data/plugins/rspec/rspec.png +0 -0
- data/plugins/rspec/rspec.rb +945 -0
- data/plugins/rspec/rspec.svg +90 -0
- data/plugins/rspec/rspecui.rc +20 -0
- data/plugins/rspec/ruber_rspec_formatter.rb +312 -0
- data/plugins/rspec/ui/rspec_project_widget.rb +170 -0
- data/plugins/rspec/ui/rspec_project_widget.ui +193 -0
- data/plugins/ruby_development/plugin.yaml +27 -0
- data/plugins/ruby_development/ruby_development.png +0 -0
- data/plugins/ruby_development/ruby_development.rb +453 -0
- data/plugins/ruby_development/ruby_developmentui.rc +19 -0
- data/plugins/ruby_development/ui/project_widget.rb +112 -0
- data/plugins/ruby_development/ui/project_widget.ui +108 -0
- data/plugins/ruby_runner/config_widget.rb +116 -0
- data/plugins/ruby_runner/plugin.yaml +26 -0
- data/plugins/ruby_runner/project_widget.rb +62 -0
- data/plugins/ruby_runner/ruby.png +0 -0
- data/plugins/ruby_runner/ruby_interpretersui.rc +26 -0
- data/plugins/ruby_runner/ruby_runner.rb +411 -0
- data/plugins/ruby_runner/ui/config_widget.rb +92 -0
- data/plugins/ruby_runner/ui/config_widget.ui +91 -0
- data/plugins/ruby_runner/ui/project_widget.rb +60 -0
- data/plugins/ruby_runner/ui/project_widget.ui +48 -0
- data/plugins/ruby_runner/ui/ruby_runnner_plugin_option_widget.rb +59 -0
- data/plugins/ruby_runner/ui/ruby_runnner_plugin_option_widget.ui +44 -0
- data/plugins/state/plugin.yaml +28 -0
- data/plugins/state/state.rb +520 -0
- data/plugins/state/ui/config_widget.rb +92 -0
- data/plugins/state/ui/config_widget.ui +89 -0
- data/plugins/syntax_checker/plugin.yaml +18 -0
- data/plugins/syntax_checker/syntax_checker.rb +662 -0
- data/ruber.desktop +10 -0
- data/spec/annotation_model_spec.rb +174 -0
- data/spec/common.rb +119 -0
- data/spec/component_manager_spec.rb +1259 -0
- data/spec/document_list_spec.rb +626 -0
- data/spec/document_project_spec.rb +373 -0
- data/spec/document_spec.rb +779 -0
- data/spec/editor_view_spec.rb +167 -0
- data/spec/external_program_plugin_spec.rb +676 -0
- data/spec/filtered_output_widget_spec.rb +642 -0
- data/spec/gui_states_handler_spec.rb +304 -0
- data/spec/kde_config_option_backend_spec.rb +214 -0
- data/spec/kde_sugar_spec.rb +101 -0
- data/spec/ktexteditor_wrapper_spec.rb +305 -0
- data/spec/output_widget_spec.rb +1703 -0
- data/spec/plugin_spec.rb +1393 -0
- data/spec/plugin_specification_reader_spec.rb +1765 -0
- data/spec/plugin_specification_spec.rb +401 -0
- data/spec/project_backend_spec.rb +172 -0
- data/spec/project_files_list_spec.rb +401 -0
- data/spec/project_list_spec.rb +511 -0
- data/spec/project_spec.rb +990 -0
- data/spec/qt_sugar_spec.rb +328 -0
- data/spec/settings_container_spec.rb +617 -0
- data/spec/settings_dialog_manager_spec.rb +773 -0
- data/spec/settings_dialog_spec.rb +419 -0
- data/spec/state_spec.rb +991 -0
- data/spec/utils_spec.rb +406 -0
- data/spec/workspace_spec.rb +869 -0
- data/spec/yaml_option_backend_spec.rb +246 -0
- metadata +284 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
:name: :find_in_files
|
2
|
+
version: 0.0.1
|
3
|
+
about:
|
4
|
+
authors: [Stefano Crocco, stefano.crocco@alice.it]
|
5
|
+
license: :gpl
|
6
|
+
description: Search and replace files in project
|
7
|
+
bug_address: http://github.com/stcrocco/ruber/issues
|
8
|
+
icon: edit-find-project
|
9
|
+
:class: Ruber::FindInFiles::FindInFilesPlugin
|
10
|
+
:deps: [autosave]
|
11
|
+
:require: find_in_files
|
12
|
+
:provides: [:find_in_files]
|
13
|
+
:ui_file: find_in_files_ui.rc
|
14
|
+
:tool_widgets:
|
15
|
+
- {:class: Ruber::FindInFiles::FindWidget, :pixmap: edit-find, :caption: Find in files, :position: :bottom, :name: find_in_files_widget, var_name: find_widget}
|
16
|
+
- {class: Ruber::FindInFiles::ReplaceWidget, :pixmap: edit-find-replace, caption: Replace in files, name: replace_in_files_widget, var_name: replace_widget}
|
17
|
+
:config_widgets:
|
18
|
+
- {:caption: Find in Files, :pixmap: edit-find, :class: Ruber::FindInFiles::ConfigWidget}
|
19
|
+
:config_options:
|
20
|
+
find_in_files:
|
21
|
+
:rak_path: {:default: `which rak`.strip}
|
22
|
+
actions:
|
23
|
+
find_in_files-find_replace: {text: Find and Replace in Files..., icon: edit-find, shortcut: Alt+Ctrl+F, slot: find_replace(), state: '!find_in_files_running'}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'config_widget.ui'
|
3
|
+
**
|
4
|
+
** Created: ven ott 29 17:39:04 2010
|
5
|
+
** by: Qt User Interface Compiler version 4.7.0
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_FindInFilesConfigWidget
|
11
|
+
attr_reader :horizontalLayout
|
12
|
+
attr_reader :label
|
13
|
+
attr_reader :_find_in_files__rak_path
|
14
|
+
|
15
|
+
def setupUi(findInFilesConfigWidget)
|
16
|
+
if findInFilesConfigWidget.objectName.nil?
|
17
|
+
findInFilesConfigWidget.objectName = "findInFilesConfigWidget"
|
18
|
+
end
|
19
|
+
findInFilesConfigWidget.resize(400, 44)
|
20
|
+
@horizontalLayout = Qt::HBoxLayout.new(findInFilesConfigWidget)
|
21
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
22
|
+
@label = Qt::Label.new(findInFilesConfigWidget)
|
23
|
+
@label.objectName = "label"
|
24
|
+
|
25
|
+
@horizontalLayout.addWidget(@label)
|
26
|
+
|
27
|
+
@_find_in_files__rak_path = KDE::UrlRequester.new(findInFilesConfigWidget)
|
28
|
+
@_find_in_files__rak_path.objectName = "_find_in_files__rak_path"
|
29
|
+
|
30
|
+
@horizontalLayout.addWidget(@_find_in_files__rak_path)
|
31
|
+
|
32
|
+
@label.buddy = @_find_in_files__rak_path
|
33
|
+
|
34
|
+
retranslateUi(findInFilesConfigWidget)
|
35
|
+
|
36
|
+
Qt::MetaObject.connectSlotsByName(findInFilesConfigWidget)
|
37
|
+
end # setupUi
|
38
|
+
|
39
|
+
def setup_ui(findInFilesConfigWidget)
|
40
|
+
setupUi(findInFilesConfigWidget)
|
41
|
+
end
|
42
|
+
|
43
|
+
def retranslateUi(findInFilesConfigWidget)
|
44
|
+
findInFilesConfigWidget.windowTitle = Qt::Application.translate("FindInFilesConfigWidget", "Form", nil, Qt::Application::UnicodeUTF8)
|
45
|
+
@label.text = Qt::Application.translate("FindInFilesConfigWidget", "&Rak path", nil, Qt::Application::UnicodeUTF8)
|
46
|
+
end # retranslateUi
|
47
|
+
|
48
|
+
def retranslate_ui(findInFilesConfigWidget)
|
49
|
+
retranslateUi(findInFilesConfigWidget)
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
module Ui
|
55
|
+
class FindInFilesConfigWidget < Ui_FindInFilesConfigWidget
|
56
|
+
end
|
57
|
+
end # module Ui
|
58
|
+
|
@@ -0,0 +1,41 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>FindInFilesConfigWidget</class>
|
4
|
+
<widget class="QWidget" name="FindInFilesConfigWidget">
|
5
|
+
<property name="geometry">
|
6
|
+
<rect>
|
7
|
+
<x>0</x>
|
8
|
+
<y>0</y>
|
9
|
+
<width>400</width>
|
10
|
+
<height>44</height>
|
11
|
+
</rect>
|
12
|
+
</property>
|
13
|
+
<property name="windowTitle">
|
14
|
+
<string>Form</string>
|
15
|
+
</property>
|
16
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
17
|
+
<item>
|
18
|
+
<widget class="QLabel" name="label">
|
19
|
+
<property name="text">
|
20
|
+
<string>&Rak path</string>
|
21
|
+
</property>
|
22
|
+
<property name="buddy">
|
23
|
+
<cstring>_find_in_files__rak_path</cstring>
|
24
|
+
</property>
|
25
|
+
</widget>
|
26
|
+
</item>
|
27
|
+
<item>
|
28
|
+
<widget class="KUrlRequester" name="_find_in_files__rak_path"/>
|
29
|
+
</item>
|
30
|
+
</layout>
|
31
|
+
</widget>
|
32
|
+
<customwidgets>
|
33
|
+
<customwidget>
|
34
|
+
<class>KUrlRequester</class>
|
35
|
+
<extends>QFrame</extends>
|
36
|
+
<header>kurlrequester.h</header>
|
37
|
+
</customwidget>
|
38
|
+
</customwidgets>
|
39
|
+
<resources/>
|
40
|
+
<connections/>
|
41
|
+
</ui>
|
@@ -0,0 +1,260 @@
|
|
1
|
+
=begin
|
2
|
+
** Form generated from reading ui file 'find_in_files_widget.ui'
|
3
|
+
**
|
4
|
+
** Created: ven ott 29 17:39:04 2010
|
5
|
+
** by: Qt User Interface Compiler version 4.7.0
|
6
|
+
**
|
7
|
+
** WARNING! All changes made in this file will be lost when recompiling ui file!
|
8
|
+
=end
|
9
|
+
|
10
|
+
class Ui_FindReplaceInFilesWidget
|
11
|
+
attr_reader :verticalLayout_2
|
12
|
+
attr_reader :groupBox
|
13
|
+
attr_reader :gridLayout
|
14
|
+
attr_reader :label
|
15
|
+
attr_reader :find_text
|
16
|
+
attr_reader :label_2
|
17
|
+
attr_reader :replace_text
|
18
|
+
attr_reader :groupBox_3
|
19
|
+
attr_reader :horizontalLayout_4
|
20
|
+
attr_reader :horizontalLayout
|
21
|
+
attr_reader :label_3
|
22
|
+
attr_reader :horizontalSpacer
|
23
|
+
attr_reader :mode
|
24
|
+
attr_reader :whole_words
|
25
|
+
attr_reader :horizontalSpacer_3
|
26
|
+
attr_reader :case_sensitive
|
27
|
+
attr_reader :groupBox_2
|
28
|
+
attr_reader :horizontalLayout_2
|
29
|
+
attr_reader :all_files
|
30
|
+
attr_reader :horizontalSpacer_2
|
31
|
+
attr_reader :use_predefined_filters
|
32
|
+
attr_reader :types
|
33
|
+
attr_reader :horizontalSpacer_4
|
34
|
+
attr_reader :label_4
|
35
|
+
attr_reader :custom_filter
|
36
|
+
attr_reader :groupBox_4
|
37
|
+
attr_reader :horizontalLayout_3
|
38
|
+
attr_reader :label_6
|
39
|
+
attr_reader :places
|
40
|
+
attr_reader :label_5
|
41
|
+
attr_reader :directory
|
42
|
+
|
43
|
+
def setupUi(findReplaceInFilesWidget)
|
44
|
+
if findReplaceInFilesWidget.objectName.nil?
|
45
|
+
findReplaceInFilesWidget.objectName = "findReplaceInFilesWidget"
|
46
|
+
end
|
47
|
+
findReplaceInFilesWidget.resize(806, 360)
|
48
|
+
@verticalLayout_2 = Qt::VBoxLayout.new(findReplaceInFilesWidget)
|
49
|
+
@verticalLayout_2.objectName = "verticalLayout_2"
|
50
|
+
@groupBox = Qt::GroupBox.new(findReplaceInFilesWidget)
|
51
|
+
@groupBox.objectName = "groupBox"
|
52
|
+
@gridLayout = Qt::GridLayout.new(@groupBox)
|
53
|
+
@gridLayout.objectName = "gridLayout"
|
54
|
+
@label = Qt::Label.new(@groupBox)
|
55
|
+
@label.objectName = "label"
|
56
|
+
|
57
|
+
@gridLayout.addWidget(@label, 0, 0, 1, 1)
|
58
|
+
|
59
|
+
@find_text = KDE::LineEdit.new(@groupBox)
|
60
|
+
@find_text.objectName = "find_text"
|
61
|
+
|
62
|
+
@gridLayout.addWidget(@find_text, 0, 1, 1, 1)
|
63
|
+
|
64
|
+
@label_2 = Qt::Label.new(@groupBox)
|
65
|
+
@label_2.objectName = "label_2"
|
66
|
+
|
67
|
+
@gridLayout.addWidget(@label_2, 1, 0, 1, 1)
|
68
|
+
|
69
|
+
@replace_text = KDE::LineEdit.new(@groupBox)
|
70
|
+
@replace_text.objectName = "replace_text"
|
71
|
+
|
72
|
+
@gridLayout.addWidget(@replace_text, 1, 1, 1, 1)
|
73
|
+
|
74
|
+
|
75
|
+
@verticalLayout_2.addWidget(@groupBox)
|
76
|
+
|
77
|
+
@groupBox_3 = Qt::GroupBox.new(findReplaceInFilesWidget)
|
78
|
+
@groupBox_3.objectName = "groupBox_3"
|
79
|
+
@horizontalLayout_4 = Qt::HBoxLayout.new(@groupBox_3)
|
80
|
+
@horizontalLayout_4.objectName = "horizontalLayout_4"
|
81
|
+
@horizontalLayout = Qt::HBoxLayout.new()
|
82
|
+
@horizontalLayout.objectName = "horizontalLayout"
|
83
|
+
@label_3 = Qt::Label.new(@groupBox_3)
|
84
|
+
@label_3.objectName = "label_3"
|
85
|
+
|
86
|
+
@horizontalLayout.addWidget(@label_3)
|
87
|
+
|
88
|
+
@horizontalSpacer = Qt::SpacerItem.new(18, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
89
|
+
|
90
|
+
@horizontalLayout.addItem(@horizontalSpacer)
|
91
|
+
|
92
|
+
@mode = KDE::ComboBox.new(@groupBox_3)
|
93
|
+
@mode.objectName = "mode"
|
94
|
+
@sizePolicy = Qt::SizePolicy.new(Qt::SizePolicy::Preferred, Qt::SizePolicy::Fixed)
|
95
|
+
@sizePolicy.setHorizontalStretch(1)
|
96
|
+
@sizePolicy.setVerticalStretch(0)
|
97
|
+
@sizePolicy.heightForWidth = @mode.sizePolicy.hasHeightForWidth
|
98
|
+
@mode.sizePolicy = @sizePolicy
|
99
|
+
@mode.editable = false
|
100
|
+
|
101
|
+
@horizontalLayout.addWidget(@mode)
|
102
|
+
|
103
|
+
@whole_words = Qt::CheckBox.new(@groupBox_3)
|
104
|
+
@whole_words.objectName = "whole_words"
|
105
|
+
|
106
|
+
@horizontalLayout.addWidget(@whole_words)
|
107
|
+
|
108
|
+
@horizontalSpacer_3 = Qt::SpacerItem.new(18, 20, Qt::SizePolicy::Preferred, Qt::SizePolicy::Minimum)
|
109
|
+
|
110
|
+
@horizontalLayout.addItem(@horizontalSpacer_3)
|
111
|
+
|
112
|
+
@case_sensitive = Qt::CheckBox.new(@groupBox_3)
|
113
|
+
@case_sensitive.objectName = "case_sensitive"
|
114
|
+
@case_sensitive.checked = true
|
115
|
+
|
116
|
+
@horizontalLayout.addWidget(@case_sensitive)
|
117
|
+
|
118
|
+
|
119
|
+
@horizontalLayout_4.addLayout(@horizontalLayout)
|
120
|
+
|
121
|
+
|
122
|
+
@verticalLayout_2.addWidget(@groupBox_3)
|
123
|
+
|
124
|
+
@groupBox_2 = Qt::GroupBox.new(findReplaceInFilesWidget)
|
125
|
+
@groupBox_2.objectName = "groupBox_2"
|
126
|
+
@horizontalLayout_2 = Qt::HBoxLayout.new(@groupBox_2)
|
127
|
+
@horizontalLayout_2.objectName = "horizontalLayout_2"
|
128
|
+
@all_files = Qt::RadioButton.new(@groupBox_2)
|
129
|
+
@all_files.objectName = "all_files"
|
130
|
+
|
131
|
+
@horizontalLayout_2.addWidget(@all_files)
|
132
|
+
|
133
|
+
@horizontalSpacer_2 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum)
|
134
|
+
|
135
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_2)
|
136
|
+
|
137
|
+
@use_predefined_filters = Qt::RadioButton.new(@groupBox_2)
|
138
|
+
@use_predefined_filters.objectName = "use_predefined_filters"
|
139
|
+
@use_predefined_filters.checked = true
|
140
|
+
|
141
|
+
@horizontalLayout_2.addWidget(@use_predefined_filters)
|
142
|
+
|
143
|
+
@types = KDE::ComboBox.new(@groupBox_2)
|
144
|
+
@types.objectName = "types"
|
145
|
+
@sizePolicy1 = Qt::SizePolicy.new(Qt::SizePolicy::Expanding, Qt::SizePolicy::Fixed)
|
146
|
+
@sizePolicy1.setHorizontalStretch(1)
|
147
|
+
@sizePolicy1.setVerticalStretch(0)
|
148
|
+
@sizePolicy1.heightForWidth = @types.sizePolicy.hasHeightForWidth
|
149
|
+
@types.sizePolicy = @sizePolicy1
|
150
|
+
@types.editable = true
|
151
|
+
|
152
|
+
@horizontalLayout_2.addWidget(@types)
|
153
|
+
|
154
|
+
@horizontalSpacer_4 = Qt::SpacerItem.new(40, 20, Qt::SizePolicy::Preferred, Qt::SizePolicy::Minimum)
|
155
|
+
|
156
|
+
@horizontalLayout_2.addItem(@horizontalSpacer_4)
|
157
|
+
|
158
|
+
@label_4 = Qt::Label.new(@groupBox_2)
|
159
|
+
@label_4.objectName = "label_4"
|
160
|
+
|
161
|
+
@horizontalLayout_2.addWidget(@label_4)
|
162
|
+
|
163
|
+
@custom_filter = KDE::LineEdit.new(@groupBox_2)
|
164
|
+
@custom_filter.objectName = "custom_filter"
|
165
|
+
@custom_filter.enabled = true
|
166
|
+
@sizePolicy2 = Qt::SizePolicy.new(Qt::SizePolicy::Expanding, Qt::SizePolicy::Fixed)
|
167
|
+
@sizePolicy2.setHorizontalStretch(2)
|
168
|
+
@sizePolicy2.setVerticalStretch(0)
|
169
|
+
@sizePolicy2.heightForWidth = @custom_filter.sizePolicy.hasHeightForWidth
|
170
|
+
@custom_filter.sizePolicy = @sizePolicy2
|
171
|
+
|
172
|
+
@horizontalLayout_2.addWidget(@custom_filter)
|
173
|
+
|
174
|
+
|
175
|
+
@verticalLayout_2.addWidget(@groupBox_2)
|
176
|
+
|
177
|
+
@groupBox_4 = Qt::GroupBox.new(findReplaceInFilesWidget)
|
178
|
+
@groupBox_4.objectName = "groupBox_4"
|
179
|
+
@horizontalLayout_3 = Qt::HBoxLayout.new(@groupBox_4)
|
180
|
+
@horizontalLayout_3.objectName = "horizontalLayout_3"
|
181
|
+
@label_6 = Qt::Label.new(@groupBox_4)
|
182
|
+
@label_6.objectName = "label_6"
|
183
|
+
|
184
|
+
@horizontalLayout_3.addWidget(@label_6)
|
185
|
+
|
186
|
+
@places = KDE::ComboBox.new(@groupBox_4)
|
187
|
+
@places.objectName = "places"
|
188
|
+
@sizePolicy3 = Qt::SizePolicy.new(Qt::SizePolicy::Preferred, Qt::SizePolicy::Fixed)
|
189
|
+
@sizePolicy3.setHorizontalStretch(0)
|
190
|
+
@sizePolicy3.setVerticalStretch(0)
|
191
|
+
@sizePolicy3.heightForWidth = @places.sizePolicy.hasHeightForWidth
|
192
|
+
@places.sizePolicy = @sizePolicy3
|
193
|
+
@places.editable = false
|
194
|
+
|
195
|
+
@horizontalLayout_3.addWidget(@places)
|
196
|
+
|
197
|
+
@label_5 = Qt::Label.new(@groupBox_4)
|
198
|
+
@label_5.objectName = "label_5"
|
199
|
+
|
200
|
+
@horizontalLayout_3.addWidget(@label_5)
|
201
|
+
|
202
|
+
@directory = KDE::UrlRequester.new(@groupBox_4)
|
203
|
+
@directory.objectName = "directory"
|
204
|
+
|
205
|
+
@horizontalLayout_3.addWidget(@directory)
|
206
|
+
|
207
|
+
|
208
|
+
@verticalLayout_2.addWidget(@groupBox_4)
|
209
|
+
|
210
|
+
@label.buddy = @find_text
|
211
|
+
@label_2.buddy = @replace_text
|
212
|
+
@label_3.buddy = @mode
|
213
|
+
@label_4.buddy = @custom_filter
|
214
|
+
@label_6.buddy = @places
|
215
|
+
@label_5.buddy = @directory
|
216
|
+
|
217
|
+
retranslateUi(findReplaceInFilesWidget)
|
218
|
+
|
219
|
+
Qt::MetaObject.connectSlotsByName(findReplaceInFilesWidget)
|
220
|
+
end # setupUi
|
221
|
+
|
222
|
+
def setup_ui(findReplaceInFilesWidget)
|
223
|
+
setupUi(findReplaceInFilesWidget)
|
224
|
+
end
|
225
|
+
|
226
|
+
def retranslateUi(findReplaceInFilesWidget)
|
227
|
+
findReplaceInFilesWidget.windowTitle = Qt::Application.translate("FindReplaceInFilesWidget", "Form", nil, Qt::Application::UnicodeUTF8)
|
228
|
+
@groupBox.title = Qt::Application.translate("FindReplaceInFilesWidget", "Find and Replace", nil, Qt::Application::UnicodeUTF8)
|
229
|
+
@label.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Find", nil, Qt::Application::UnicodeUTF8)
|
230
|
+
@label_2.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Replace with", nil, Qt::Application::UnicodeUTF8)
|
231
|
+
@groupBox_3.title = Qt::Application.translate("FindReplaceInFilesWidget", "Options", nil, Qt::Application::UnicodeUTF8)
|
232
|
+
@label_3.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Mode", nil, Qt::Application::UnicodeUTF8)
|
233
|
+
@mode.insertItems(0, [Qt::Application.translate("FindReplaceInFilesWidget", "Regexp", nil, Qt::Application::UnicodeUTF8),
|
234
|
+
Qt::Application.translate("FindReplaceInFilesWidget", "Plain text", nil, Qt::Application::UnicodeUTF8)])
|
235
|
+
@whole_words.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Whole words", nil, Qt::Application::UnicodeUTF8)
|
236
|
+
@case_sensitive.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Case sensitive", nil, Qt::Application::UnicodeUTF8)
|
237
|
+
@groupBox_2.title = Qt::Application.translate("FindReplaceInFilesWidget", "Filters", nil, Qt::Application::UnicodeUTF8)
|
238
|
+
@all_files.text = Qt::Application.translate("FindReplaceInFilesWidget", "&All files", nil, Qt::Application::UnicodeUTF8)
|
239
|
+
@use_predefined_filters.text = Qt::Application.translate("FindReplaceInFilesWidget", "File type", nil, Qt::Application::UnicodeUTF8)
|
240
|
+
@label_4.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Custom filter", nil, Qt::Application::UnicodeUTF8)
|
241
|
+
@groupBox_4.title = Qt::Application.translate("FindReplaceInFilesWidget", "Path", nil, Qt::Application::UnicodeUTF8)
|
242
|
+
@label_6.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Search in", nil, Qt::Application::UnicodeUTF8)
|
243
|
+
@places.insertItems(0, [Qt::Application.translate("FindReplaceInFilesWidget", "Project files", nil, Qt::Application::UnicodeUTF8),
|
244
|
+
Qt::Application.translate("FindReplaceInFilesWidget", "Project directory", nil, Qt::Application::UnicodeUTF8),
|
245
|
+
Qt::Application.translate("FindReplaceInFilesWidget", "Open files", nil, Qt::Application::UnicodeUTF8),
|
246
|
+
Qt::Application.translate("FindReplaceInFilesWidget", "Custom directory", nil, Qt::Application::UnicodeUTF8)])
|
247
|
+
@label_5.text = Qt::Application.translate("FindReplaceInFilesWidget", "&Directory", nil, Qt::Application::UnicodeUTF8)
|
248
|
+
end # retranslateUi
|
249
|
+
|
250
|
+
def retranslate_ui(findReplaceInFilesWidget)
|
251
|
+
retranslateUi(findReplaceInFilesWidget)
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
255
|
+
|
256
|
+
module Ui
|
257
|
+
class FindReplaceInFilesWidget < Ui_FindReplaceInFilesWidget
|
258
|
+
end
|
259
|
+
end # module Ui
|
260
|
+
|
@@ -0,0 +1,324 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<ui version="4.0">
|
3
|
+
<class>FindReplaceInFilesWidget</class>
|
4
|
+
<widget class="QWidget" name="FindReplaceInFilesWidget">
|
5
|
+
<property name="geometry">
|
6
|
+
<rect>
|
7
|
+
<x>0</x>
|
8
|
+
<y>0</y>
|
9
|
+
<width>806</width>
|
10
|
+
<height>360</height>
|
11
|
+
</rect>
|
12
|
+
</property>
|
13
|
+
<property name="windowTitle">
|
14
|
+
<string>Form</string>
|
15
|
+
</property>
|
16
|
+
<layout class="QVBoxLayout" name="verticalLayout_2">
|
17
|
+
<item>
|
18
|
+
<widget class="QGroupBox" name="groupBox">
|
19
|
+
<property name="title">
|
20
|
+
<string>Find and Replace</string>
|
21
|
+
</property>
|
22
|
+
<layout class="QGridLayout" name="gridLayout">
|
23
|
+
<item row="0" column="0">
|
24
|
+
<widget class="QLabel" name="label">
|
25
|
+
<property name="text">
|
26
|
+
<string>&Find</string>
|
27
|
+
</property>
|
28
|
+
<property name="buddy">
|
29
|
+
<cstring>find_text</cstring>
|
30
|
+
</property>
|
31
|
+
</widget>
|
32
|
+
</item>
|
33
|
+
<item row="0" column="1">
|
34
|
+
<widget class="KLineEdit" name="find_text"/>
|
35
|
+
</item>
|
36
|
+
<item row="1" column="0">
|
37
|
+
<widget class="QLabel" name="label_2">
|
38
|
+
<property name="text">
|
39
|
+
<string>&Replace with</string>
|
40
|
+
</property>
|
41
|
+
<property name="buddy">
|
42
|
+
<cstring>replace_text</cstring>
|
43
|
+
</property>
|
44
|
+
</widget>
|
45
|
+
</item>
|
46
|
+
<item row="1" column="1">
|
47
|
+
<widget class="KLineEdit" name="replace_text"/>
|
48
|
+
</item>
|
49
|
+
</layout>
|
50
|
+
</widget>
|
51
|
+
</item>
|
52
|
+
<item>
|
53
|
+
<widget class="QGroupBox" name="groupBox_3">
|
54
|
+
<property name="title">
|
55
|
+
<string>Options</string>
|
56
|
+
</property>
|
57
|
+
<layout class="QHBoxLayout" name="horizontalLayout_4">
|
58
|
+
<item>
|
59
|
+
<layout class="QHBoxLayout" name="horizontalLayout">
|
60
|
+
<item>
|
61
|
+
<widget class="QLabel" name="label_3">
|
62
|
+
<property name="text">
|
63
|
+
<string>&Mode</string>
|
64
|
+
</property>
|
65
|
+
<property name="buddy">
|
66
|
+
<cstring>mode</cstring>
|
67
|
+
</property>
|
68
|
+
</widget>
|
69
|
+
</item>
|
70
|
+
<item>
|
71
|
+
<spacer name="horizontalSpacer">
|
72
|
+
<property name="orientation">
|
73
|
+
<enum>Qt::Horizontal</enum>
|
74
|
+
</property>
|
75
|
+
<property name="sizeType">
|
76
|
+
<enum>QSizePolicy::Expanding</enum>
|
77
|
+
</property>
|
78
|
+
<property name="sizeHint" stdset="0">
|
79
|
+
<size>
|
80
|
+
<width>18</width>
|
81
|
+
<height>20</height>
|
82
|
+
</size>
|
83
|
+
</property>
|
84
|
+
</spacer>
|
85
|
+
</item>
|
86
|
+
<item>
|
87
|
+
<widget class="KComboBox" name="mode">
|
88
|
+
<property name="sizePolicy">
|
89
|
+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
90
|
+
<horstretch>1</horstretch>
|
91
|
+
<verstretch>0</verstretch>
|
92
|
+
</sizepolicy>
|
93
|
+
</property>
|
94
|
+
<property name="editable">
|
95
|
+
<bool>false</bool>
|
96
|
+
</property>
|
97
|
+
<item>
|
98
|
+
<property name="text">
|
99
|
+
<string>Regexp</string>
|
100
|
+
</property>
|
101
|
+
</item>
|
102
|
+
<item>
|
103
|
+
<property name="text">
|
104
|
+
<string>Plain text</string>
|
105
|
+
</property>
|
106
|
+
</item>
|
107
|
+
</widget>
|
108
|
+
</item>
|
109
|
+
<item>
|
110
|
+
<widget class="QCheckBox" name="whole_words">
|
111
|
+
<property name="text">
|
112
|
+
<string>&Whole words</string>
|
113
|
+
</property>
|
114
|
+
</widget>
|
115
|
+
</item>
|
116
|
+
<item>
|
117
|
+
<spacer name="horizontalSpacer_3">
|
118
|
+
<property name="orientation">
|
119
|
+
<enum>Qt::Horizontal</enum>
|
120
|
+
</property>
|
121
|
+
<property name="sizeType">
|
122
|
+
<enum>QSizePolicy::Preferred</enum>
|
123
|
+
</property>
|
124
|
+
<property name="sizeHint" stdset="0">
|
125
|
+
<size>
|
126
|
+
<width>18</width>
|
127
|
+
<height>20</height>
|
128
|
+
</size>
|
129
|
+
</property>
|
130
|
+
</spacer>
|
131
|
+
</item>
|
132
|
+
<item>
|
133
|
+
<widget class="QCheckBox" name="case_sensitive">
|
134
|
+
<property name="text">
|
135
|
+
<string>&Case sensitive</string>
|
136
|
+
</property>
|
137
|
+
<property name="checked">
|
138
|
+
<bool>true</bool>
|
139
|
+
</property>
|
140
|
+
</widget>
|
141
|
+
</item>
|
142
|
+
</layout>
|
143
|
+
</item>
|
144
|
+
</layout>
|
145
|
+
</widget>
|
146
|
+
</item>
|
147
|
+
<item>
|
148
|
+
<widget class="QGroupBox" name="groupBox_2">
|
149
|
+
<property name="title">
|
150
|
+
<string>Filters</string>
|
151
|
+
</property>
|
152
|
+
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
153
|
+
<item>
|
154
|
+
<widget class="QRadioButton" name="all_files">
|
155
|
+
<property name="text">
|
156
|
+
<string>&All files</string>
|
157
|
+
</property>
|
158
|
+
</widget>
|
159
|
+
</item>
|
160
|
+
<item>
|
161
|
+
<spacer name="horizontalSpacer_2">
|
162
|
+
<property name="orientation">
|
163
|
+
<enum>Qt::Horizontal</enum>
|
164
|
+
</property>
|
165
|
+
<property name="sizeHint" stdset="0">
|
166
|
+
<size>
|
167
|
+
<width>40</width>
|
168
|
+
<height>20</height>
|
169
|
+
</size>
|
170
|
+
</property>
|
171
|
+
</spacer>
|
172
|
+
</item>
|
173
|
+
<item>
|
174
|
+
<widget class="QRadioButton" name="use_predefined_filters">
|
175
|
+
<property name="text">
|
176
|
+
<string>File type</string>
|
177
|
+
</property>
|
178
|
+
<property name="checked">
|
179
|
+
<bool>true</bool>
|
180
|
+
</property>
|
181
|
+
</widget>
|
182
|
+
</item>
|
183
|
+
<item>
|
184
|
+
<widget class="KComboBox" name="types">
|
185
|
+
<property name="sizePolicy">
|
186
|
+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
187
|
+
<horstretch>1</horstretch>
|
188
|
+
<verstretch>0</verstretch>
|
189
|
+
</sizepolicy>
|
190
|
+
</property>
|
191
|
+
<property name="editable">
|
192
|
+
<bool>true</bool>
|
193
|
+
</property>
|
194
|
+
</widget>
|
195
|
+
</item>
|
196
|
+
<item>
|
197
|
+
<spacer name="horizontalSpacer_4">
|
198
|
+
<property name="orientation">
|
199
|
+
<enum>Qt::Horizontal</enum>
|
200
|
+
</property>
|
201
|
+
<property name="sizeType">
|
202
|
+
<enum>QSizePolicy::Preferred</enum>
|
203
|
+
</property>
|
204
|
+
<property name="sizeHint" stdset="0">
|
205
|
+
<size>
|
206
|
+
<width>40</width>
|
207
|
+
<height>20</height>
|
208
|
+
</size>
|
209
|
+
</property>
|
210
|
+
</spacer>
|
211
|
+
</item>
|
212
|
+
<item>
|
213
|
+
<widget class="QLabel" name="label_4">
|
214
|
+
<property name="text">
|
215
|
+
<string>&Custom filter</string>
|
216
|
+
</property>
|
217
|
+
<property name="buddy">
|
218
|
+
<cstring>custom_filter</cstring>
|
219
|
+
</property>
|
220
|
+
</widget>
|
221
|
+
</item>
|
222
|
+
<item>
|
223
|
+
<widget class="KLineEdit" name="custom_filter">
|
224
|
+
<property name="enabled">
|
225
|
+
<bool>true</bool>
|
226
|
+
</property>
|
227
|
+
<property name="sizePolicy">
|
228
|
+
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
229
|
+
<horstretch>2</horstretch>
|
230
|
+
<verstretch>0</verstretch>
|
231
|
+
</sizepolicy>
|
232
|
+
</property>
|
233
|
+
</widget>
|
234
|
+
</item>
|
235
|
+
</layout>
|
236
|
+
</widget>
|
237
|
+
</item>
|
238
|
+
<item>
|
239
|
+
<widget class="QGroupBox" name="groupBox_4">
|
240
|
+
<property name="title">
|
241
|
+
<string>Path</string>
|
242
|
+
</property>
|
243
|
+
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
244
|
+
<item>
|
245
|
+
<widget class="QLabel" name="label_6">
|
246
|
+
<property name="text">
|
247
|
+
<string>&Search in</string>
|
248
|
+
</property>
|
249
|
+
<property name="buddy">
|
250
|
+
<cstring>places</cstring>
|
251
|
+
</property>
|
252
|
+
</widget>
|
253
|
+
</item>
|
254
|
+
<item>
|
255
|
+
<widget class="KComboBox" name="places">
|
256
|
+
<property name="sizePolicy">
|
257
|
+
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
258
|
+
<horstretch>0</horstretch>
|
259
|
+
<verstretch>0</verstretch>
|
260
|
+
</sizepolicy>
|
261
|
+
</property>
|
262
|
+
<property name="editable">
|
263
|
+
<bool>false</bool>
|
264
|
+
</property>
|
265
|
+
<item>
|
266
|
+
<property name="text">
|
267
|
+
<string>Project files</string>
|
268
|
+
</property>
|
269
|
+
</item>
|
270
|
+
<item>
|
271
|
+
<property name="text">
|
272
|
+
<string>Project directory</string>
|
273
|
+
</property>
|
274
|
+
</item>
|
275
|
+
<item>
|
276
|
+
<property name="text">
|
277
|
+
<string>Open files</string>
|
278
|
+
</property>
|
279
|
+
</item>
|
280
|
+
<item>
|
281
|
+
<property name="text">
|
282
|
+
<string>Custom directory</string>
|
283
|
+
</property>
|
284
|
+
</item>
|
285
|
+
</widget>
|
286
|
+
</item>
|
287
|
+
<item>
|
288
|
+
<widget class="QLabel" name="label_5">
|
289
|
+
<property name="text">
|
290
|
+
<string>&Directory</string>
|
291
|
+
</property>
|
292
|
+
<property name="buddy">
|
293
|
+
<cstring>directory</cstring>
|
294
|
+
</property>
|
295
|
+
</widget>
|
296
|
+
</item>
|
297
|
+
<item>
|
298
|
+
<widget class="KUrlRequester" name="directory"/>
|
299
|
+
</item>
|
300
|
+
</layout>
|
301
|
+
</widget>
|
302
|
+
</item>
|
303
|
+
</layout>
|
304
|
+
</widget>
|
305
|
+
<customwidgets>
|
306
|
+
<customwidget>
|
307
|
+
<class>KUrlRequester</class>
|
308
|
+
<extends>QFrame</extends>
|
309
|
+
<header>kurlrequester.h</header>
|
310
|
+
</customwidget>
|
311
|
+
<customwidget>
|
312
|
+
<class>KLineEdit</class>
|
313
|
+
<extends>QLineEdit</extends>
|
314
|
+
<header>klineedit.h</header>
|
315
|
+
</customwidget>
|
316
|
+
<customwidget>
|
317
|
+
<class>KComboBox</class>
|
318
|
+
<extends>QComboBox</extends>
|
319
|
+
<header>kcombobox.h</header>
|
320
|
+
</customwidget>
|
321
|
+
</customwidgets>
|
322
|
+
<resources/>
|
323
|
+
<connections/>
|
324
|
+
</ui>
|