VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
editFilterDialog.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <widgets/dllExport.h>
13 #include <QtGui/QDialog>
14 
15 class QSpinBox;
16 class QLineEdit;
17 class QComboBox;
18 class QStackedWidget;
19 class QRegExpValidator;
20 
21 namespace MAKVrExchange
22 {
23 
24  class DtObjectFilter;
25 
29  { Q_OBJECT;
30  public:
31 
33  DtEditFilterDialog( QWidget* parent = 0 );
34 
36  virtual ~DtEditFilterDialog();
37 
40  virtual void initialize( const DtObjectFilter* filter = 0 );
41 
44  virtual DtObjectFilter* filter() const;
45 
46  protected:
47 
49  virtual void setupGui();
50 
52  virtual void connectToSignals();
53 
55  virtual void setFilter( const DtObjectFilter& filter );
56 
58  virtual bool isFilterValid() const;
59 
60  protected slots:
61 
64  virtual void accept();
65 
69  virtual void slot_onFilterTypeChanged( int type );
70 
74  virtual void slot_onLatitudeDegreesValueChanged( int value );
75 
79  virtual void slot_onLongitudeDegreesValueChanged( int value );
80 
81  protected:
82 
84  virtual void convertToDms( double latLon, int& deg, int& min, int& sec ) const;
85 
87  virtual void convertFromDms( int deg, int min, int sec, double& latLon ) const;
88 
89  protected:
90 
92 
93  QStackedWidget* myFilterWidgetStack;
94 
97 
101 
103 
106 
108 
112 
116 
117  QSpinBox* myRadiusSpinBox;
118 
120 
121  QPushButton* myOkButton;
122  QPushButton* myCancelButton;
123 
124  };
125 
126 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)