summaryrefslogtreecommitdiffstats
path: root/src/gui/orientationwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/orientationwidget.h')
-rw-r--r--src/gui/orientationwidget.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/gui/orientationwidget.h b/src/gui/orientationwidget.h
new file mode 100644
index 0000000..6a6b6ce
--- /dev/null
+++ b/src/gui/orientationwidget.h
@@ -0,0 +1,56 @@
+/***************************************************************************
+ * Copyright (C) 2003-2004 by David Saxton *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ ***************************************************************************/
+
+#ifndef ORIENTATIONWIDGET_H
+#define ORIENTATIONWIDGET_H
+
+#include <qguardedptr.h>
+#include <qwidget.h>
+
+class CNItem;
+class CNItemGroup;
+class FlowPart;
+class QPushButton;
+
+/**
+@author David Saxton
+*/
+class OrientationWidget : public QWidget
+{
+Q_OBJECT
+public:
+ OrientationWidget( QWidget *parent = 0l, const char *name = 0l );
+ ~OrientationWidget();
+
+public slots:
+ void slotUpdate( CNItem *item );
+ void slotClear();
+
+ void set_cio_noflip_0();
+ void set_cio_noflip_90();
+ void set_cio_noflip_180();
+ void set_cio_noflip_270();
+ void set_cio_flip_0();
+ void set_cio_flip_90();
+ void set_cio_flip_180();
+ void set_cio_flip_270();
+
+signals:
+ void orientationSelected( uint orientation );
+
+protected:
+ void initFromComponent( Component *component );
+ void initFromFlowPart( FlowPart *flowPart );
+
+ QPushButton *m_toolBtn[2][4];
+ QGuardedPtr<FlowPart> p_activeFlowPart;
+};
+
+#endif