NCL Composer  0.1.5
 All Classes Functions Variables Pages
WorkspaceSwitch.h
1 /* Copyright (c) 2011 Telemidia/PUC-Rio.
2  * All rights reserved. This program and the accompanying materials
3  * are made available under the terms of the Eclipse Public License v1.0
4  * which accompanies this distribution, and is available at
5  * http://www.eclipse.org/legal/epl-v10.html
6  *
7  * Contributors:
8  * Telemidia/PUC-Rio - initial API and implementation
9  */
10 #ifndef WORKSPACESWITCH_H
11 #define WORKSPACESWITCH_H
12 
13 #include <QDialog>
14 #include <QLineEdit>
15 #include <QGridLayout>
16 #include <QLabel>
17 #include <QPushButton>
18 #include <QFrame>
19 #include <QFileDialog>
20 #include <QDir>
21 
22 namespace composer {
23  namespace gui {
24 
28 class WorkspaceSwitch : public QDialog
29 {
30  Q_OBJECT
31 public:
32  explicit WorkspaceSwitch(QWidget *parent = 0);
33  inline QString getWorspacePath() { return wsPath->text(); }
34 private:
35  QLineEdit *wsPath;
36  QPushButton *openDir;
37  QPushButton *bOk;
38  QPushButton *bCancel;
39 
40  void init();
41 
42 signals:
43 
44 private slots:
45  void openDirectory();
46 
47 };
48 
49 }} //end namespace
50 
51 #endif // WORKSPACESWITCH_H