93 lines
1.7 KiB
C++
93 lines
1.7 KiB
C++
#ifndef TOOLSUI_H
|
|
#define TOOLSUI_H
|
|
|
|
#include <QWidget>
|
|
#include "QFile"
|
|
#include "QTextStream"
|
|
|
|
#include "tools_Index0.h"
|
|
#include "tools_Index1.h"
|
|
#include "tools_Index2.h"
|
|
#include "tools_Index3.h"
|
|
#include "tools_Index4.h"
|
|
#include "PowerSystem/PowerSystem.h"
|
|
#include "ServoSystem/ServoSystem.h"
|
|
|
|
#include "CommandUI/CommandUI.h"
|
|
#include "CommandBox/CommandBox.h"
|
|
#include "Diagram/Diagram.h"
|
|
|
|
namespace Ui {
|
|
class ToolsUI;
|
|
}
|
|
|
|
class ToolsUI : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum state{
|
|
unSelected = 0,
|
|
preSelected = 1,
|
|
Selected = 2,
|
|
};
|
|
|
|
explicit ToolsUI(QWidget *parent = nullptr);
|
|
~ToolsUI();
|
|
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
Tools_Index0 *index0 = nullptr;
|
|
Tools_Index1 *index1 = nullptr;
|
|
Tools_Index2 *index2 = nullptr;
|
|
Tools_Index3 *index3 = nullptr;
|
|
tools_Index4 *index4 = nullptr;
|
|
|
|
|
|
PowerSystem *powersystem = nullptr;
|
|
ServoSystem *servosystem = nullptr;
|
|
|
|
CommandBox *command = nullptr;
|
|
|
|
Diagram *diagram = nullptr;
|
|
|
|
private slots:
|
|
void setPushButtonState(QWidget *w,state s);
|
|
void onTabIndexChanged(const int &index);
|
|
|
|
|
|
|
|
void on_pushButton_Inspector_clicked();
|
|
|
|
void on_pushButton_Log_clicked();
|
|
|
|
void on_pushButton_Replay_clicked();
|
|
|
|
void on_pushButton_Console_clicked();
|
|
|
|
void on_pushButton_Servos_clicked();
|
|
|
|
void on_PowerSystem_clicked();
|
|
|
|
void on_ServoSystem_clicked();
|
|
|
|
void on_pushButton_ShowExtern_clicked();
|
|
|
|
void on_pushButton_CommandBox_clicked();
|
|
|
|
void on_pushButton_Diagram_clicked();
|
|
|
|
signals:
|
|
void IndexChanged(const int &index);
|
|
|
|
|
|
private:
|
|
Ui::ToolsUI *ui;
|
|
|
|
int CurrentIndex = 0;
|
|
|
|
};
|
|
|
|
#endif // TOOLSUI_H
|