NCL Composer  0.1.5
 All Classes Functions Variables Pages
DebugConsolePlugin.h
1 /*
2  * Copyright 2011 TeleMidia/PUC-Rio.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library. If not, see
16  * <http://www.gnu.org/licenses/>.
17  */
18 #ifndef DEBUGCONSOLEPLUGIN_H
19 #define DEBUGCONSOLEPLUGIN_H
20 
21 #include <QObject>
22 #include <QGridLayout>
23 #include <QPushButton>
24 #include <QListWidget>
25 #include <QListWidgetItem>
26 
27 #include <core/extensions/IPlugin.h>
28 using namespace composer::extension;
29 
37 {
38  Q_OBJECT
39 
40  private:
41  QListWidget *list;
42  QWidget *window;
43  public:
44  explicit DebugConsolePlugin();
46 
47  void init();
48  QWidget* getWidget();
49  bool saveSubsession();
50 
51  public slots:
52  void onEntityAdded(QString ID, Entity *);
53  void onEntityChanged(QString ID, Entity *);
54  /*void onEntityAboutToRemove(Entity *);*/
55  void onEntityRemoved(QString ID, QString entityID);
56 
57  void errorMessage(QString error);
58 
59  void sendToAll();
60 };
61 
62 #endif // DEBUGCONSOLEPLUGIN_H