• 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 <tdetexteditor/plugin.h>
26#include <tdetexteditor/view.h>
27
28#include <kxmlguiclient.h>
29#include <tqobject.h>
30#include <jobclasses.h>
31#include <kurl.h>
32
33class InsertFilePlugin : public KTextEditor::Plugin, public KTextEditor::PluginViewInterface
34{
35 TQ_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
51class InsertFilePluginView : public TQObject, public KXMLGUIClient
52{
53 TQ_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( TDEIO::Job *job );
62 //slotAborted( TDEIO::Job *job );
63 private:
64 void insertFile();
65 KURL _file;
66 TQString _tmpfile;
67 TDEIO::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
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.