XSteam/src/xsteam_set_ui.h

83 lines
2.1 KiB
C++

#ifndef XSTEAM_SET_UI_H
#define XSTEAM_SET_UI_H
#include <QDialog>
#include <QMutex>
#include <QLineEdit>
#include <QMutexLocker>
#include <QStandardItemModel>
#include <QTableView>
#include <QTableWidgetItem>
#include <QVBoxLayout>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QPushButton>
#include <QLabel>
#include "xsteam_base.h"
#include "xsteam_ex.h"
class xsteam_set_ui :public QDialog{
Q_OBJECT
public:
static xsteam_set_ui *Instance()
{
if (!_instance)
{
static QMutex mutex;
mutex.lock();
if (!_instance)
{
_instance = new xsteam_set_ui();
}
mutex.unlock();
}
return _instance;
}
private:
xsteam_set_ui();
~xsteam_set_ui();
xsteam_set_ui(const xsteam_set_ui &other);
const xsteam_set_ui &operator=(const xsteam_set_ui &other);
static xsteam_set_ui* _instance;
static QMutex mutex;
void init_set();
void connect_slots();
QVBoxLayout* main_layout;
QVBoxLayout* body_layout;
QHBoxLayout* foot_layout;
QGroupBox* src_group;
QPushButton* _pSaveData={};
QSpacerItem * sparcer_item = new QSpacerItem(0,0,QSizePolicy::Expanding,QSizePolicy::Fixed);
QHBoxLayout* steam_layout;
QLabel* steam_path_str;
QLineEdit* steam_path_edit;
QPushButton* steam_path_btn;
QHBoxLayout* steamtools_layout;
QLabel* steamtools_path_str;
QLineEdit* steamtools_path_edit;
QPushButton* steamtools_path_btn;
QHBoxLayout* steamtools_st_layout;
QLabel* steamtools_st_path_str;
QLineEdit* steamtools_st_path_edit;
QPushButton* steamtools_st_path_btn;
QHBoxLayout* steam_api_layout;
QLabel* steaminfo_api_path_str;
QLineEdit* steaminfo_api_path_edit;
QHBoxLayout* steam_head_api_layout;
QLabel* steaminfo_head_path_str;
QLineEdit* steaminfo_head_path_edit;
private:
void load_data_set();
private slots:
//void clicked_rightMenu(const QPoint &pos); //右键信号槽函数
void slotsSaveDone();
};
xsteam_set_ui *xsteam_set_ui::_instance = {};
QMutex xsteam_set_ui::mutex;
#endif