VAPOR3 3.9.4
VizSelectCombo.h
Go to the documentation of this file.
1//************************************************************************
2// *
3// Copyright (C) 2004 *
4// University Corporation for Atmospheric Research *
5// All Rights Reserved *
6// *
7//************************************************************************/
8//
9// File: VizSelectCombo.h
10//
11// Author: Alan Norton
12// National Center for Atmospheric Research
13// PO 3000, Boulder, Colorado
14//
15// Date: June 2004
16//
17// Description: Defines the VizSelectCombo class
18// This fits in the main toolbar, enables the user to select
19// the visualizer to activate.
20//
21#ifndef VIZSELECTCOMBO_H
22#define VIZSELECTCOMBO_H
23#include <qcombobox.h>
24
25class QToolBar;
26
27class VizSelectCombo : public QComboBox {
28 Q_OBJECT
29
30public:
31 VizSelectCombo(QWidget *parent);
32 int GetNumWindows() { return (count() - 1); }
33 QString GetWinName(int i) { return itemText(i); }
34
35public slots:
36 // Remove a window from the combobox
37 //
38 void RemoveWindow(const QString &winName);
39
40 void SetWindowActive(const QString &winName);
41
42 // Add a new window to the combobox
43 //
44 void AddWindow(const QString &winName);
45
46private slots:
47
48 // activated window , and notify the vizWinManager
49 void activeWin(const QString &winName);
50
51signals:
52
53 // send message that a window number was activated.
54 //
55 void winActivated(const QString &winName);
56
57 // send request for new window
58 //
59 void newWin();
60};
61#endif // VIZSELECTCOMBO_H
void SetWindowActive(const QString &winName)
QString GetWinName(int i)
void winActivated(const QString &winName)
VizSelectCombo(QWidget *parent)
void RemoveWindow(const QString &winName)
void AddWindow(const QString &winName)