18 changed files with 1956 additions and 1587 deletions
-
1CMakeLists.txt
-
10src/app/main.cpp
-
258src/app/syncbox16ch/syncbox16ch.ui
-
0src/zqui/appmgr/appmgr.cpp
-
54src/zqui/appmgr/appmgr.hpp
-
20src/zqui/zqui/appnavibar.cpp
-
25src/zqui/zqui/appnavibar.h
-
155src/zqui/zqui/appnavibar.ui
-
9src/zqui/zqui/mainwindow.cpp
-
0src/zqui/zqui/mainwindow.h
-
21src/zqui/zqui/mainwindow.ui
-
35src/zqui/zqui/zqui.cpp
-
11src/zqui/zqui/zqui.hpp
@ -1,54 +0,0 @@ |
|||
#pragma once
|
|||
|
|||
#include <QMainWindow>
|
|||
#include <QtCore/QVariant>
|
|||
#include <QtWidgets/QAction>
|
|||
#include <QtWidgets/QApplication>
|
|||
#include <QtWidgets/QComboBox>
|
|||
#include <QtWidgets/QFormLayout>
|
|||
#include <QtWidgets/QGridLayout>
|
|||
#include <QtWidgets/QGroupBox>
|
|||
#include <QtWidgets/QHBoxLayout>
|
|||
#include <QtWidgets/QLabel>
|
|||
#include <QtWidgets/QMainWindow>
|
|||
#include <QtWidgets/QMenu>
|
|||
#include <QtWidgets/QMenuBar>
|
|||
#include <QtWidgets/QPushButton>
|
|||
#include <QtWidgets/QSpacerItem>
|
|||
#include <QtWidgets/QStatusBar>
|
|||
#include <QtWidgets/QTabWidget>
|
|||
#include <QtWidgets/QTextBrowser>
|
|||
#include <QtWidgets/QTextEdit>
|
|||
#include <QtWidgets/QVBoxLayout>
|
|||
#include <QtWidgets/QWidget>
|
|||
//
|
|||
|
|||
#include <fstream>
|
|||
#include <functional>
|
|||
#include <iostream>
|
|||
#include <list>
|
|||
#include <map>
|
|||
#include <memory>
|
|||
#include <set>
|
|||
#include <sstream>
|
|||
#include <string>
|
|||
#include <vector>
|
|||
|
|||
typedef std::function<QWidget *(QWidget *parent)> appbuilder_fn_t; |
|||
|
|||
class AppMgr { |
|||
public: |
|||
appbuilder_fn_t appBuilder; |
|||
|
|||
public: |
|||
static AppMgr *ins() { |
|||
static AppMgr instance; |
|||
return &instance; |
|||
} |
|||
|
|||
void regAppBuilder(appbuilder_fn_t builder) { appBuilder = builder; } |
|||
QWidget *buildApp(QWidget *parent) { |
|||
if (appBuilder) return appBuilder(parent); |
|||
return nullptr; |
|||
} |
|||
}; |
@ -0,0 +1,20 @@ |
|||
#include "appnavibar.h"
|
|||
#include "ui_appnavibar.h"
|
|||
|
|||
AppNaviBar::AppNaviBar(QWidget *parent) : |
|||
QMainWindow(parent), |
|||
ui(new Ui::AppNaviBar) |
|||
{ |
|||
ui->setupUi(this); |
|||
} |
|||
|
|||
AppNaviBar::~AppNaviBar() |
|||
{ |
|||
delete ui; |
|||
} |
|||
|
|||
void AppNaviBar::on_App0_released() |
|||
{ |
|||
|
|||
} |
|||
|
@ -0,0 +1,25 @@ |
|||
#ifndef APPNAVIBAR_H |
|||
#define APPNAVIBAR_H |
|||
|
|||
#include <QMainWindow> |
|||
|
|||
namespace Ui { |
|||
class AppNaviBar; |
|||
} |
|||
|
|||
class AppNaviBar : public QMainWindow |
|||
{ |
|||
Q_OBJECT |
|||
|
|||
public: |
|||
explicit AppNaviBar(QWidget *parent = nullptr); |
|||
~AppNaviBar(); |
|||
|
|||
private slots: |
|||
void on_App0_released(); |
|||
|
|||
public: |
|||
Ui::AppNaviBar *ui; |
|||
}; |
|||
|
|||
#endif // APPNAVIBAR_H |
@ -0,0 +1,155 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<ui version="4.0"> |
|||
<class>AppNaviBar</class> |
|||
<widget class="QMainWindow" name="AppNaviBar"> |
|||
<property name="geometry"> |
|||
<rect> |
|||
<x>0</x> |
|||
<y>0</y> |
|||
<width>595</width> |
|||
<height>262</height> |
|||
</rect> |
|||
</property> |
|||
<property name="windowTitle"> |
|||
<string>产品梦工厂</string> |
|||
</property> |
|||
<widget class="QWidget" name="centralwidget"> |
|||
<layout class="QGridLayout" name="gridLayout"> |
|||
<item row="0" column="1"> |
|||
<widget class="QPushButton" name="App1"> |
|||
<property name="sizePolicy"> |
|||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
|||
<horstretch>0</horstretch> |
|||
<verstretch>0</verstretch> |
|||
</sizepolicy> |
|||
</property> |
|||
<property name="font"> |
|||
<font> |
|||
<family>Agency FB</family> |
|||
<pointsize>20</pointsize> |
|||
</font> |
|||
</property> |
|||
<property name="styleSheet"> |
|||
<string notr="true">background-color: rgb(166, 254, 255);</string> |
|||
</property> |
|||
<property name="text"> |
|||
<string/> |
|||
</property> |
|||
</widget> |
|||
</item> |
|||
<item row="0" column="2"> |
|||
<widget class="QPushButton" name="App2"> |
|||
<property name="sizePolicy"> |
|||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
|||
<horstretch>0</horstretch> |
|||
<verstretch>0</verstretch> |
|||
</sizepolicy> |
|||
</property> |
|||
<property name="font"> |
|||
<font> |
|||
<family>Agency FB</family> |
|||
<pointsize>20</pointsize> |
|||
</font> |
|||
</property> |
|||
<property name="styleSheet"> |
|||
<string notr="true">background-color: rgb(166, 254, 255);</string> |
|||
</property> |
|||
<property name="text"> |
|||
<string/> |
|||
</property> |
|||
</widget> |
|||
</item> |
|||
<item row="0" column="0"> |
|||
<widget class="QPushButton" name="App0"> |
|||
<property name="sizePolicy"> |
|||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
|||
<horstretch>0</horstretch> |
|||
<verstretch>0</verstretch> |
|||
</sizepolicy> |
|||
</property> |
|||
<property name="font"> |
|||
<font> |
|||
<family>Agency FB</family> |
|||
<pointsize>20</pointsize> |
|||
</font> |
|||
</property> |
|||
<property name="styleSheet"> |
|||
<string notr="true">background-color: rgb(166, 254, 255);</string> |
|||
</property> |
|||
<property name="text"> |
|||
<string/> |
|||
</property> |
|||
</widget> |
|||
</item> |
|||
<item row="1" column="0"> |
|||
<widget class="QPushButton" name="App3"> |
|||
<property name="sizePolicy"> |
|||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
|||
<horstretch>0</horstretch> |
|||
<verstretch>0</verstretch> |
|||
</sizepolicy> |
|||
</property> |
|||
<property name="font"> |
|||
<font> |
|||
<family>Agency FB</family> |
|||
<pointsize>20</pointsize> |
|||
</font> |
|||
</property> |
|||
<property name="styleSheet"> |
|||
<string notr="true">background-color: rgb(166, 254, 255);</string> |
|||
</property> |
|||
<property name="text"> |
|||
<string/> |
|||
</property> |
|||
</widget> |
|||
</item> |
|||
<item row="1" column="1"> |
|||
<widget class="QPushButton" name="App4"> |
|||
<property name="sizePolicy"> |
|||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
|||
<horstretch>0</horstretch> |
|||
<verstretch>0</verstretch> |
|||
</sizepolicy> |
|||
</property> |
|||
<property name="font"> |
|||
<font> |
|||
<family>Agency FB</family> |
|||
<pointsize>20</pointsize> |
|||
</font> |
|||
</property> |
|||
<property name="styleSheet"> |
|||
<string notr="true">background-color: rgb(166, 254, 255);</string> |
|||
</property> |
|||
<property name="text"> |
|||
<string/> |
|||
</property> |
|||
</widget> |
|||
</item> |
|||
<item row="1" column="2"> |
|||
<widget class="QPushButton" name="App5"> |
|||
<property name="sizePolicy"> |
|||
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> |
|||
<horstretch>0</horstretch> |
|||
<verstretch>0</verstretch> |
|||
</sizepolicy> |
|||
</property> |
|||
<property name="font"> |
|||
<font> |
|||
<family>Agency FB</family> |
|||
<pointsize>20</pointsize> |
|||
</font> |
|||
</property> |
|||
<property name="styleSheet"> |
|||
<string notr="true">background-color: rgb(166, 254, 255);</string> |
|||
</property> |
|||
<property name="text"> |
|||
<string/> |
|||
</property> |
|||
</widget> |
|||
</item> |
|||
</layout> |
|||
</widget> |
|||
</widget> |
|||
<resources/> |
|||
<connections/> |
|||
</ui> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue