彻底改版2.0
This commit is contained in:
47
third/qwtdemo/examples/legends/settings.h
Normal file
47
third/qwtdemo/examples/legends/settings.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef _SETTINGS_
|
||||
#define _SETTINGS_
|
||||
|
||||
#include <qstring.h>
|
||||
|
||||
class Settings
|
||||
{
|
||||
public:
|
||||
Settings()
|
||||
{
|
||||
legend.isEnabled = false;
|
||||
legend.position = 0;
|
||||
|
||||
legendItem.isEnabled = false;
|
||||
legendItem.numColumns = 0;
|
||||
legendItem.alignment = 0;
|
||||
legendItem.backgroundMode = 0;
|
||||
legendItem.size = 12;
|
||||
|
||||
curve.numCurves = 0;
|
||||
curve.title = "Curve";
|
||||
}
|
||||
|
||||
struct
|
||||
{
|
||||
bool isEnabled;
|
||||
int position;
|
||||
} legend;
|
||||
|
||||
struct
|
||||
{
|
||||
bool isEnabled;
|
||||
int numColumns;
|
||||
int alignment;
|
||||
int backgroundMode;
|
||||
int size;
|
||||
|
||||
} legendItem;
|
||||
|
||||
struct
|
||||
{
|
||||
int numCurves;
|
||||
QString title;
|
||||
} curve;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user