blob: 0eb6cf919e623a3462a8a8e53ab9068ab749c1d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#pragma once
#include <QtWidgets/QDialog>
class QModelIndex;
namespace osm
{
class NewFeatureCategories;
} // namespace osm
class CreateFeatureDialog : public QDialog
{
Q_OBJECT
public:
CreateFeatureDialog(QWidget * parent, osm::NewFeatureCategories & cats);
/// Valid only if dialog has finished with Accepted code.
uint32_t GetSelectedType() const { return m_selectedType; }
private slots:
void OnListItemSelected(QModelIndex const & i);
private:
uint32_t m_selectedType = 0;
};
|