Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mwms_borders_selection.hpp « qt - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9d725c2ae4a8ded1640e16524abcb7270941b01 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once

#include <string>

#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFormLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QRadioButton>

class Framework;

namespace qt
{
class MwmsBordersSelection : public QDialog
{
public:
  MwmsBordersSelection(QWidget * parent);

  enum class Response
  {
    MwmsBordersByPolyFiles,
    MwmsBordersWithVerticesByPolyFiles,

    MwmsBordersByPackedPolygon,
    MwmsBordersWithVerticesByPackedPolygon,

    BoundingBoxByPolyFiles,
    BoundingBoxByPackedPolygon,

    Cancelled
  };

  Response ShowModal();

private:
  QGroupBox * CreateSourceChoosingGroup();
  QGroupBox * CreateViewTypeGroup();
  QGroupBox * CreateButtonBoxGroup();

  QRadioButton * m_radioBordersFromPackedPolygon;
  QRadioButton * m_radioBordersFromData;

  QRadioButton * m_radioWithPoints;
  QRadioButton * m_radioJustBorders;
  QRadioButton * m_radioBoundingBox;
};
}  // namespace qt