source: src/UIElements/Views/Qt4/Plotting/QSeisPlotPage.hpp

Candidate_v1.6.1
Last change on this file was 3b1798, checked in by Frederik Heber <heber@…>, 10 years ago

FIX: QtHomologyList's plot widget was too high (and fixed).

  • also the sizes of splitter's children in QtHomologyList are now stored to settings (as QsizePolicy does not have an effect on a splitter).
  • Property mode set to 100644
File size: 1.0 KB
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
18class QHBoxLayout;
19class QSeisPlot;
20class QListWidgetItem;
21class 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 **/
29class QSeisPlotPage : public QWidget
30{
31 Q_OBJECT
32public:
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
42private slots:
43 void listItemChanged(QListWidgetItem *item);
44
45signals:
46
47public slots:
48 void addCurve(std::string name);
49 void removeCurve(std::string name);
50 void updateCurve(std::string name);
51
52private:
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.