Last change
on this file since 70 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
1019 bytes
|
Line | |
---|
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}
|
---|
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 | Q_OBJECT
|
---|
19 |
|
---|
20 | public:
|
---|
21 | file_ui();
|
---|
22 | ~file_ui();
|
---|
23 | void log(QString text);
|
---|
24 | void addFile(QString file_path);
|
---|
25 | void endOfFiles(void);
|
---|
26 |
|
---|
27 | private:
|
---|
28 | QDialog *dialog;
|
---|
29 | QStringList *file_names;
|
---|
30 | QTextEdit *log_text, *input_text;
|
---|
31 | QPushButton *ok_button;
|
---|
32 | QComboBox *csv_combo;
|
---|
33 | void save_comment(void);
|
---|
34 | void save_csv(void);
|
---|
35 | void save_txt(void);
|
---|
36 | void dbt2csv(QString file_path);
|
---|
37 | bool is_greater(qint64 ref_us, qint64 csv_us, int ref_ns, int csv_ns);
|
---|
38 | void closeEvent(QCloseEvent *e);
|
---|
39 | bool input_cleared;
|
---|
40 |
|
---|
41 | private slots:
|
---|
42 | void save(void);
|
---|
43 | void clearInputText(void);
|
---|
44 |
|
---|
45 | signals:
|
---|
46 | void showDialog(void);
|
---|
47 | void appendToLog(QString);
|
---|
48 | void finished();
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif // FILE_UI_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.