Rev | Line | |
---|
[9] | 1 | #ifndef FILE_UI_H
|
---|
| 2 | #define FILE_UI_H
|
---|
| 3 |
|
---|
| 4 | #include <QObject>
|
---|
| 5 |
|
---|
| 6 | class QStringList;
|
---|
| 7 | class QDialog;
|
---|
| 8 | class QTextEdit;
|
---|
| 9 | class QPushButton;
|
---|
| 10 | class QComboBox;
|
---|
| 11 | class QCloseEvent;
|
---|
| 12 |
|
---|
| 13 | class file_ui:public QObject
|
---|
| 14 | {
|
---|
| 15 | Q_OBJECT
|
---|
| 16 |
|
---|
| 17 | public:
|
---|
| 18 | file_ui();
|
---|
| 19 | ~file_ui();
|
---|
| 20 | void log(QString text);
|
---|
| 21 | void addFile(QString file_path);
|
---|
| 22 | void endOfFiles(void);
|
---|
| 23 |
|
---|
| 24 | private:
|
---|
| 25 | QDialog *dialog;
|
---|
| 26 | QStringList *file_names;
|
---|
| 27 | QTextEdit *log_text,*input_text;
|
---|
| 28 | QPushButton *ok_button;
|
---|
| 29 | QComboBox *csv_combo;
|
---|
| 30 | void save_comment(void);
|
---|
| 31 | void save_csv(void);
|
---|
| 32 | void save_txt(void);
|
---|
| 33 | void dbt2csv(QString file_path);
|
---|
| 34 | bool is_greater(qint64 ref_us,qint64 csv_us,int ref_ns,int csv_ns);
|
---|
| 35 | void closeEvent(QCloseEvent * e);
|
---|
| 36 | bool input_cleared;
|
---|
| 37 |
|
---|
| 38 | private slots:
|
---|
| 39 | void save(void);
|
---|
| 40 | void clearInputText(void);
|
---|
| 41 |
|
---|
| 42 | signals:
|
---|
| 43 | void showDialog(void);
|
---|
| 44 | void appendToLog(QString);
|
---|
| 45 | void finished();
|
---|
| 46 | };
|
---|
| 47 |
|
---|
| 48 | #endif // FILE_UI_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.