2024-08-27 17:30:48 +08:00
|
|
|
#ifndef CONF_SETTING_H
|
|
|
|
#define CONF_SETTING_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2024-09-14 00:02:48 +08:00
|
|
|
|
2024-08-27 17:30:48 +08:00
|
|
|
#include "src/config.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class CGroupSetting;
|
|
|
|
}
|
|
|
|
|
|
|
|
class CGroupSetting : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2024-09-14 00:02:48 +08:00
|
|
|
explicit CGroupSetting(QWidget* parent, CGroupIni* oper);
|
2024-08-27 17:30:48 +08:00
|
|
|
~CGroupSetting();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void add_item();
|
|
|
|
void del_item();
|
|
|
|
void set_ui(const OneGroupIni& gp);
|
|
|
|
void change_ini();
|
2025-04-03 14:51:18 +08:00
|
|
|
void update_ini(const QString& cur_key);
|
2024-08-27 17:30:48 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool auto_add_{false};
|
2024-09-14 00:02:48 +08:00
|
|
|
Ui::CGroupSetting* ui;
|
2024-08-27 17:30:48 +08:00
|
|
|
CGroupIni* ini_opr_{};
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONF_SETTING_H
|