18 #ifndef NCLTEXTUALVIEWPLUGIN_H
19 #define NCLTEXTUALVIEWPLUGIN_H
23 #include "NCLTextEditor.h"
24 #include "NCLTextEditorMainWindow.h"
26 #include "NCLTextualViewPlugin_global.h"
29 #include <QKeySequence>
30 #include <QDomElement>
33 #include <core/extensions/IPlugin.h>
34 using namespace composer::extension;
51 QMap <QString, int> startEntityOffset;
52 QMap <QString, int> endEntityOffset;
54 QShortcut *updateModelShortcut;
57 Entity *currentEntity;
83 bool saveSubsession();
101 void onEntityAdded(QString pluginID, Entity *);
110 void onEntityChanged(QString pluginID, Entity *);
118 void onEntityRemoved(QString pluginID, QString entityID);
125 void errorMessage(QString error);
133 void changeSelectedEntity(QString pluginID,
void* param);
138 void updateFromModel();
146 void incrementalUpdateFromModel();
155 void nonIncrementalUpdateFromModel();
161 void updateErrorMessages();
168 void clearValidationMessages(QString,
void *param);
172 void validationError(QString pluginID,
void *param);
180 void updateCoreModel();
186 void incrementalUpdateCoreModel();
192 void nonIncrementalUpdateCoreModel();
202 virtual void manageFocusLost(QFocusEvent *event);
205 void TextualPluginHasAddedEntity(QString pluginID, Entity *entity);
208 void updateEntitiesOffset(
int startFrom = 0,
int insertedChars = 0);
209 void printEntitiesOffset();
214 bool isStartEndTag(Entity *entity);
219 void openStartEndTag(Entity *entity);
224 void fixIdentation(
int offset,
bool mustAddTab =
false);
227 #endif // DEBUGCONSOLEPLUGIN_H