src/dialogs.h

changeset 211
8d35e631bef3
parent 202
a027f6fc6141
child 241
cffab8e109f6
--- a/src/dialogs.h	Thu May 16 02:26:50 2013 +0300
+++ b/src/dialogs.h	Thu May 16 22:59:10 2013 +0300
@@ -4,6 +4,7 @@
 #include <QDialog>
 #include "common.h"
 
+class QGroupBox;
 class QDialogButtonBox;
 class QDoubleSpinBox;
 class QPushButton;
@@ -74,6 +75,7 @@
 	QLineEdit* le_contents;
 };
 
+// =============================================================================
 class LDrawPathDialog : public QDialog {
 	Q_OBJECT
 	
@@ -99,6 +101,7 @@
 	void slot_exit ();
 };
 
+// =============================================================================
 class NewPartDialog : public QDialog {
 public:
 	enum { CCAL, NonCA, NoLicense };
@@ -112,4 +115,25 @@
 	RadioBox* rb_license, *rb_BFC;
 };
 
+// =============================================================================
+class RotationPointDialog : public QDialog {
+	Q_OBJECT
+	
+public:
+	explicit RotationPointDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
+	
+	vertex customPos () const;
+	bool custom () const;
+	void setCustom (bool custom);
+	void setCustomPos (const vertex& pos);
+	
+private:
+	QDoubleSpinBox* dsb_customX, *dsb_customY, *dsb_customZ;
+	RadioBox* rb_rotpoint;
+	QGroupBox* gb_customPos;
+	
+private slots:
+	void radioBoxChanged ();
+};
+
 #endif // DIALOGS_H
\ No newline at end of file

mercurial