summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/examples/axes/src/axesmainwindow.h
blob: fd99d0d8a00529e9c1b2e8f5bfff5c03b6581ee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#include <qmainwindow.h>

#include "qwt3d_surfaceplot.h"
#include "qwt3d_function.h"
#include "qwt3d_plot.h"

#if QT_VERSION < 0x040000
#include "axesmainwindowbase.h"
#else
#include "ui_axesmainwindowbase4.h"
#endif

//MOC_SKIP_BEGIN
#if QT_VERSION < 0x040000
  class DummyBase : public AxesMainWindowBase
  {
  public:
    DummyBase(QWidget* parent = 0) 
      : AxesMainWindowBase(parent) 
    {
    } 
  };
#else
  class DummyBase : public QMainWindow, protected Ui::MainWindow
  {
  public:
    DummyBase(QWidget* parent = 0) 
      : QMainWindow(parent) 
    {
    } 
  };
#endif
//MOC_SKIP_END


class AxesMainWindow : public DummyBase
{
	Q_OBJECT

public:
	AxesMainWindow( QWidget* parent = 0);
	~AxesMainWindow();
	Qwt3D::SurfacePlot* plot;
	Qwt3D::Function *rosenbrock;
  void resetTics();

public slots:
	void setNumberGap(int gap);
	void setLabelGap(int gap);

  void setSmoothLines(bool);
  void setTicLength(int val);
  void setTicNumber(int degree);

  void standardItems();
  void complexItems();
  void letterItems();
  void timeItems();
  void customScale();

private:

  int tics;
};