mirror of
https://github.com/august-alt/gpui.git
synced 2025-03-17 22:50:35 +03:00
gui: update main window design
This commit is contained in:
parent
412ac4e3a9
commit
01dd2386d4
@ -1,5 +1,7 @@
|
||||
find_package(Qt5 COMPONENTS Widgets REQUIRED)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(HEADERS
|
||||
gui.h
|
||||
mainwindow.h
|
||||
@ -27,5 +29,5 @@ add_definitions(
|
||||
-DGPUI_GUI_LIBRARY
|
||||
)
|
||||
|
||||
add_gpui_library(gpui-gui ${SOURCES} ${UI_SOURCES} ${MOC_SOURCES})
|
||||
add_gpui_library(gpui-gui ${UI_SOURCES} ${MOC_SOURCES} ${SOURCES})
|
||||
target_link_libraries(gpui-gui Qt5::Widgets)
|
||||
|
@ -19,6 +19,7 @@
|
||||
***********************************************************************************************************************/
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
namespace gpui {
|
||||
|
||||
@ -29,12 +30,16 @@ public:
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, d(new MainWindowPrivate())
|
||||
, ui(new Ui::MainWindow())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete d;
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -25,6 +25,10 @@
|
||||
|
||||
#include <QtWidgets>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class MainWindow; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace gpui {
|
||||
|
||||
class MainWindowPrivate;
|
||||
@ -40,6 +44,8 @@ namespace gpui {
|
||||
private:
|
||||
|
||||
MainWindowPrivate* const d;
|
||||
|
||||
Ui::MainWindow *ui;
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<width>657</width>
|
||||
<height>480</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -19,12 +19,215 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>640</width>
|
||||
<width>657</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menu_File">
|
||||
<property name="title">
|
||||
<string>&File</string>
|
||||
</property>
|
||||
<addaction name="actionOptions"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionExit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Edit">
|
||||
<property name="title">
|
||||
<string>&Action</string>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_View">
|
||||
<property name="title">
|
||||
<string>&View</string>
|
||||
</property>
|
||||
<addaction name="actionAddRemoveColumns"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSmallIconView"/>
|
||||
<addaction name="actionLargeIconView"/>
|
||||
<addaction name="actionCompactListView"/>
|
||||
<addaction name="actionDetailedListView"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSelectDC"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionCustomize"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Help">
|
||||
<property name="title">
|
||||
<string>&Help</string>
|
||||
</property>
|
||||
</widget>
|
||||
<addaction name="menu_File"/>
|
||||
<addaction name="menu_Edit"/>
|
||||
<addaction name="menu_View"/>
|
||||
<addaction name="menu_Help"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusbar"/>
|
||||
<widget class="QToolBar" name="toolBar">
|
||||
<property name="windowTitle">
|
||||
<string>toolBar</string>
|
||||
</property>
|
||||
<property name="movable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="floatable">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<attribute name="toolBarArea">
|
||||
<enum>TopToolBarArea</enum>
|
||||
</attribute>
|
||||
<attribute name="toolBarBreak">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<addaction name="actionGoBack"/>
|
||||
<addaction name="actionGoForward"/>
|
||||
<addaction name="actionGoUp"/>
|
||||
<addaction name="actionReload"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSmallIconView"/>
|
||||
<addaction name="actionLargeIconView"/>
|
||||
<addaction name="actionCompactListView"/>
|
||||
<addaction name="actionDetailedListView"/>
|
||||
<addaction name="separator"/>
|
||||
</widget>
|
||||
<action name="actionGoBack">
|
||||
<property name="icon">
|
||||
<iconset theme="go-previous">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Go &Back</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Go Back</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+Left</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGoForward">
|
||||
<property name="icon">
|
||||
<iconset theme="go-next">
|
||||
<normaloff>.</normaloff>.</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Go &Forward</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Go Forward</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+Right</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGoUp">
|
||||
<property name="icon">
|
||||
<iconset theme="go-up"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Go &Up</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Go Up</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Alt+Up</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionReload">
|
||||
<property name="icon">
|
||||
<iconset theme="reload"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Reload</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Reload</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+R</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSmallIconView">
|
||||
<property name="text">
|
||||
<string>&Small Icon View</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Small Icon View</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLargeIconView">
|
||||
<property name="text">
|
||||
<string>&Large Icon View</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Large Icon View</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCompactListView">
|
||||
<property name="text">
|
||||
<string>&Compact List View</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Compact List View</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOptions">
|
||||
<property name="icon">
|
||||
<iconset theme="settings"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Options</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Options</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExit">
|
||||
<property name="icon">
|
||||
<iconset theme="exit"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Exit</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Exit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAddRemoveColumns">
|
||||
<property name="text">
|
||||
<string>&Add/Remove Columns</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Add/Remove Columns</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+A</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDetailedListView">
|
||||
<property name="text">
|
||||
<string>&Detailed List View</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Detailed List View</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSelectDC">
|
||||
<property name="text">
|
||||
<string>&Select DC</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Select Domain Controller</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCustomize">
|
||||
<property name="text">
|
||||
<string>&Customize</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Customize</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user