summaryrefslogtreecommitdiffstats
path: root/tdeui/tests/krulertest.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-11-06 15:56:40 -0600
commite16866e072f94410321d70daedbcb855ea878cac (patch)
treeee3f52eabde7da1a0e6ca845fb9c2813cf1558cf /tdeui/tests/krulertest.h
parenta58c20c1a7593631a1b50213c805507ebc16adaf (diff)
downloadtdelibs-e16866e072f94410321d70daedbcb855ea878cac.tar.gz
tdelibs-e16866e072f94410321d70daedbcb855ea878cac.zip
Actually move the kde files that were renamed in the last commit
Diffstat (limited to 'tdeui/tests/krulertest.h')
-rw-r--r--tdeui/tests/krulertest.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/tdeui/tests/krulertest.h b/tdeui/tests/krulertest.h
new file mode 100644
index 000000000..d180e93a0
--- /dev/null
+++ b/tdeui/tests/krulertest.h
@@ -0,0 +1,91 @@
+/* -*- c++ -*- */
+
+#ifndef krulertest_h
+#define krulertest_h
+
+#include <kapplication.h>
+#include <kmainwindow.h>
+#include <tqwidget.h>
+#include <tqcheckbox.h>
+#include <tqradiobutton.h>
+#include <tqbuttongroup.h>
+#include <knuminput.h>
+
+class KRuler;
+class TQWidget;
+class TQFrame;
+class TQGridLayout;
+class TQCheckBox;
+class TQGroupBox;
+
+
+class MouseWidget : public TQFrame
+{
+Q_OBJECT
+public:
+MouseWidget( TQWidget *parent=0, const char *name=0, WFlags f=0 );
+
+signals:
+ void newXPos(int);
+ void newYPos(int);
+ void newWidth(int);
+ void newHeight(int);
+
+protected:
+ virtual void mousePressEvent ( TQMouseEvent * );
+ virtual void mouseReleaseEvent ( TQMouseEvent * );
+ virtual void mouseMoveEvent ( TQMouseEvent * );
+ virtual void resizeEvent ( TQResizeEvent * );
+private:
+ bool mouseButtonDown;
+
+};
+
+
+class KRulerTest : public KMainWindow
+{
+Q_OBJECT
+public:
+KRulerTest( const char *name = 0L );
+~KRulerTest();
+
+private slots:
+ void slotNewWidth(int);
+ void slotNewHeight(int);
+
+ void slotSetTinyMarks(bool);
+ void slotSetLittleMarks(bool);
+ void slotSetMediumMarks(bool);
+ void slotSetBigMarks(bool);
+ void slotSetEndMarks(bool);
+ void slotSetRulerPointer(bool);
+
+ void slotSetRulerLength(int);
+ void slotFixRulerLength(bool);
+ void slotSetMStyle(int);
+ void slotUpdateShowMarks();
+ void slotCheckLength(bool);
+
+ void slotSetRotate(double);
+ void slotSetXTrans(double);
+ void slotSetYTrans(double);
+
+
+private:
+
+ KRuler *hruler, *vruler;
+ TQGridLayout *layout;
+ TQFrame *miniwidget, *bigwidget;
+ TQFrame *mainframe;
+
+ TQLabel *mouse_message;
+ TQGroupBox *showMarks, *lineEdit, *vertrot;
+ TQCheckBox *showTM, *showLM, *showMM, *showBM, *showEM, *showPT, *fixLen;
+ KIntNumInput *beginMark, *endMark, *lengthInput;
+ KDoubleNumInput *transX, *transY, *rotV;
+ TQButtonGroup *metricstyle;
+ TQRadioButton *pixelmetric, *inchmetric, *mmmetric, *cmmetric, *mmetric;
+
+};
+#endif
+