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