2023-04-05 16:09:58 +08:00
|
|
|
/*
|
2023-04-24 21:49:18 +08:00
|
|
|
* gfdgd xi
|
2023-04-05 16:09:58 +08:00
|
|
|
* 依照 GPLV3 开源
|
|
|
|
*/
|
2022-07-12 20:37:59 +08:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private slots:
|
2023-02-25 08:28:50 +08:00
|
|
|
void ShowCPUMessage();
|
2022-07-12 20:37:59 +08:00
|
|
|
void on_browser_clicked();
|
2023-02-19 15:43:24 +08:00
|
|
|
QString GetRunCommand(QString command);
|
2022-07-12 20:37:59 +08:00
|
|
|
void on_install_clicked();
|
|
|
|
|
2023-02-25 08:28:50 +08:00
|
|
|
|
2023-04-08 11:57:36 +08:00
|
|
|
void on_getvbox_clicked();
|
|
|
|
|
|
|
|
void on_getQemu_clicked();
|
|
|
|
|
2023-04-15 19:14:30 +08:00
|
|
|
void on_vmChooser_currentIndexChanged(int index);
|
|
|
|
|
|
|
|
void on_qemuSetting_clicked();
|
|
|
|
|
2023-04-28 21:43:14 +08:00
|
|
|
void on_addQemuDisk_triggered();
|
|
|
|
|
|
|
|
void on_delQemuDisk_triggered();
|
|
|
|
|
2023-04-29 17:09:09 +08:00
|
|
|
void on_addQemuDiskButton_clicked();
|
|
|
|
|
|
|
|
void on_saveQemuDiskButton_clicked();
|
|
|
|
|
|
|
|
void on_delQemuDiskButton_clicked();
|
|
|
|
|
2023-11-05 14:36:43 +08:00
|
|
|
void on_kvmTest_clicked();
|
|
|
|
|
2023-11-07 19:07:56 +08:00
|
|
|
void on_actionVMLog_triggered();
|
|
|
|
|
2023-11-07 19:34:28 +08:00
|
|
|
void on_actionVMRunlLog_triggered();
|
|
|
|
|
2023-11-07 21:00:32 +08:00
|
|
|
void on_actionVMTest_triggered();
|
|
|
|
|
2023-11-11 20:53:27 +08:00
|
|
|
void on_actionVMInstallLog_triggered();
|
|
|
|
|
2023-11-12 11:13:42 +08:00
|
|
|
void on_action_StopVirtualBox_triggered();
|
|
|
|
|
|
|
|
void on_action_StopQemu_triggered();
|
|
|
|
|
2024-04-27 15:42:25 +08:00
|
|
|
void on_actionQemuDiskAddSpace_triggered();
|
|
|
|
|
|
|
|
void on_getDCLC_triggered();
|
|
|
|
|
2022-07-12 20:37:59 +08:00
|
|
|
private:
|
2023-11-07 19:07:56 +08:00
|
|
|
bool stopShowTime = 0;
|
2022-07-12 20:37:59 +08:00
|
|
|
Ui::MainWindow *ui;
|
2023-02-25 08:28:50 +08:00
|
|
|
long m_cpuAll;
|
|
|
|
long m_cpuFree;
|
2022-07-12 20:37:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|