Debian Codegraph @

src/logDialog.h

raw symbols SCIP
1 // ---------------------------------- logDialog.h ---------------------------------------------------------------------------
2 // Header file for logDialog.cpp
3 /*
4 ===============================================================================================================================
5 ===============================================================================================================================
6 This file is part of "luckyBackup" project
7 Copyright, Loukas Avgeriou
8 luckyBackup is distributed under the terms of the GNU General Public License
9 luckyBackup is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 luckyBackup is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with luckyBackup. If not, see <http://www.gnu.org/licenses/>.
21
22
23 project version : Please see "main.cpp" for project version
24
25 developer : luckyb
26 last modified : 28 Aug 2010
27 ===============================================================================================================================
28 ===============================================================================================================================
29 */
30
31 #ifndef LOGDIALOG_H
32 #define LOGDIALOG_H
33
34 //include header file that qmake produces from "*.ui" created with qt designer
35 #include "ui_logDialog.h"
36
37 class ReadLogFile;
38
39 //==============================================================================================================
40 //Declaration of logDialog class (this will viw a log file in a dialog)
41 class logDialog : public QDialog
42 {
43 Q_OBJECT
44
45 public:
46 logDialog (QUrl, QWidget *parent=0);
47 QString logText;
48 // QStringList errorLine;
49 int errorCount;
50 int totalErrors;
51 bool firstScroll;
52
53 private slots:
54 void closeLog(); //SLOT when button close pressed
55 void prevError(); //SLOT to scroll to next error
56 void nextError(); //SLOT to scroll to next error
57 void refreshWindow(const QString &); //SLOT to refresh the log window
58 void refreshWindowError(const QString &); //SLOT to refresh the log window
59 void readLogFileNOW(); // SLOT to read the logfile in a new thread
60 void logReadEnd(); //SLOT when finished reading logfile from disk
61
62 private:
63 Ui::logDialog uiL;
64 ReadLogFile *readlogfile; // QThread that will read the logfile
65 };
66
67 #endif
68
69 // end of logDialog.h ---------------------------------------------------------------------------