kexi
kexiinputtableedit.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KEXIINPUTTABLEEDIT_H
00022 #define KEXIINPUTTABLEEDIT_H
00023
00024 #include <klineedit.h>
00025 #include <qvariant.h>
00026
00027 #include "kexitableedit.h"
00028 #include "kexicelleditorfactory.h"
00029
00032 class KEXIDATATABLE_EXPORT KexiInputTableEdit : public KexiTableEdit
00033 {
00034 Q_OBJECT
00035
00036 public:
00037 KexiInputTableEdit(KexiTableViewColumn &column, QScrollView *parent=0);
00038
00039 virtual ~KexiInputTableEdit();
00040
00041 virtual bool valueChanged();
00042
00044 virtual bool valueIsNull();
00045
00049 virtual bool valueIsEmpty();
00050
00051 virtual QVariant value();
00052
00053 virtual bool cursorAtStart();
00054 virtual bool cursorAtEnd();
00055
00056
00057
00058
00059 virtual void clear();
00060
00062 virtual QSize totalSize();
00063
00064 protected slots:
00065 void setRestrictedCompletion();
00066 void completed(const QString &);
00067
00068 protected:
00070 virtual void setValueInternal(const QVariant& add, bool removeOld);
00071
00072 void showHintButton();
00073 void init();
00074 virtual void paintEvent( QPaintEvent *e );
00075
00076 bool m_calculatedCell;
00077 QString m_decsym;
00078 QString m_origText;
00079 KLineEdit *m_lineedit;
00080
00081 signals:
00082 void hintClicked();
00083 };
00084
00085 KEXI_DECLARE_CELLEDITOR_FACTORY_ITEM(KexiInputEditorFactoryItem)
00086
00087 #endif
|