diff -r cfe9ae5f1124 -r 7a776f6b0d2a src/gldraw.h --- a/src/gldraw.h Mon May 13 19:53:22 2013 +0300 +++ b/src/gldraw.h Tue May 14 00:52:20 2013 +0300 @@ -21,9 +21,15 @@ #include #include +#include #include "common.h" #include "ldtypes.h" +class RadioBox; +class QDoubleSpinBox; +class QSpinBox; +class QLineEdit; + // ============================================================================= // GLRenderer // @@ -52,6 +58,8 @@ void beginPlaneDraw (); Camera camera () const { return m_camera; } + Axis cameraAxis (bool y); + void clearOverlay (); void compileObject (LDObject* obj); void compileAllObjects (); void endPlaneDraw (bool accept); @@ -63,9 +71,8 @@ uchar* screencap (ushort& w, ushort& h); void setBackground (); void setCamera (const GLRenderer::Camera cam); + void setupOverlay (); void setZoom (const double zoom) { m_zoom = zoom; } - void setWireframe (const bool set); - bool wireframe () const; double zoom () const { return m_zoom; } static void deleteLists (LDObject* obj); @@ -123,4 +130,29 @@ GL::BFCBackList, }; +class OverlayDialog : public QDialog { + Q_OBJECT + +public: + explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0); + + str fpath () const; + ushort ofsx () const; + ushort ofsy () const; + double lwidth () const; + double lheight () const; + GL::Camera camera () const; + +public slots: + void slot_fpath () const; + void slot_help () const; + +private: + RadioBox* rb_camera; + QPushButton* btn_fpath; + QLineEdit* le_fpath; + QSpinBox* sb_ofsx, *sb_ofsy; + QDoubleSpinBox* dsb_lwidth, *dsb_lheight; +}; + #endif // GLDRAW_H \ No newline at end of file