"Fossies" - the Fresh Open Source Software Archive 
Member "ansifilter-2.18-x64/src/qt-gui/mydialog.h" (30 Jan 2021, 3560 Bytes) of package /windows/misc/ansifilter-2.18-x64.zip:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the last
Fossies "Diffs" side-by-side code changes report for "mydialog.h":
2.15_vs_2.16.
1 /***************************************************************************
2 mydialog.h - description
3 -------------------
4 copyright : (C) 2007 by Andre Simon
5 email : andre.simon1@gmx.de
6 ***************************************************************************/
7
8 /*
9 This file is part of ANSIFilter.
10
11 ANSIFilter is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 ANSIFilter is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with ANSIFilter. If not, see <http://www.gnu.org/licenses/>.
23 */
24
25 #ifndef MYDIALOG
26 #define MYDIALOG
27
28 #include <QCloseEvent>
29 #include <QFileSystemWatcher>
30 #include "ui_ansifilter.h"
31 #include "codegenerator.h"
32
33
34 class MyDialog : public QDialog
35 {
36 Q_OBJECT
37 public:
38 Ui::Dialog dlg;
39 //The same constructor that we used last time with QDialog default parameters
40 MyDialog(QWidget * parent = 0, Qt::WindowFlags f = 0);
41
42
43 void setInputFileName(const char* fName) {
44 inputFileName=QString(fName);
45 showFile();
46 }
47
48 virtual ~MyDialog() {}
49
50 protected:
51 void closeEvent(QCloseEvent *event);
52
53 private:
54 QString inputFileName;
55 QString outputFileName;
56
57 QFileSystemWatcher fileWatcher;
58
59 QString getOutFileSuffix();
60 ansifilter::OutputType getOutputType();
61 void openFile(const QString & path);
62 void showFile();
63
64 QString getWindowsShortPath(const QString & path);
65
66 void dropEvent(QDropEvent* event);
67 void dragEnterEvent(QDragEnterEvent *event);
68 void dragLeaveEvent(QDragLeaveEvent* event);
69
70 public slots:
71 //This is a slot like the ones we used in our last tutorial
72 // The difference here that it gets automatically connect
73 // If you use on_objectname_signalname it's like connect(pushButton,SIGNAL(clicked()),this,SLOT(on_pushButton_clicked()))
74 void on_pbSaveAs_clicked();
75 void on_pbFileOpen_clicked();
76 void on_pbAbout_clicked();
77 void on_pbClipboard_clicked();
78 void on_pbSelectMapFile_clicked();
79 void on_cbParseAsciiArt_clicked();
80 void on_cbIgnClearSeq_clicked();
81 void on_cbIgnCSISeq_clicked();
82
83 void on_cbIgnoreSequences_stateChanged();
84 void on_cbWatchFile_stateChanged();
85 void on_sbWidth_valueChanged(int i);
86 void on_sbHeight_valueChanged(int i);
87 void on_comboFont_currentIndexChanged(int idx);
88 void on_comboAnsiFormat_currentIndexChanged(int idx);
89
90 void on_comboEncoding_currentIndexChanged(int idx);
91 void onFileChanged(const QString & path);
92 void plausibility();
93 };
94
95 #endif
96