VAPOR3 3.9.4
AppSettingsEventRouter.h
Go to the documentation of this file.
1//************************************************************************
2// *
3// Copyright (C) 2006 *
4// University Corporation for Atmospheric Research *
5// All Rights Reserved *
6// *
7//************************************************************************/
8//
9// File: AppSettingsEventRouter.h
10//
11// Author: Alan Norton
12// National Center for Atmospheric Research
13// PO 3000, Boulder, Colorado
14//
15// Date: November, 2015
16//
17// Description: Defines the AppSettingsEventRouter class.
18// This class handles events for the AppSettings params
19//
20#ifndef APPSETTINGSEVENTROUTER_H
21#define APPSETTINGSEVENTROUTER_H
22
23#include <qobject.h>
24#include "EventRouter.h"
25#include <vapor/MyBase.h>
26#include "ui_appSettingsTab.h"
27
28namespace VAPoR {
29class ControlExec;
30}
31
32QT_USE_NAMESPACE
33
34class AppSettingsEventRouter : public QWidget, public Ui_appSettingsTab, public EventRouter {
35 Q_OBJECT
36
37public:
39
41
46 virtual void confirmText();
47
49 virtual void hookUpTab();
50
51 virtual void GetWebHelp(std::vector<std::pair<string, string>> &help) const;
52
54 virtual void wheelEvent(QWheelEvent *) {}
55
56 // Get static string identifier for this router class
57 //
58 static string GetClassType() { return ("AppSettings"); }
59
60 string GetType() const { return GetClassType(); }
61
62protected slots:
63
64 void setAppSettingsTextChanged(const QString &qs);
66 void setNoCitation(bool);
67 void warningChanged(bool);
70 void setAutoSave(bool);
71 void save();
77 void enableLogfile(bool);
78
79private:
81
82 void invalidateText();
83 virtual void _confirmText();
84 virtual void _updateTab();
85
86 bool _settingsChanged;
87};
88
89#endif // APPSETTINGSEVENTROUTER_H
virtual void wheelEvent(QWheelEvent *)
Ignore wheel event in tab (to avoid confusion)
void trackMouseChanged(bool)
virtual ~AppSettingsEventRouter()
void lowerAccuracyChanged(bool)
virtual void GetWebHelp(std::vector< std::pair< string, string > > &help) const
void setAppSettingsTextChanged(const QString &qs)
void silenceAllMessages(bool)
virtual void hookUpTab()
Connect signals and slots from tab.
virtual void confirmText()
AppSettingsEventRouter(QWidget *parent, VAPoR::ControlExec *ce)
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI.
Definition: EventRouter.h:107
Provides API for VAPOR visualizer User Interfaces (UIs)