summaryrefslogtreecommitdiffstats
path: root/kbarcode/textlineedit.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-15 18:34:54 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-15 18:34:54 +0000
commit8805e6b17b1460f3316ccb28629e8ad78e4b9c2c (patch)
treedc9b702962ecf0060cc473397b9f80268c2456c9 /kbarcode/textlineedit.h
downloadkbarcode-8805e6b17b1460f3316ccb28629e8ad78e4b9c2c.tar.gz
kbarcode-8805e6b17b1460f3316ccb28629e8ad78e4b9c2c.zip
Added abandoned KDE3 version of kbarcode
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbarcode@1090667 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kbarcode/textlineedit.h')
-rw-r--r--kbarcode/textlineedit.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/kbarcode/textlineedit.h b/kbarcode/textlineedit.h
new file mode 100644
index 0000000..80b0eee
--- /dev/null
+++ b/kbarcode/textlineedit.h
@@ -0,0 +1,78 @@
+//
+// C++ Interface: textlineedit
+//
+// Description:
+//
+//
+// Author: Dominik Seichter <domseichter@web.de>, (C) 2004
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+
+#ifndef TECLINEEDITDLG_H
+#define TECLINEEDITDLG_H
+
+#include <qwidget.h>
+#include <knuminput.h>
+
+class KActionCollection;
+class KToggleAction;
+class KFontAction;
+class KFontSizeAction;
+class KToolBar;
+class KSpell;
+class KSpellConfig;
+class KComboBox;
+class TokenProvider;
+
+#if QT_VERSION >= 0x030100
+ class KLineEdit;
+#else
+ class QLineEdit;
+#endif
+
+class TextLineEditor : public QWidget {
+ Q_OBJECT
+ public:
+ TextLineEditor( TokenProvider* token, QWidget *parent=0, const char *name=0);
+ ~TextLineEditor();
+ QString text();
+ KIntNumInput* mag_vert;
+ KIntNumInput* mag_hor;
+
+ void setText( const QString & t );
+ void setFontType(int index);
+ int getFontType();
+ int getHorMag();
+ void setHorMag( int index );
+ int getVertMag();
+ void setVertMag( int index );
+ private slots:
+ void setupActions();
+ void updateActions();
+
+ void insertNewField();
+
+
+ protected:
+ TokenProvider* m_token;
+
+#if QT_VERSION >= 0x030100
+ KLineEdit* editor;
+#else
+ QLineEdit* editor;
+#endif
+
+ KActionCollection* ac;
+
+ KComboBox *action_font_type ;
+ KToolBar* toolBar;
+ KToolBar* tool2Bar;
+ KToolBar* tool3Bar;
+
+
+
+};
+
+#endif