ui: added automatic include path detection for C/C++ Source Groups

This commit is contained in:
mlangkabel
2018-01-09 12:13:16 +01:00
parent 978cf4f4ed
commit 686ba504c2
35 changed files with 877 additions and 248 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef QT_PATH_LIST_DIALOG_H
#define QT_PATH_LIST_DIALOG_H
#include "qt/window/QtWindow.h"
class FilePath;
class QtDirectoryListBox;
class QtPathListDialog
: public QtWindow
{
Q_OBJECT
public:
QtPathListDialog(const QString& title, const QString& description, QWidget* parent = 0);
QSize sizeHint() const override;
void setRelativeRootDirectory(const FilePath& dir);
void setPaths(const std::vector<FilePath>& paths, bool readOnly = false);
std::vector<FilePath> getPaths();
protected:
void populateWindow(QWidget* widget) override;
void windowReady() override;
QString m_title;
QString m_description;
private:
QtDirectoryListBox* m_pathList;
};
#endif // QT_PATH_LIST_DIALOG_H