00001
00002
00003
00004
00005
00006
00007 #ifndef SQLEDITORWIDGET_H
00008 #define SQLEDITORWIDGET_H
00009
00010 #include <qsciscintilla.h>
00011
00012 class Preferences;
00013
00014
00020 class SqlEditorWidget : public QsciScintilla
00021 {
00022 Q_OBJECT
00023
00024 public:
00025 SqlEditorWidget(QWidget * parent = 0);
00026
00027 public slots:
00029 void prefsChanged();
00030
00031 private:
00032 Preferences * m_prefs;
00034 int m_currentLineHandle;
00037 int m_prevCurrentLine;
00038
00039 void keyPressEvent(QKeyEvent * e);
00040
00041 private slots:
00043 void linesChanged();
00046 void cursorPositionChanged(int, int);
00047 };
00048
00049 #endif