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

cantor/src/lib

  • sources
  • kde-4.14
  • kdeedu
  • cantor
  • src
  • lib
panelplugin.h
Go to the documentation of this file.
1 /*
2  This program is free software; you can redistribute it and/or
3  modify it under the terms of the GNU General Public License
4  as published by the Free Software Foundation; either version 2
5  of the License, or (at your option) any later version.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  GNU General Public License for more details.
11 
12  You should have received a copy of the GNU General Public License
13  along with this program; if not, write to the Free Software
14  Foundation, Inc., 51 Franklin Street, Fifth Floor,
15  Boston, MA 02110-1301, USA.
16 
17  ---
18  Copyright (C) 2010 Alexander Rieder <alexanderrieder@gmail.com>
19  */
20 
21 #ifndef _PANEL_PLUGIN_H
22 #define _PANEL_PLUGIN_H
23 
24 #include <kxmlguiclient.h>
25 #include <QObject>
26 #include <kplugininfo.h>
27 
28 #include "backend.h"
29 
30 #include "cantor_export.h"
31 
32 namespace Cantor
33 {
34 class Session;
35 class PanelPluginPrivate;
36 
40 class CANTOR_EXPORT PanelPlugin : public QObject /*, public KXMLGUIClient*/
41 {
42  Q_OBJECT
43  public:
48  PanelPlugin( QObject* parent );
52  ~PanelPlugin();
53 
59  void setPluginInfo(KPluginInfo info);
60 
67  QStringList requiredExtensions();
68 
69 
76  virtual Backend::Capabilities requiredCapabilities();
77 
78 
83  QString name();
84 
89  virtual QWidget* widget() = 0;
90 
91  void setParentWidget(QWidget* widget);
92  QWidget* parentWidget();
93 
97  void setSession(Session* session);
98 
102  Session* session();
103 
104  signals:
105  void requestRunCommand(const QString& cmd);
106  void visibilityRequested();
107 
108  protected:
109  virtual void onSessionChanged();
110 
111  private:
112  PanelPluginPrivate* d;
113 };
114 
115 }
116 
117 #endif /* _PANEL_PLUGIN_H */
QWidget
CANTOR_EXPORT
#define CANTOR_EXPORT
Definition: cantor_export.h:33
QObject
QString
QStringList
Cantor::PanelPlugin
A plugin provides some additional features for the worksheet.
Definition: panelplugin.h:40
backend.h
cantor_export.h
Cantor::Session
The Session object is the main class used to interact with a Backend.
Definition: session.h:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:33 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

cantor/src/lib

Skip menu "cantor/src/lib"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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