You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
777 B
53 lines
777 B
|
3 years ago
|
#ifndef _PANEL_
|
||
|
|
#define _PANEL_
|
||
|
|
|
||
|
|
#include "settings.h"
|
||
|
|
#include <qwidget.h>
|
||
|
|
|
||
|
|
class QCheckBox;
|
||
|
|
class QComboBox;
|
||
|
|
class QSpinBox;
|
||
|
|
class QLineEdit;
|
||
|
|
|
||
|
|
class Panel: public QWidget
|
||
|
|
{
|
||
|
|
Q_OBJECT
|
||
|
|
|
||
|
|
public:
|
||
|
|
Panel( QWidget *parent = NULL );
|
||
|
|
|
||
|
|
void setSettings( const Settings &);
|
||
|
|
Settings settings() const;
|
||
|
|
|
||
|
|
Q_SIGNALS:
|
||
|
|
void edited();
|
||
|
|
|
||
|
|
private:
|
||
|
|
struct
|
||
|
|
{
|
||
|
|
QCheckBox *checkBox;
|
||
|
|
QComboBox *positionBox;
|
||
|
|
|
||
|
|
} d_legend;
|
||
|
|
|
||
|
|
struct
|
||
|
|
{
|
||
|
|
QCheckBox *checkBox;
|
||
|
|
QSpinBox *numColumnsBox;
|
||
|
|
QComboBox *hAlignmentBox;
|
||
|
|
QComboBox *vAlignmentBox;
|
||
|
|
QComboBox *backgroundBox;
|
||
|
|
QSpinBox *sizeBox;
|
||
|
|
|
||
|
|
} d_legendItem;
|
||
|
|
|
||
|
|
struct
|
||
|
|
{
|
||
|
|
QSpinBox *numCurves;
|
||
|
|
QLineEdit *title;
|
||
|
|
|
||
|
|
} d_curve;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|