1 | /***************************************************************************
|
---|
2 | xmondo.h - description
|
---|
3 | -------------------
|
---|
4 | begin : Thu Apr 24 19:44:32 PDT 2003
|
---|
5 | copyright : (C) 2003 by Joshua Oreman
|
---|
6 | email : oremanj@get-linux.org
|
---|
7 | cvsid : $Id: xmondo.h 128 2005-11-19 01:27:41Z bcornec $
|
---|
8 | ***************************************************************************/
|
---|
9 |
|
---|
10 | /***************************************************************************
|
---|
11 | * *
|
---|
12 | * This program is free software; you can redistribute it and/or modify *
|
---|
13 | * it under the terms of the GNU General Public License as published by *
|
---|
14 | * the Free Software Foundation; either version 2 of the License, or *
|
---|
15 | * (at your option) any later version. *
|
---|
16 | * *
|
---|
17 | ***************************************************************************/
|
---|
18 |
|
---|
19 | #ifndef XMONDO_H
|
---|
20 | #define XMONDO_H
|
---|
21 |
|
---|
22 | #undef scroll // newt weirdness
|
---|
23 |
|
---|
24 | #ifdef HAVE_CONFIG_H
|
---|
25 | #include <config.h>
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | #include <kapp.h>
|
---|
29 | #include <kmainwindow.h>
|
---|
30 | #include <kmenubar.h>
|
---|
31 | #include <qwidget.h>
|
---|
32 | #include <qpushbutton.h>
|
---|
33 | #include <qwidgetstack.h>
|
---|
34 | #include <qtabwidget.h>
|
---|
35 | #include "xmondobackup.h"
|
---|
36 |
|
---|
37 | extern "C" {
|
---|
38 | #undef DEBUG
|
---|
39 | #define bool int
|
---|
40 | #include "my-stuff.h"
|
---|
41 | #include "mondostructures.h"
|
---|
42 | #undef bool
|
---|
43 | } class QVButtonGroup;
|
---|
44 | class QLabel;
|
---|
45 | class QLineEdit;
|
---|
46 | class QListView;
|
---|
47 | class QCheckBox;
|
---|
48 |
|
---|
49 | class XMondoBackup;
|
---|
50 | class XMondoRestore;
|
---|
51 |
|
---|
52 | struct s_bkpinfo;
|
---|
53 |
|
---|
54 | /** XMondo is the base class of the project */
|
---|
55 | class XMondo:public KMainWindow {
|
---|
56 | Q_OBJECT public:
|
---|
57 | /** construtor */
|
---|
58 | XMondo(QWidget * parent = 0, const char *name = 0);
|
---|
59 | /** destructor */
|
---|
60 | virtual ~ XMondo();
|
---|
61 |
|
---|
62 | void fillBkpinfo(struct s_bkpinfo *);
|
---|
63 |
|
---|
64 | public slots:void slotVerboseChange(bool v);
|
---|
65 | void slotMode(int x);
|
---|
66 | void slotMediaType(int x);
|
---|
67 | void slotCompareMediaType(int x);
|
---|
68 | void slotRestoreMediaType(int x);
|
---|
69 | void slotStartBackup();
|
---|
70 | void slotStartCompare();
|
---|
71 | void slotAddInclude();
|
---|
72 | void slotAddExclude();
|
---|
73 | void slotDelInclude();
|
---|
74 | void slotDelExclude();
|
---|
75 | void slotTabChange(QWidget *);
|
---|
76 | void slotPrevRestore();
|
---|
77 | void slotNextRestore();
|
---|
78 |
|
---|
79 | private:
|
---|
80 | void initBackupTab(QWidget * &);
|
---|
81 | void initOptionsTab(QWidget * &);
|
---|
82 | void initAdvancedTab(QWidget * &);
|
---|
83 | void initCompareTab(QWidget * &);
|
---|
84 | void initRestoreTab(QWidget * &);
|
---|
85 |
|
---|
86 | QVButtonGroup *buttons;
|
---|
87 | QWidgetStack *stack, *restoreStack;
|
---|
88 | QTabWidget *backup;
|
---|
89 | QWidget *compare, *restore, *tabHardware, *tabOptions, *tabAdvanced,
|
---|
90 | *restoreInfo, *restoreFiles;
|
---|
91 | QPushButton *bStartBackup, *bStartCompare;
|
---|
92 | QPushButton *rPrev, *rNext;
|
---|
93 | QButtonGroup *bgMediaType, *bgCompression, *bgCompareMediaType,
|
---|
94 | *bgCompareCompression, *bgBootLoader, *mainButtons,
|
---|
95 | *bgRestoreMediaType;
|
---|
96 | QLabel *lDOption, *compareLDOption, *nfsRemoteDir,
|
---|
97 | *compareNFSRemoteDir, *restoreLDOption, *restoreNFSRemoteDir;
|
---|
98 | QLineEdit *editDOption, *editMediaSize, *compareEditDOption,
|
---|
99 | *compareEditMediaSize, *restoreEditDOption, *restoreEditMediaSize,
|
---|
100 | *editBootDevice, *editKernel, *editNFSRemoteDir,
|
---|
101 | *compareEditNFSRemoteDir, *restoreEditNFSRemoteDir, *restoreFilter;
|
---|
102 | QListView *listImageDevs, *listInclude, *listExclude, *listExcludeDevs;
|
---|
103 | QCheckBox *checkDifferential, *checkBackupNFS, *checkCompare,
|
---|
104 | *checkMakeBootFloppies, *checkUseLilo;
|
---|
105 | QLineEdit *pendingInclude, *pendingExclude;
|
---|
106 | XMondoBackup *bkup;
|
---|
107 | XMondoRestore *rstr;
|
---|
108 | };
|
---|
109 |
|
---|
110 | #endif
|
---|