1 #ifndef WORKSPACE_WIZARD_H_INCLUDED
2 #define WORKSPACE_WIZARD_H_INCLUDED
23 #include <QFileDialog>
24 #include <QListWidget>
33 class IWorkspaceFactory;
61 enum { Page_Path, Page_Existing, Page_Init, Page_Done };
63 std::shared_ptr<Ws::IWorkspaceFactory> m_workspace_factory;
70 PathPage(
const std::shared_ptr<Ws::IWorkspaceFactory>&);
73 virtual int nextId()
const;
76 void showBrowseDialog();
77 void pathSelected(
const QString &);
82 std::shared_ptr<Ws::IWorkspaceFactory> m_workspace_factory;
91 ExistingPage(
const std::shared_ptr<Ws::IWorkspaceFactory>&);
94 virtual void initializePage();
95 virtual int nextId()
const;
98 QListWidget* projects;
100 std::shared_ptr<Ws::IWorkspaceFactory> m_workspace_factory;
108 InitPage(
const std::shared_ptr<Ws::IWorkspaceFactory>&);
111 virtual void initializePage();
112 virtual int nextId()
const;
115 virtual bool validatePage();
118 QLabel* directory_label;
120 std::shared_ptr<Ws::IWorkspaceFactory> m_workspace_factory;
127 DonePage(
const std::shared_ptr<Ws::IWorkspaceFactory>&);
130 virtual void initializePage();
131 virtual int nextId()
const;
134 void done(std::string
const & workspace_dir);
137 virtual bool validatePage();
140 QCheckBox* check_default;
142 std::shared_ptr<Ws::IWorkspaceFactory> m_workspace_factory;
148 #endif // end_of_inclde_guard
Page shown when user specified a path that doesn't contain a workspace already.
std::string GetWorkspaceDir() const
After WorkspaceWizard::exec() returns QDialog::Accepted, this function will return workspace director...
see the online Qt documentation
A wizard that assists the user either specifying an existing workspace, or creating a new workspace...
see the online Qt documentation
see the online Qt documentation
Page shown when user specified an existing workspace.
Namespace for generic graphical shell for simulators.