forked from qt-creator/qt-creator
Project Wizards: Introduce notion of project directory, polish.
- Introduce project directory and "use" flag to file manager, use that in new item dialog - Add configuration under Project settings, rename it to "General" - Make wizards create project names as "untitled1.." - Remove modules page from Qt application wizards (parametrizable) - Give Utils::ProjectIntroPage a "Set as default location" toggle. - Introduce wizard dialog base classes for handling that. - Introduce notion of "last visited directory to file manager" for open and non-project wizards, route open through file manager. - Clean out QmlAppWizard Task-number: QTCREATORBUG-333 Rubber-stamped-by: con <qtc-committer@nokia.com>
This commit is contained in:
@@ -79,6 +79,10 @@ public:
|
||||
// helper methods
|
||||
static QString fixFileName(const QString &fileName);
|
||||
|
||||
QStringList getOpenFileNames(const QString &filters,
|
||||
const QString path = QString(),
|
||||
QString *selectedFilter = 0);
|
||||
|
||||
QString getSaveFileNameWithExtension(const QString &title, const QString &path,
|
||||
const QString &fileFilter, const QString &extension);
|
||||
QString getSaveAsFileName(IFile *file);
|
||||
@@ -90,6 +94,18 @@ public:
|
||||
const QString &alwaysSaveMessage = QString::null,
|
||||
bool *alwaysSave = 0);
|
||||
|
||||
|
||||
QString fileDialogLastVisitedDirectory() const;
|
||||
void setFileDialogLastVisitedDirectory(const QString &);
|
||||
|
||||
QString fileDialogInitialDirectory() const;
|
||||
|
||||
bool useProjectsDirectory() const;
|
||||
void setUseProjectsDirectory(bool);
|
||||
|
||||
QString projectsDirectory() const;
|
||||
void setProjectsDirectory(const QString &);
|
||||
|
||||
signals:
|
||||
void currentFileChanged(const QString &filePath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user