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
|
|
|
|
2022-07-12 20:37:59 +08:00
|
|
|
private:
|
|
|
|
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
|