Files
Sourcetrail/src/lib_gui/qt/window/QtProjectSetupScreen.h
T
Manuel Dobusch 0f4e49477a ui: language standard options
Added some language standard options.

<description>
2015-12-11 15:22:28 +01:00

87 lines
1.5 KiB
C++

#ifndef QT_PROJECT_SETUP_SCREEN_H
#define QT_PROJECT_SETUP_SCREEN_H
#include <QComboBox>
#include <QPushButton>
#include <QWidget>
#include "utility/file/FilePath.h"
#include "qt/element/QtDirectoryListBox.h"
#include "qt/element/QtLineEdit.h"
#include "qt/window/QtSettingsWindow.h"
class QtTextLine
: public QWidget
{
Q_OBJECT
public:
QtTextLine(QWidget *parent);
QString getText();
void setText(QString text);
private slots:
void handleButtonPress();
private:
QPushButton* m_button;
QtLineEdit* m_data;
};
class QtProjectSetupScreen
: public QtSettingsWindow
{
Q_OBJECT
public:
QtProjectSetupScreen(QWidget* parent = 0);
QSize sizeHint() const Q_DECL_OVERRIDE;
void clear();
virtual void setup() override;
void loadEmpty();
void loadProjectSettings();
void projectSetupScreen();
signals:
void showPreferences();
protected:
virtual void populateForm(QFormLayout* layout) override;
private slots:
void handleCancelButtonPress();
void handleUpdateButtonPress();
void handleSelectionChanged(int index);
void handleSourcePathHelpPress();
void handleIncludePathHelpPress();
void handleFrameworkPathHelpPress();
void handlePreferencesButtonPress();
private:
QLineEdit* m_projectName;
QtTextLine* m_projectFileLocation;
QtDirectoryListBox* m_includePaths;
QtDirectoryListBox* m_sourcePaths;
QtDirectoryListBox* m_frameworkPaths;
QPushButton* m_preferencesButton;
QComboBox* m_language;
QComboBox* m_cppStandard;
QComboBox* m_cStandard;
QLabel* m_cppStandardLabel;
QLabel* m_cStandardLabel;
};
#endif //QT_PROJECT_SETUP_SCREEN_H