Kate
katescriptview.h
Go to the documentation of this file.00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 #ifndef KATE_SCRIPT_VIEW_H 00021 #define KATE_SCRIPT_VIEW_H 00022 00023 #include <QObject> 00024 #include <QtScript/QScriptable> 00025 00026 #include <ktexteditor/cursor.h> 00027 00028 class KateView; 00029 00040 class KateScriptView : public QObject, protected QScriptable 00041 { 00043 Q_OBJECT 00044 00045 public: 00046 KateScriptView (QObject *parent=0); 00047 void setView (KateView *view); 00048 KateView *view(); 00049 00050 Q_INVOKABLE KTextEditor::Cursor cursorPosition (); 00051 00052 private: 00053 KateView *m_view; 00054 }; 00055 00056 #endif 00057 00058 // kate: space-indent on; indent-width 2; replace-tabs on;