Files
Sourcetrail/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentPreferences.h
T
Andreas Stallinger 56ab09159b ui: remove MessageNewLog
* remove Logging checkboxes in prefernces
* commandline parser project path is absolute when called from commandline
2016-11-14 13:38:31 +01:00

68 lines
2.0 KiB
C++

#ifndef QT_PROJECT_WIZZARD_CONTENT_PREFERENCES_H
#define QT_PROJECT_WIZZARD_CONTENT_PREFERENCES_H
#include <QCheckBox>
#include <QComboBox>
#include <QLineEdit>
#include "qt/element/QtFontPicker.h"
#include "qt/element/QtLocationPicker.h"
#include "qt/window/project_wizzard/QtProjectWizzardContent.h"
#include "utility/path_detector/CombinedPathDetector.h"
class QtProjectWizzardContentPreferences
: public QtProjectWizzardContent
{
Q_OBJECT
public:
QtProjectWizzardContentPreferences(std::shared_ptr<ProjectSettings> settings, QtProjectWizzardWindow* window);
~QtProjectWizzardContentPreferences();
// QtProjectWizzardContent implementation
virtual void populate(QGridLayout* layout, int& row) override;
virtual void load() override;
virtual void save() override;
virtual bool check() override;
private slots:
void colorSchemeChanged(int index);
void javaPathDetectionClicked();
private:
void addJavaPathDetection(QGridLayout* layout, int& row);
void addTitle(QString title, QGridLayout* layout, int& row);
void addLabelAndWidget(
QString label, QWidget* widget, QGridLayout* layout, int& row, Qt::Alignment widgetAlignment = Qt::Alignment());
void addGap(QGridLayout* layout, int& row);
QCheckBox* addCheckBox(QString label, QString text, QString help, QGridLayout* layout, int& row);
QComboBox* addComboBox(QString label, int min, int max, QString help, QGridLayout* layout, int& row);
QLineEdit* addLineEdit(QString label, QString help, QGridLayout* layout, int& row);
QtFontPicker* m_fontFace;
QComboBox* m_fontSize;
QComboBox* m_tabWidth;
QComboBox* m_colorSchemes;
std::vector<FilePath> m_colorSchemePaths;
int m_oldColorSchemeIndex;
QLineEdit* m_scrollSpeed;
QCheckBox* m_graphZooming;
QLineEdit* m_coatiPort;
QLineEdit* m_pluginPort;
QComboBox* m_threads;
std::shared_ptr<CombinedPathDetector> m_javaPathDetector;
QComboBox* m_javaPathDetectorBox;
QtLocationPicker* m_javaPath;
QLineEdit* m_jvmMaximumMemory;
};
#endif // QT_PROJECT_WIZZARD_CONTENT_PREFERENCES_H