00001 /*************************************************************************** 00002 view.h - description 00003 ------------------- 00004 begin : Mon Jan 15 2001 00005 copyright : (C) 2001 by Christoph "Crossfire" Cullmann 00006 (C) 2002 by Joseph Wenninger 00007 email : crossfire@babylon2k.de 00008 jowenn@kde.org 00009 ***************************************************************************/ 00010 00011 /*************************************************************************** 00012 This library is free software; you can redistribute it and/or 00013 modify it under the terms of the GNU Library General Public 00014 License as published by the Free Software Foundation; either 00015 version 2 of the License, or (at your option) any later version. 00016 00017 This library is distributed in the hope that it will be useful, 00018 but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00020 Library General Public License for more details. 00021 00022 You should have received a copy of the GNU Library General Public License 00023 along with this library; see the file COPYING.LIB. If not, write to 00024 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00025 Boston, MA 02111-1307, USA. 00026 ***************************************************************************/ 00027 00028 #ifndef _KATE_VIEW_INCLUDE_ 00029 #define _KATE_VIEW_INCLUDE_ 00030 00031 #include <ktexteditor.h> 00032 00033 class KateConfig; 00034 00035 namespace Kate 00036 { 00037 00038 class Document; 00039 class Mark; 00040 00043 class View : public KTextEditor::View 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 View ( KTextEditor::Document *doc, QWidget *parent, const char *name = 0 ); 00049 virtual ~View (); 00050 00053 virtual Document *getDoc () { return 0L; }; 00054 00057 virtual QString markedText () { return 0L; }; 00058 00059 public slots: 00062 virtual void configDialog () { ; }; 00063 00064 // Highlighting slots 00065 virtual void setHl (int) { ; }; 00066 virtual int getHl () { return 0; }; 00067 virtual int getHlCount () { return 0; }; 00068 virtual QString getHlName (int) { return 0L; }; 00069 virtual QString getHlSection (int) { return 0L; }; 00070 00071 // undo/redo stuff 00072 virtual void undo () { ; }; 00073 virtual void redo () { ; }; 00074 virtual void undoHistory() { ; }; 00075 00076 public: 00077 // read/save config of the view 00078 virtual void readConfig () { ; }; 00079 virtual void writeConfig () { ; }; 00080 00081 // read/save sessionconfig of the view 00082 virtual void readSessionConfig (KateConfig *) { ; }; 00083 virtual void writeSessionConfig (KateConfig *) { ; }; 00084 00085 public slots: 00086 // some simply key commands 00087 virtual void keyReturn () { ; }; 00088 virtual void keyDelete () { ; }; 00089 virtual void backspace () { ; }; 00090 virtual void killLine () { ; }; 00091 00092 // move cursor in the view 00093 virtual void cursorLeft () { ; }; 00094 virtual void shiftCursorLeft () { ; }; 00095 virtual void cursorRight () { ; }; 00096 virtual void shiftCursorRight () { ; }; 00097 virtual void wordLeft () { ; }; 00098 virtual void shiftWordLeft () { ; }; 00099 virtual void wordRight () { ; }; 00100 virtual void shiftWordRight () { ; }; 00101 virtual void home () { ; }; 00102 virtual void shiftHome () { ; }; 00103 virtual void end () { ; }; 00104 virtual void shiftEnd () { ; }; 00105 virtual void up () { ; }; 00106 virtual void shiftUp () { ; }; 00107 virtual void down () { ; }; 00108 virtual void shiftDown () { ; }; 00109 virtual void scrollUp () { ; }; 00110 virtual void scrollDown () { ; }; 00111 virtual void topOfView () { ; }; 00112 virtual void bottomOfView () { ; }; 00113 virtual void pageUp () { ; }; 00114 virtual void shiftPageUp () { ; }; 00115 virtual void pageDown () { ; }; 00116 virtual void shiftPageDown () { ; }; 00117 virtual void top () { ; }; 00118 virtual void shiftTop () { ; }; 00119 virtual void bottom () { ; }; 00120 virtual void shiftBottom () { ; }; 00121 00122 public slots: 00123 // edit command popup window 00124 virtual void slotEditCommand () { ; }; 00125 00126 // icon border enable/disable 00127 virtual void setIconBorder (bool) { ; }; 00128 virtual void toggleIconBorder () { ; }; 00129 00130 // goto mark 00131 virtual void gotoMark (Mark *) { ; }; 00132 00133 // toggle current line bookmark or clear all bookmarks 00134 virtual void toggleBookmark () { ; }; 00135 virtual void clearBookmarks () { ; }; 00136 00137 public: 00138 // is iconborder visible ? 00139 virtual bool iconBorder() { return false; }; 00140 00141 public slots: 00147 virtual void flush () { ; }; 00148 00149 public: 00155 virtual bool canDiscard() { return false; }; 00156 }; 00157 00158 }; 00159 00160 #endif
1.4.2