Settings dialog started. It is empty so far.
[yandex-traffic] / mainwidget.hpp
index 59aa5f2..fe41022 100644 (file)
@@ -13,21 +13,27 @@ class MainWidget : public QWidget
 {
     Q_OBJECT
 private:
-    Traffic _traffic;
-    RegionsTable _regions;
-    Settings _settings;
+    Traffic* _traffic;
+    RegionsTable* _regions;
+    Settings* _settings;
 
     // Widgets
-    TrafficLight *_light;
-    QLabel *_label;
+    TrafficLight* _light;
+    QLabel* _label;
 
 public:
     MainWidget ();
+    virtual ~MainWidget ();
+
+public slots:
+    void settingsDialog ();
 
 protected:
     void paintEvent (QPaintEvent *event);
     void timerEvent (QTimerEvent *event);
 
+    void updateData ();
+
 protected slots:
     void trafficUpdated ();
 };