lib/clevic/ui/browser_ui.rb in clevic-0.8.0 vs lib/clevic/ui/browser_ui.rb in clevic-0.11.1
- old
+ new
@@ -1,10 +1,10 @@
=begin
** Form generated from reading ui file 'browser.ui'
**
-** Created: Fri Aug 8 22:32:38 2008
-** by: Qt User Interface Compiler version 4.3.2
+** Created: Sun Aug 10 20:25:20 2008
+** by: Qt User Interface Compiler version 4.3.3
**
** WARNING! All changes made in this file will be lost when recompiling ui file!
=end
class Ui_Browser
@@ -15,61 +15,65 @@
attr_reader :action_refresh
attr_reader :action_next
attr_reader :action_previous
attr_reader :action_new_window
attr_reader :main_widget
- attr_reader :qvboxLayout
+ attr_reader :vboxLayout
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)
- browser.setObjectName("browser")
- browser.setWindowIcon(Qt::Icon.new("icon.png"))
+ if browser.objectName.nil?
+ browser.objectName = "browser"
+ end
+ browser.resize(727, 740)
+ icon = Qt::Icon.new("icon.png")
+ browser.windowIcon = icon
@action_open = Qt::Action.new(browser)
- @action_open.setObjectName("action_open")
- @action_open.setVisible(false)
+ @action_open.objectName = "action_open"
+ @action_open.visible = false
@action_close = Qt::Action.new(browser)
- @action_close.setObjectName("action_close")
- @action_close.setVisible(false)
+ @action_close.objectName = "action_close"
+ @action_close.visible = false
@action_recent = Qt::Action.new(browser)
- @action_recent.setObjectName("action_recent")
- @action_recent.setVisible(false)
+ @action_recent.objectName = "action_recent"
+ @action_recent.visible = false
@action_dump = Qt::Action.new(browser)
- @action_dump.setObjectName("action_dump")
+ @action_dump.objectName = "action_dump"
@action_refresh = Qt::Action.new(browser)
- @action_refresh.setObjectName("action_refresh")
+ @action_refresh.objectName = "action_refresh"
@action_next = Qt::Action.new(browser)
- @action_next.setObjectName("action_next")
+ @action_next.objectName = "action_next"
@action_previous = Qt::Action.new(browser)
- @action_previous.setObjectName("action_previous")
+ @action_previous.objectName = "action_previous"
@action_new_window = Qt::Action.new(browser)
- @action_new_window.setObjectName("action_new_window")
- @action_new_window.setVisible(false)
+ @action_new_window.objectName = "action_new_window"
+ @action_new_window.visible = false
@main_widget = Qt::Widget.new(browser)
- @main_widget.setObjectName("main_widget")
- @qvboxLayout = Qt::VBoxLayout.new(@main_widget)
- @qvboxLayout.setObjectName("qvboxLayout")
- browser.setCentralWidget(@main_widget)
+ @main_widget.objectName = "main_widget"
+ @vboxLayout = Qt::VBoxLayout.new(@main_widget)
+ @vboxLayout.objectName = "vboxLayout"
+ browser.centralWidget = @main_widget
@statusbar = Qt::StatusBar.new(browser)
- @statusbar.setObjectName("statusbar")
- browser.setStatusBar(@statusbar)
+ @statusbar.objectName = "statusbar"
+ browser.statusBar = @statusbar
@menubar = Qt::MenuBar.new(browser)
- @menubar.setObjectName("menubar")
- @menubar.setGeometry(Qt::Rect.new(0, 0, 727, 31))
+ @menubar.objectName = "menubar"
+ @menubar.geometry = Qt::Rect.new(0, 0, 727, 31)
@menu_file = Qt::Menu.new(@menubar)
- @menu_file.setObjectName("menu_file")
- @menu_file.setEnabled(false)
+ @menu_file.objectName = "menu_file"
+ @menu_file.enabled = false
@menu_edit = Qt::Menu.new(@menubar)
- @menu_edit.setObjectName("menu_edit")
+ @menu_edit.objectName = "menu_edit"
@menu_search = Qt::Menu.new(@menubar)
- @menu_search.setObjectName("menu_search")
+ @menu_search.objectName = "menu_search"
@menu_model = Qt::Menu.new(@menubar)
- @menu_model.setObjectName("menu_model")
+ @menu_model.objectName = "menu_model"
browser.setMenuBar(@menubar)
@menubar.addAction(@menu_file.menuAction())
@menubar.addAction(@menu_edit.menuAction())
@menubar.addAction(@menu_search.menuAction())
@@ -83,43 +87,38 @@
@menu_model.addAction(@action_dump)
@menu_model.addSeparator()
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.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_dump.setText(Qt::Application.translate("Browser", "&Dump", nil, Qt::Application::UnicodeUTF8))
- @action_dump.setShortcut(Qt::Application.translate("Browser", "Alt+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_new_window.setText(Qt::Application.translate("Browser", "&New Window", 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))
+ @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_dump.text = Qt::Application.translate("Browser", "&Dump", nil, Qt::Application::UnicodeUTF8)
+ @action_dump.shortcut = Qt::Application.translate("Browser", "Alt+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_new_window.text = Qt::Application.translate("Browser", "&New Window", 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)
end # retranslateUi
def retranslate_ui(browser)
retranslateUi(browser)
end