* removed paths in include directives * changed cmake to provide necessary header search paths * changed name of version.h to productVersion.h due to name conflict
36 lines
812 B
C++
36 lines
812 B
C++
#ifndef QT_PATH_LIST_DIALOG_H
|
|
#define QT_PATH_LIST_DIALOG_H
|
|
|
|
#include "QtPathListBox.h"
|
|
#include "QtWindow.h"
|
|
|
|
class FilePath;
|
|
|
|
class QtPathListDialog
|
|
: public QtWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QtPathListDialog(const QString& title, const QString& description, QtPathListBox::SelectionPolicyType selectionPolicy, 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;
|
|
|
|
const QString m_title;
|
|
const QString m_description;
|
|
|
|
private:
|
|
const QtPathListBox::SelectionPolicyType m_selectionPolicy;
|
|
QtPathListBox* m_pathList;
|
|
};
|
|
|
|
#endif // QT_PATH_LIST_DIALOG_H
|