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

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • script
katescriptaction.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2010 Dominik Haumann <dhaumann kde org>
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 
19 #ifndef KATE_SCRIPT_ACTION_H
20 #define KATE_SCRIPT_ACTION_H
21 
22 #include "katecommandlinescript.h"
23 
24 #include <kactionmenu.h>
25 #include <kaction.h>
26 
27 class KateView;
28 
33 class KateScriptAction : public KAction
34 {
35  Q_OBJECT
36 
37  public:
38  KateScriptAction(const ScriptActionInfo& info, KateView* view);
39  virtual ~KateScriptAction();
40 
41  public Q_SLOTS:
42  void exec();
43 
44  private:
45  KateView* m_view;
46  QString m_command;
47  bool m_interactive;
48 };
49 
55 class KateScriptActionMenu : public KActionMenu
56 {
57  Q_OBJECT
58 
59  public:
60  KateScriptActionMenu(KateView* view, const QString& text);
61  ~KateScriptActionMenu();
62 
63  void cleanup();
64 
65  public Q_SLOTS:
66  void repopulate();
67 
68  private:
69  KateView* m_view;
70  QList<QMenu*> m_menus;
71  QList<QAction*> m_actions;
72 };
73 
74 #endif
75 
76 // kate: space-indent on; indent-width 2; replace-tabs on;
KateScriptAction::~KateScriptAction
virtual ~KateScriptAction()
Definition: katescriptaction.cpp:51
KateScriptActionMenu::KateScriptActionMenu
KateScriptActionMenu(KateView *view, const QString &text)
Definition: katescriptaction.cpp:70
KateScriptAction::exec
void exec()
Definition: katescriptaction.cpp:55
KateScriptActionMenu::~KateScriptActionMenu
~KateScriptActionMenu()
Definition: katescriptaction.cpp:81
KateScriptActionMenu::cleanup
void cleanup()
Definition: katescriptaction.cpp:86
katecommandlinescript.h
QString
QList< QMenu * >
KateScriptActionMenu::repopulate
void repopulate()
Definition: katescriptaction.cpp:96
KateView
Definition: kateview.h:77
KateScriptActionMenu
Tools > Scripts menu This menu is filled with the command line scripts exported via the scripting sup...
Definition: katescriptaction.h:55
KActionMenu
KateScriptAction::KateScriptAction
KateScriptAction(const ScriptActionInfo &info, KateView *view)
Definition: katescriptaction.cpp:34
KAction
ScriptActionInfo
Definition: katecommandlinescript.h:47
KateScriptAction
KateScriptAction is an action that executes a commandline-script if triggered.
Definition: katescriptaction.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal