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

preferences_dialog.hpp « qt - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3442344b4d8b48cbd915c150e83ca8fb16245d32 (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
#pragma once

#include "std/string.hpp"

#include <QtWidgets/QApplication>
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
  #include <QtGui/QDialog>
#else
  #include <QtWidgets/QDialog>
#endif

class QTableWidget;
class QButtonGroup;

namespace qt
{
  class PreferencesDialog : public QDialog
  {
    typedef QDialog base_t;

    Q_OBJECT

    virtual QSize	sizeHint () const { return QSize(400, 400); }

  public:
    explicit PreferencesDialog(QWidget * parent);

  private slots:
    void OnCloseClick();
    void OnUnitsChanged(int i);
#ifdef BUILD_DESIGNER
    void OnEnabledAutoRegenGeomIndex(int i);
#endif

  private:
    QButtonGroup * m_pUnits;
  };
} // namespace qt

#ifdef BUILD_DESIGNER
extern string const kEnabledAutoRegenGeomIndex;
#endif