You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.1 KiB
C++
65 lines
1.1 KiB
C++
#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;
|
|
};
|