25 #include <QMainWindow>
26 #include <QDockWidget>
27 #include <QListWidget>
29 #include <QPushButton>
32 #include "NCLProblemsView.h"
34 #ifdef NCLEDITOR_STANDALONE
35 #include "NCLTreeWidget.h"
38 #include "NCLTextEditor.h"
42 #include "SearchLineEdit.h"
58 #ifdef NCLEDITOR_STANDALONE
59 NCLTreeWidget *getNCLTreeWidget() {
return this->outlineView; }
63 void closeEvent(QCloseEvent *event);
71 void documentWasModified();
72 void showInFullScreen();
74 void gotoLineOf(QTreeWidgetItem *item,
int column);
75 void showPreferences();
80 void findNext(QString text);
82 void findPrevious(QString text);
87 void createToolBars();
88 void createStatusBar();
89 void createTextView();
90 void createOutlineView();
91 void createProblemsView();
92 void createSearchBox();
96 void loadFile(
const QString &fileName);
97 bool saveFile(
const QString &fileName);
98 void setCurrentFile(
const QString &fileName);
99 QString strippedName(
const QString &fullFileName);
101 QDockWidget *dockTextEdit, *dockTextEdit2;
108 QToolBar *fileToolBar;
109 QToolBar *editToolBar;
120 QAction *fullscreenAct;
121 QAction *editPreferencesAct;
122 QAction *synchronizeAct;
123 QAction *showSearchBoxAct;
126 QPushButton doSearchButton;
127 QDockWidget *dockSearchBox;
132 #ifdef NCLEDITOR_STANDALONE
133 QDockWidget *dockOutlineView;
138 QAction *insertNodeChildAct;
150 void elementAdded(QString, QString, QMap <QString, QString>&,
bool);