Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Palacios GUI Added
[palacios.git] / linux_usr / gui / palacios / vm_creation_wizard.h
1 /*
2  * newvmwizard.h
3  *
4  *  Created on: Sep 20, 2012
5  *      Author: abhinav
6  */
7
8 #ifndef NEWVMWIZARD_H_
9 #define NEWVMWIZARD_H_
10
11 #include <QtGui>
12 #include <QWizard>
13
14 class IntroPage;
15 class GuestImagePage;
16 class FinalPage;
17
18 class NewVmWizard: public QWizard {
19 Q_OBJECT
20 public:
21         enum {
22                 Page_Intro, Page_Image_File, Page_Final
23         };
24         NewVmWizard(QWidget* parent = 0);
25         ~NewVmWizard();
26
27 signals:
28         void finishedWizard(QString guestName);
29
30 private:
31         IntroPage* mIntroPage;
32         GuestImagePage* mImagePage;
33         FinalPage* mFinalPage;
34 };
35
36 class IntroPage: public QWizardPage {
37 Q_OBJECT
38
39 public:
40         IntroPage(QWidget* parent = 0);
41         ~IntroPage();
42         int nextId() const;
43
44 private:
45         QLabel* topLabel;
46 };
47
48 class GuestImagePage: public QWizardPage {
49 Q_OBJECT
50
51 public:
52         GuestImagePage(QWidget* parent = 0);
53         ~GuestImagePage();
54         bool validatePage();
55         int nextId() const;
56
57 private slots:
58         void locateConfigFile();
59         void locateImageFile();
60
61 private:
62         QLabel* guestNameLabel;
63         QLabel* configLocLabel;
64         QLabel* imageLocLabel;
65
66         QLineEdit* guestName;
67         QLineEdit* configLoc;
68         QLineEdit* imageLoc;
69
70         QPushButton* browseConfig;
71         QPushButton* browseImage;
72
73         QProcess* v3Proc;
74 };
75
76 class FinalPage: public QWizardPage {
77 Q_OBJECT
78
79 public:
80         FinalPage(QWidget* parent = 0);
81         ~FinalPage();
82         int nextId() const;
83
84 private:
85         QLabel* finalLabel;
86 };
87
88 #endif /* NEWVMWIZARD_H_ */