压力算法移植前
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
#ifndef SECTIONALWID_H
|
||||
#define SECTIONALWID_H
|
||||
|
||||
#include <QTableWidget>
|
||||
#include <QWidget>
|
||||
#include "SysPara.h"
|
||||
#include "sectionalmanager.h"
|
||||
|
||||
/**
|
||||
迁移vx4桂林国际分段计米功能
|
||||
**/
|
||||
|
||||
#define MAX_CNT1_GROUPS_NUM 50
|
||||
|
||||
namespace Ui {
|
||||
class SectionalWid;
|
||||
}
|
||||
|
||||
class SectionalWid : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SectionalWid(QWidget *parent = 0);
|
||||
~SectionalWid();
|
||||
|
||||
void bindSysPara(SysPara* sysPara);
|
||||
|
||||
private slots:
|
||||
#ifdef COUNTER1_BY_GROUP /* 分段计米 */
|
||||
void on_Cnt3AddRowBtn_clicked();
|
||||
|
||||
void on_Cnt3InsertRowBtn_clicked();
|
||||
|
||||
void on_cnt3RemoveAllRowsBtn_clicked();
|
||||
|
||||
void on_Cnt3RemoveRowBtn_clicked();
|
||||
|
||||
void on_cnt3RemoveAllRowsBtn_3_clicked();
|
||||
|
||||
void on_checkBoxGroupCnt1_clicked(bool checked);
|
||||
#endif
|
||||
void on_pushButtonUpRow_clicked();
|
||||
|
||||
void on_pushButtonDownRow_clicked();
|
||||
|
||||
#ifdef COUNTER2_BY_GROUP /* 分段计米 */
|
||||
void on_Cnt3AddRowBtn_2_clicked();
|
||||
|
||||
void on_Cnt3InsertRowBtn_2_clicked();
|
||||
|
||||
void on_cnt3RemoveAllRowsBtn_2_clicked();
|
||||
|
||||
void on_Cnt3RemoveRowBtn_2_clicked();
|
||||
|
||||
void on_cnt3RemoveAllRowsBtn_4_clicked();
|
||||
|
||||
void on_checkBoxGroupCnt_2_clicked(bool checked);
|
||||
#endif
|
||||
void on_pushButtonUpRow_2_clicked();
|
||||
|
||||
void on_pushButtonDownRow_2_clicked();
|
||||
|
||||
void slt_applySetting();
|
||||
void slt_loadSettings2UI();
|
||||
void slt_updateCntGroupDisp(bool bChangeToNext);
|
||||
|
||||
private:
|
||||
Ui::SectionalWid *ui;
|
||||
SysPara* sysPara = nullptr;
|
||||
void initUI();
|
||||
|
||||
#ifdef COUNTER1_BY_GROUP /* 分段计米 */
|
||||
void rowWidgetCreate(int rowIndex);
|
||||
void LoadCnt1GroupSettingsToUI();
|
||||
void updateCnt1GroupsTblWgt();
|
||||
void ApplyCnt1GroupSetting();
|
||||
#endif
|
||||
|
||||
#ifdef COUNTER2_BY_GROUP /* 分段计米 */
|
||||
void rowWidgetCreate2(int rowIndex);
|
||||
void LoadCnt2GroupSettingsToUI();
|
||||
void updateCnt2GroupsTblWgt();
|
||||
void ApplyCnt2GroupSetting();
|
||||
#endif
|
||||
|
||||
/**
|
||||
type:选表格
|
||||
**/
|
||||
void moveRow(int currentRow, int toRow, QTableWidget* table);
|
||||
|
||||
};
|
||||
|
||||
#endif // SECTIONALWID_H
|
||||
Reference in New Issue
Block a user