• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

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 "katepartprivate_export.h"
00027 
00028 #include <ktexteditor/cursor.h>
00029 #include <ktexteditor/range.h>
00030 
00031 class KateView;
00032 
00043 class KATEPART_TESTS_EXPORT KateScriptView : public QObject, protected QScriptable
00044 {
00046   Q_OBJECT
00047 
00048   public:
00049     KateScriptView (QObject *parent=0);
00050     void setView (KateView *view);
00051     KateView *view();
00052 
00053     Q_INVOKABLE KTextEditor::Cursor cursorPosition ();
00058     Q_INVOKABLE void setCursorPosition(int line, int column);
00059     Q_INVOKABLE void setCursorPosition(const KTextEditor::Cursor& cursor);
00060 
00061 
00062     Q_INVOKABLE KTextEditor::Cursor virtualCursorPosition();
00063     Q_INVOKABLE void setVirtualCursorPosition(int line, int column);
00064     Q_INVOKABLE void setVirtualCursorPosition(const KTextEditor::Cursor& cursor);
00065 
00066     Q_INVOKABLE QString selectedText();
00067     Q_INVOKABLE bool hasSelection();
00068     Q_INVOKABLE KTextEditor::Range selection();
00069     Q_INVOKABLE void setSelection(const KTextEditor::Range& range);
00070     Q_INVOKABLE void removeSelectedText();
00071     Q_INVOKABLE void selectAll();
00072     Q_INVOKABLE void clearSelection();
00073 
00074   private:
00075     KateView *m_view;
00076 };
00077 
00078 #endif
00079 
00080 // kate: space-indent on; indent-width 2; replace-tabs on;

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal