68 lines
2.2 KiB
C++
Executable File
68 lines
2.2 KiB
C++
Executable File
#ifndef WIDGET_H
|
||
#define WIDGET_H
|
||
#include <QWidget>
|
||
#include <DMainWindow>
|
||
#include <DGuiApplicationHelper>//用来适配深色模式 Used to adapt to dark model
|
||
#include "widget.h"
|
||
#include <DPushButton>
|
||
#include <DLabel>
|
||
#include <QString>
|
||
#include <DLineEdit>
|
||
#include <DCheckBox>
|
||
#include <DFrame>
|
||
#include <DRadioButton>
|
||
#include <QButtonGroup>
|
||
#include <DPasswordEdit>
|
||
#include <DSlider>
|
||
#include <unistd.h>
|
||
|
||
DWIDGET_USE_NAMESPACE
|
||
|
||
class MainWindow : public DMainWindow
|
||
{
|
||
Q_OBJECT
|
||
|
||
public:
|
||
MainWindow(DMainWindow *parent = nullptr);
|
||
~MainWindow();
|
||
void setTheme(DGuiApplicationHelper::ColorType);
|
||
void ConnectIp();
|
||
void ShowMoreSetting();
|
||
void ShowScreenEnabled();
|
||
char * ReadFile(char path[]);
|
||
void OpenFile();
|
||
void SaveFile();
|
||
void OpenProgramWithTerminal(QStringList argv);
|
||
void InstallXrdp();
|
||
void WriteXrdpUserXfce4();
|
||
void WriteXrdpUserDde();
|
||
|
||
private:
|
||
QHBoxLayout *moreSettingLayout = new QHBoxLayout;
|
||
QVBoxLayout *AllWidget = new QVBoxLayout;
|
||
DPushButton *install = new DPushButton;
|
||
DLineEdit *ip = new DLineEdit;
|
||
QButtonGroup *showScreen = new QButtonGroup(this);
|
||
QButtonGroup *rdpVersion = new QButtonGroup(this);
|
||
QButtonGroup *rdesktopVersion = new QButtonGroup(this);
|
||
//QButtonGroup *rdpConnect = new QButtonGroup(this);
|
||
DCheckBox *paste = new DCheckBox();
|
||
DCheckBox *remoteSound = new DCheckBox();
|
||
DCheckBox *shareRootFile = new DCheckBox();
|
||
DCheckBox *shareHomeFile = new DCheckBox();
|
||
DCheckBox *moreSetting = new DCheckBox;
|
||
DFrame *moreSettingFrame = new DFrame;
|
||
DLineEdit *sizeScreenWidth = new DLineEdit();
|
||
DLineEdit *sizeScreenHeight = new DLineEdit();
|
||
DLineEdit *showTitle = new DLineEdit();
|
||
DLineEdit *user = new DLineEdit();
|
||
DLineEdit *command = new DLineEdit();
|
||
DPasswordEdit *password = new DPasswordEdit();
|
||
DSlider *color = new DSlider();
|
||
DLabel *colorShow = new DLabel();
|
||
QWidget *w=new QWidget; //w是窗口的用户区,应当是所有窗口中控件的父(不包含标题栏及其上边的控件) W is the user area of the window and should be the parent of all controls in the window (excluding the title bar and controls above it)
|
||
char programPath[100];
|
||
};
|
||
|
||
#endif // WIDGET_H
|