summaryrefslogtreecommitdiffstats
path: root/lib/tqwtplot3d/examples/axes/src/axesmainwindow.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-11 14:15:27 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-07-11 14:15:27 -0500
commitb85a292ce06475d560bfa1195b63a8bfe211f22d (patch)
tree463d71be55ff807513139f1de106aef6bdd7b4db /lib/tqwtplot3d/examples/axes/src/axesmainwindow.h
parentce039289815e2802fdeca8d384126c807ca9cb58 (diff)
downloadulab-b85a292ce06475d560bfa1195b63a8bfe211f22d.tar.gz
ulab-b85a292ce06475d560bfa1195b63a8bfe211f22d.zip
Add 0.2.7 release of qwtplot3d for future TQt3 conversion and use
Diffstat (limited to 'lib/tqwtplot3d/examples/axes/src/axesmainwindow.h')
-rw-r--r--lib/tqwtplot3d/examples/axes/src/axesmainwindow.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/lib/tqwtplot3d/examples/axes/src/axesmainwindow.h b/lib/tqwtplot3d/examples/axes/src/axesmainwindow.h
new file mode 100644
index 0000000..fd99d0d
--- /dev/null
+++ b/lib/tqwtplot3d/examples/axes/src/axesmainwindow.h
@@ -0,0 +1,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;
+};