Debian Codegraph @

src/modifyDialog.h

raw symbols SCIP
1 /* ---------------------------------- modifyDialog.h ---------------------------------------------------------------------------
2 Header file for modifyDialog.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 project version : Please see "main.cpp" for project version
23
24 developer : luckyb
25 last modified : 17 Feb 2011
26 ===============================================================================================================================
27 ===============================================================================================================================
28 */
29
30 #ifndef MODIFYDIALOG_H
31 #define MODIFYDIALOG_H
32
33 //include header file that qmake produces from "*.ui" created with qt designer
34 #include "ui_modifyDialog.h"
35 #include "operationClass.h"
36 #include "patternEditor.h"
37
38 //==============================================================================================================
39 //Declaration of rsyncDialog class (this will execute rsync and show progress in a dialog)
40 class modifyDialog : public QDialog
41 {
42 Q_OBJECT
43
44 public:
45 modifyDialog (int, QDialog *parent=0);
46
47 operation *fillOperationArray(); //function to fill the data of an operation array item from the window fields
48 void fillModifyWindow(operation*); //function to fill the window fields from the data of an operation array item
49 void modifyTrailing(); //function to add a remove a trailing "/" at the end of the source or dest dir
50 QString modifyOS2Slashes(QString); // function to change / to \ for OS2 (normally when file dialog is used)
51 QStringList StdArguments; //this variable holds the standard arguments used by rsync
52 int ArrayPosition; //this holds the item's position in the "operation array"
53 //bool validation; //becomes true if "validation check" button is pressed
54 int count; //simple count variable !!
55
56 private slots:
57 void advancedPressed(bool); //SLOT when advanced buutton pressed to hide part of widget
58 void cancelPressed(); //SLOT when cancel pushbutton pressed
59 void okayPressed(); //SLOT when okay pushbutton pressed
60 void commandPressed(); //SLOT when show command pushbutton pressed
61 void addListItem(const int); //SLOT to add an item in a list
62 void removeListItem(const int); //SLOT to remove an item from a list
63 void editListItem(const int); //SLOT to edit an item from a list
64 void moveListItemUp(const int); //SLOT to move an item from a list
65 void moveListItemDown(const int); //SLOT to move an item from a list
66 void browse(const int); //SLOT to browse for a directory or file
67 void getPattern(const int); //SLOT to launch the pattern editor and insert the pattern to a lineEdit
68 void TaskTypeChanged(int); // SLOT to act upon task type changes
69 void disableExcludeTab(); // SLOT that disables the exclude tab according to include settings
70
71 private:
72 Ui::modifyDialog uiM;
73 int stdWindowWidth, minWindowHeight, maxWindowHeight; //standard window dimensions
74 QString stripInvalidCharacters(QString); //Strips off invalid filename characters from a string
75 bool listItemEditMode; // Becomes true is any list item is edited
76 QString origAddText,origRemoveText; // This will hold a widget's original text when we need to change it for a while
77 QString origAddToolTip,origRemoveToolTip; // This will hold a widget's original tooltip when we need to change it for a while
78 QString alsoExecuteTooltip; // This will hold the tooltip of each "also execute" command
79 Qt::CheckState alsoExecuteState; // Will hold the state of an also execute command
80
81 protected:
82 void closeEvent(QCloseEvent *event); //when the close button of the dialog pressed
83
84 };
85
86 #endif
87
88 // end of modifyDialog.h ---------------------------------------------------------------------------