lib/clevic/ui/browser_ui.rb in clevic-0.5.2 vs lib/clevic/ui/browser_ui.rb in clevic-0.6.0
- old
+ new
@@ -1,10 +1,10 @@
=begin
** Form generated from reading ui file 'browser.ui'
**
-** Created: Fri Jul 4 22:17:08 2008
-** by: Qt User Interface Compiler version 4.3.3
+** Created: Mon Jul 7 22:49:30 2008
+** by: Qt User Interface Compiler version 4.3.2
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
=end
class Ui_Browser
@@ -23,77 +23,73 @@
attr_reader :action_highlight
attr_reader :action_new_window
attr_reader :action_find_next
attr_reader :action_new_row
attr_reader :main_widget
- attr_reader :vboxLayout
+ attr_reader :qvboxLayout
attr_reader :statusbar
attr_reader :menubar
attr_reader :menu_file
attr_reader :menu_edit
attr_reader :menu_search
attr_reader :menu_model
def setupUi(browser)
- if browser.objectName.nil?
- browser.objectName = "browser"
- end
- browser.resize(727, 740)
- icon = Qt::Icon.new("icon.png")
- browser.windowIcon = icon
+ browser.setObjectName("browser")
+ browser.setWindowIcon(Qt::Icon.new("icon.png"))
@action_open = Qt::Action.new(browser)
- @action_open.objectName = "action_open"
+ @action_open.setObjectName("action_open")
@action_close = Qt::Action.new(browser)
- @action_close.objectName = "action_close"
+ @action_close.setObjectName("action_close")
@action_recent = Qt::Action.new(browser)
- @action_recent.objectName = "action_recent"
+ @action_recent.setObjectName("action_recent")
@action_cut = Qt::Action.new(browser)
- @action_cut.objectName = "action_cut"
+ @action_cut.setObjectName("action_cut")
@action_copy = Qt::Action.new(browser)
- @action_copy.objectName = "action_copy"
+ @action_copy.setObjectName("action_copy")
@action_paste = Qt::Action.new(browser)
- @action_paste.objectName = "action_paste"
+ @action_paste.setObjectName("action_paste")
@action_filter = Qt::Action.new(browser)
- @action_filter.objectName = "action_filter"
- @action_filter.checkable = true
+ @action_filter.setObjectName("action_filter")
+ @action_filter.setCheckable(true)
@action_find = Qt::Action.new(browser)
- @action_find.objectName = "action_find"
+ @action_find.setObjectName("action_find")
@action_dump = Qt::Action.new(browser)
- @action_dump.objectName = "action_dump"
+ @action_dump.setObjectName("action_dump")
@action_refresh = Qt::Action.new(browser)
- @action_refresh.objectName = "action_refresh"
+ @action_refresh.setObjectName("action_refresh")
@action_next = Qt::Action.new(browser)
- @action_next.objectName = "action_next"
+ @action_next.setObjectName("action_next")
@action_previous = Qt::Action.new(browser)
- @action_previous.objectName = "action_previous"
+ @action_previous.setObjectName("action_previous")
@action_highlight = Qt::Action.new(browser)
- @action_highlight.objectName = "action_highlight"
+ @action_highlight.setObjectName("action_highlight")
@action_new_window = Qt::Action.new(browser)
- @action_new_window.objectName = "action_new_window"
+ @action_new_window.setObjectName("action_new_window")
@action_find_next = Qt::Action.new(browser)
- @action_find_next.objectName = "action_find_next"
+ @action_find_next.setObjectName("action_find_next")
@action_new_row = Qt::Action.new(browser)
- @action_new_row.objectName = "action_new_row"
+ @action_new_row.setObjectName("action_new_row")
@main_widget = Qt::Widget.new(browser)
- @main_widget.objectName = "main_widget"
- @vboxLayout = Qt::VBoxLayout.new(@main_widget)
- @vboxLayout.objectName = "vboxLayout"
- browser.centralWidget = @main_widget
+ @main_widget.setObjectName("main_widget")
+ @qvboxLayout = Qt::VBoxLayout.new(@main_widget)
+ @qvboxLayout.setObjectName("qvboxLayout")
+ browser.setCentralWidget(@main_widget)
@statusbar = Qt::StatusBar.new(browser)
- @statusbar.objectName = "statusbar"
- browser.statusBar = @statusbar
+ @statusbar.setObjectName("statusbar")
+ browser.setStatusBar(@statusbar)
@menubar = Qt::MenuBar.new(browser)
- @menubar.objectName = "menubar"
- @menubar.geometry = Qt::Rect.new(0, 0, 727, 31)
+ @menubar.setObjectName("menubar")
+ @menubar.setGeometry(Qt::Rect.new(0, 0, 727, 31))
@menu_file = Qt::Menu.new(@menubar)
- @menu_file.objectName = "menu_file"
+ @menu_file.setObjectName("menu_file")
@menu_edit = Qt::Menu.new(@menubar)
- @menu_edit.objectName = "menu_edit"
+ @menu_edit.setObjectName("menu_edit")
@menu_search = Qt::Menu.new(@menubar)
- @menu_search.objectName = "menu_search"
+ @menu_search.setObjectName("menu_search")
@menu_model = Qt::Menu.new(@menubar)
- @menu_model.objectName = "menu_model"
+ @menu_model.setObjectName("menu_model")
browser.setMenuBar(@menubar)
@menubar.addAction(@menu_file.menuAction())
@menubar.addAction(@menu_edit.menuAction())
@menubar.addAction(@menu_search.menuAction())
@@ -116,52 +112,57 @@
@menu_model.addAction(@action_refresh)
@menu_model.addAction(@action_dump)
retranslateUi(browser)
+ size = Qt::Size.new(727, 740)
+ size = size.expandedTo(browser.minimumSizeHint())
+ browser.resize(size)
+
+
Qt::MetaObject.connectSlotsByName(browser)
end # setupUi
def setup_ui(browser)
setupUi(browser)
end
def retranslateUi(browser)
- @action_open.text = Qt::Application.translate("Browser", "&Open", nil, Qt::Application::UnicodeUTF8)
- @action_close.text = Qt::Application.translate("Browser", "Close", nil, Qt::Application::UnicodeUTF8)
- @action_recent.text = Qt::Application.translate("Browser", "Recent", nil, Qt::Application::UnicodeUTF8)
- @action_cut.text = Qt::Application.translate("Browser", "Cut", nil, Qt::Application::UnicodeUTF8)
- @action_copy.text = Qt::Application.translate("Browser", "Copy", nil, Qt::Application::UnicodeUTF8)
- @action_paste.text = Qt::Application.translate("Browser", "Paste", nil, Qt::Application::UnicodeUTF8)
- @action_filter.text = Qt::Application.translate("Browser", "F&ilter by current", nil, Qt::Application::UnicodeUTF8)
- @action_filter.toolTip = Qt::Application.translate("Browser", "Filter by value in current field", nil, Qt::Application::UnicodeUTF8)
- @action_filter.shortcut = Qt::Application.translate("Browser", "Ctrl+L", nil, Qt::Application::UnicodeUTF8)
- @action_find.text = Qt::Application.translate("Browser", "&Find First", nil, Qt::Application::UnicodeUTF8)
- @action_find.statusTip = Qt::Application.translate("Browser", "Find a row with some value", nil, Qt::Application::UnicodeUTF8)
- @action_find.shortcut = Qt::Application.translate("Browser", "Ctrl+F", nil, Qt::Application::UnicodeUTF8)
- @action_dump.text = Qt::Application.translate("Browser", "Dump", nil, Qt::Application::UnicodeUTF8)
- @action_dump.shortcut = Qt::Application.translate("Browser", "Ctrl+Shift+D", nil, Qt::Application::UnicodeUTF8)
- @action_refresh.text = Qt::Application.translate("Browser", "&Refresh", nil, Qt::Application::UnicodeUTF8)
- @action_refresh.iconText = Qt::Application.translate("Browser", "Refresh current table from database", nil, Qt::Application::UnicodeUTF8)
- @action_refresh.toolTip = Qt::Application.translate("Browser", "Refresh current table from database", nil, Qt::Application::UnicodeUTF8)
- @action_refresh.shortcut = Qt::Application.translate("Browser", "Ctrl+R", nil, Qt::Application::UnicodeUTF8)
- @action_next.text = Qt::Application.translate("Browser", "&Next", nil, Qt::Application::UnicodeUTF8)
- @action_next.iconText = Qt::Application.translate("Browser", "Next", nil, Qt::Application::UnicodeUTF8)
- @action_next.toolTip = Qt::Application.translate("Browser", "Next Model", nil, Qt::Application::UnicodeUTF8)
- @action_next.shortcut = Qt::Application.translate("Browser", "Ctrl+Tab", nil, Qt::Application::UnicodeUTF8)
- @action_previous.text = Qt::Application.translate("Browser", "&Previous", nil, Qt::Application::UnicodeUTF8)
- @action_previous.toolTip = Qt::Application.translate("Browser", "Previous Model", nil, Qt::Application::UnicodeUTF8)
- @action_previous.shortcut = Qt::Application.translate("Browser", "Ctrl+Shift+Backtab", nil, Qt::Application::UnicodeUTF8)
- @action_highlight.text = Qt::Application.translate("Browser", "&Highlight", nil, Qt::Application::UnicodeUTF8)
- @action_highlight.shortcut = Qt::Application.translate("Browser", "Ctrl+H", nil, Qt::Application::UnicodeUTF8)
- @action_new_window.text = Qt::Application.translate("Browser", "&New Window", nil, Qt::Application::UnicodeUTF8)
- @action_find_next.text = Qt::Application.translate("Browser", "Find &Next", nil, Qt::Application::UnicodeUTF8)
- @action_find_next.shortcut = Qt::Application.translate("Browser", "Ctrl+G", nil, Qt::Application::UnicodeUTF8)
- @action_new_row.text = Qt::Application.translate("Browser", "New &Row", nil, Qt::Application::UnicodeUTF8)
- @menu_file.title = Qt::Application.translate("Browser", "File", nil, Qt::Application::UnicodeUTF8)
- @menu_edit.title = Qt::Application.translate("Browser", "Edit", nil, Qt::Application::UnicodeUTF8)
- @menu_search.title = Qt::Application.translate("Browser", "&Search", nil, Qt::Application::UnicodeUTF8)
- @menu_model.title = Qt::Application.translate("Browser", "&Table", nil, Qt::Application::UnicodeUTF8)
+ @action_open.setText(Qt::Application.translate("Browser", "&Open", nil, Qt::Application::UnicodeUTF8))
+ @action_close.setText(Qt::Application.translate("Browser", "Close", nil, Qt::Application::UnicodeUTF8))
+ @action_recent.setText(Qt::Application.translate("Browser", "Recent", nil, Qt::Application::UnicodeUTF8))
+ @action_cut.setText(Qt::Application.translate("Browser", "Cut", nil, Qt::Application::UnicodeUTF8))
+ @action_copy.setText(Qt::Application.translate("Browser", "Copy", nil, Qt::Application::UnicodeUTF8))
+ @action_paste.setText(Qt::Application.translate("Browser", "Paste", nil, Qt::Application::UnicodeUTF8))
+ @action_filter.setText(Qt::Application.translate("Browser", "F&ilter by current", nil, Qt::Application::UnicodeUTF8))
+ @action_filter.setToolTip(Qt::Application.translate("Browser", "Filter by value in current field", nil, Qt::Application::UnicodeUTF8))
+ @action_filter.setShortcut(Qt::Application.translate("Browser", "Ctrl+L", nil, Qt::Application::UnicodeUTF8))
+ @action_find.setText(Qt::Application.translate("Browser", "&Find First", nil, Qt::Application::UnicodeUTF8))
+ @action_find.setStatusTip(Qt::Application.translate("Browser", "Find a row with some value", nil, Qt::Application::UnicodeUTF8))
+ @action_find.setShortcut(Qt::Application.translate("Browser", "Ctrl+F", nil, Qt::Application::UnicodeUTF8))
+ @action_dump.setText(Qt::Application.translate("Browser", "Dump", nil, Qt::Application::UnicodeUTF8))
+ @action_dump.setShortcut(Qt::Application.translate("Browser", "Ctrl+Shift+D", nil, Qt::Application::UnicodeUTF8))
+ @action_refresh.setText(Qt::Application.translate("Browser", "&Refresh", nil, Qt::Application::UnicodeUTF8))
+ @action_refresh.setIconText(Qt::Application.translate("Browser", "Refresh current table from database", nil, Qt::Application::UnicodeUTF8))
+ @action_refresh.setToolTip(Qt::Application.translate("Browser", "Refresh current table from database", nil, Qt::Application::UnicodeUTF8))
+ @action_refresh.setShortcut(Qt::Application.translate("Browser", "Ctrl+R", nil, Qt::Application::UnicodeUTF8))
+ @action_next.setText(Qt::Application.translate("Browser", "&Next", nil, Qt::Application::UnicodeUTF8))
+ @action_next.setIconText(Qt::Application.translate("Browser", "Next", nil, Qt::Application::UnicodeUTF8))
+ @action_next.setToolTip(Qt::Application.translate("Browser", "Next Model", nil, Qt::Application::UnicodeUTF8))
+ @action_next.setShortcut(Qt::Application.translate("Browser", "Ctrl+Tab", nil, Qt::Application::UnicodeUTF8))
+ @action_previous.setText(Qt::Application.translate("Browser", "&Previous", nil, Qt::Application::UnicodeUTF8))
+ @action_previous.setToolTip(Qt::Application.translate("Browser", "Previous Model", nil, Qt::Application::UnicodeUTF8))
+ @action_previous.setShortcut(Qt::Application.translate("Browser", "Ctrl+Shift+Backtab", nil, Qt::Application::UnicodeUTF8))
+ @action_highlight.setText(Qt::Application.translate("Browser", "&Highlight", nil, Qt::Application::UnicodeUTF8))
+ @action_highlight.setShortcut(Qt::Application.translate("Browser", "Ctrl+H", nil, Qt::Application::UnicodeUTF8))
+ @action_new_window.setText(Qt::Application.translate("Browser", "&New Window", nil, Qt::Application::UnicodeUTF8))
+ @action_find_next.setText(Qt::Application.translate("Browser", "Find &Next", nil, Qt::Application::UnicodeUTF8))
+ @action_find_next.setShortcut(Qt::Application.translate("Browser", "Ctrl+G", nil, Qt::Application::UnicodeUTF8))
+ @action_new_row.setText(Qt::Application.translate("Browser", "New &Row", nil, Qt::Application::UnicodeUTF8))
+ @menu_file.setTitle(Qt::Application.translate("Browser", "File", nil, Qt::Application::UnicodeUTF8))
+ @menu_edit.setTitle(Qt::Application.translate("Browser", "Edit", nil, Qt::Application::UnicodeUTF8))
+ @menu_search.setTitle(Qt::Application.translate("Browser", "&Search", nil, Qt::Application::UnicodeUTF8))
+ @menu_model.setTitle(Qt::Application.translate("Browser", "&Table", nil, Qt::Application::UnicodeUTF8))
end # retranslateUi
def retranslate_ui(browser)
retranslateUi(browser)
end