#ifndef APPCONFIG_H #define APPCONFIG_H #include "head.h" class AppConfig { public: static QString ConfigFile; //配置文件文件路径及名称 static QString StyleName; //样式文件 static int TreePanelWidth; //左侧树状面板宽度 static int MainPanelWidth; //中间面板宽度 static int OpenGLPanelWidth; //顶部3D面板宽度 static int DataPanelWidth; //数据面板宽度 static int PlotPanelWidth; //曲线面板宽度 static int TablePanelWidth; //表格面板宽度 static void readConfig(); //读取配置文件,在main函数最开始加载程序载入 static void writeConfig(); //写入配置文件,在更改配置文件程序关闭时调用 }; #endif // APPCONFIG_H