• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • kate
  • plugins
  • insertfile
insertfileplugin.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2002 Anders Lund <anders@alweb.dk>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 
18  $Id$
19 */
20 
21 
22 #ifndef _INSERT_FILE_PLUGIN_H_
23 #define _INSERT_FILE_PLUGIN_H_
24 
25 #include <ktexteditor/plugin.h>
26 #include <ktexteditor/view.h>
27 
28 #include <kxmlguiclient.h>
29 #include <tqobject.h>
30 #include <jobclasses.h>
31 #include <kurl.h>
32 
33 class InsertFilePlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
34 {
35  Q_OBJECT
36 
37  public:
38  InsertFilePlugin( TQObject *parent = 0,
39  const char* name = 0,
40  const TQStringList &args = TQStringList() );
41  virtual ~InsertFilePlugin();
42 
43  void addView (KTextEditor::View *view);
44  void removeView (KTextEditor::View *view);
45 
46 
47  private:
48  TQPtrList<class InsertFilePluginView> m_views;
49 };
50 
51 class InsertFilePluginView : public TQObject, public KXMLGUIClient
52 {
53  Q_OBJECT
54  public:
55  InsertFilePluginView( KTextEditor::View *view, const char *name=0 );
56  ~InsertFilePluginView() {};
57  public slots:
58  /* display a file dialog, and insert the chosen file */
59  void slotInsertFile();
60  private slots:
61  void slotFinished( KIO::Job *job );
62  //slotAborted( KIO::Job *job );
63  private:
64  void insertFile();
65  KURL _file;
66  TQString _tmpfile;
67  KIO::FileCopyJob *_job;
68 };
69 
70 #endif // _INSERT_FILE_PLUGIN_H_
KURL
KXMLGUIClient

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kate by doxygen 1.8.6
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |