55 lines
774 B
C++
Executable File
55 lines
774 B
C++
Executable File
/**
|
|
* Maindialog for codification dialog
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-11-02
|
|
*/
|
|
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
namespace Ui
|
|
{
|
|
class MainDialog;
|
|
}
|
|
|
|
namespace NGL
|
|
{
|
|
class INGLLogger;
|
|
}
|
|
|
|
class NumeralCodeModel;
|
|
|
|
class MainDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainDialog(QWidget *parent = nullptr);
|
|
~MainDialog();
|
|
|
|
bool init();
|
|
bool initNumeralModel();
|
|
|
|
private Q_SLOTS:
|
|
void onCbEditModeToggled(bool isChecked);
|
|
|
|
void onPbSetHorizontalHeader();
|
|
void onPbSetHorizontalHeaderCSV();
|
|
void onPbSetVerticalHeader();
|
|
void onPbSetVerticalHeaderCSV();
|
|
|
|
void getNumeralCodeHeader();
|
|
|
|
private:
|
|
Ui::MainDialog *m_ui;
|
|
NumeralCodeModel *m_numCodeModel;
|
|
|
|
NGL::INGLLogger &m_logger;
|
|
|
|
};
|