15 #ifndef BORNAGAIN_GUI_VIEW_PROJECT_NEWPROJECTDIALOG_H
16 #define BORNAGAIN_GUI_VIEW_PROJECT_NEWPROJECTDIALOG_H
new project dialog window
void checkIfProjectPathIsValid(const QString &dirname)
Checks whether ProjectPath is valid and sets warning state accordingly. Corresponding directory shoul...
QLineEdit * m_workDirEdit
void checkIfProjectNameIsValid(const QString &projectName)
Checks whether project name is valid and sets warning state accordingly. There should not be the dire...
QLineEdit * m_projectNameEdit
void setValidProjectName(bool status)
sets flags whether project name is valid and then updates color of LineEdit and warning message
QPushButton * m_cancelButton
void updateWarningStatus()
updates warning label depending on validity of project name and path
QPushButton * m_createButton
QString getWorkingDirectory() const
QPushButton * m_browseButton
void createProjectDir()
creates directory with selected ProjectName in selected ProjectPath
void setWorkingDirectory(const QString &text)
void setValidProjectPath(bool status)
sets flags wether project path is valid and then updates color of LineEdit and warning message
QString getProjectFileName() const
void onBrowseDirectory()
calls directory selection dialog
QString getProjectName() const
NewProjectDialog(QWidget *parent, const QString &workingDirectory="", const QString &projectName="")
QString projectName(const QString &projectFileName)
Returns project name deduced from project file name.