Candidate_v1.6.1
Line | |
---|
1 | /*
|
---|
2 | * QSeisPlotPage.hpp
|
---|
3 | *
|
---|
4 | * Created on: Jan 30, 2011
|
---|
5 | * Author: landvogt
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef QSEISPLOTPAGE_HPP
|
---|
9 | #define QSEISPLOTPAGE_HPP
|
---|
10 |
|
---|
11 | // include config.h
|
---|
12 | #ifdef HAVE_CONFIG_H
|
---|
13 | #include <config.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #include <QtGui/QWidget>
|
---|
17 |
|
---|
18 | class QHBoxLayout;
|
---|
19 | class QSeisPlot;
|
---|
20 | class QListWidgetItem;
|
---|
21 | class QListWidget;
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * \class QSeisPlotPage
|
---|
25 | *
|
---|
26 | * This class is derived from QWidget and provides
|
---|
27 | * the GUI elements for a single plot tab.
|
---|
28 | **/
|
---|
29 | class QSeisPlotPage : public QWidget
|
---|
30 | {
|
---|
31 | Q_OBJECT
|
---|
32 | public:
|
---|
33 | explicit QSeisPlotPage(QString type, QWidget *parent = 0);
|
---|
34 | ~QSeisPlotPage();
|
---|
35 | QString plotType;
|
---|
36 | QHBoxLayout *layout;
|
---|
37 | QListWidget *curveList;
|
---|
38 | QSeisPlot *plot;
|
---|
39 | std::string getName();
|
---|
40 | void resetPlot();
|
---|
41 |
|
---|
42 | private slots:
|
---|
43 | void listItemChanged(QListWidgetItem *item);
|
---|
44 |
|
---|
45 | signals:
|
---|
46 |
|
---|
47 | public slots:
|
---|
48 | void addCurve(std::string name);
|
---|
49 | void removeCurve(std::string name);
|
---|
50 | void updateCurve(std::string name);
|
---|
51 |
|
---|
52 | private:
|
---|
53 | void initializeLayout();
|
---|
54 | void deinitializeLayout();
|
---|
55 | bool layoutInitialized;
|
---|
56 | };
|
---|
57 |
|
---|
58 | #endif // QSEISPLOTPAGE_HPP
|
---|
Note:
See
TracBrowser
for help on using the repository browser.