4 #include <q3popupmenu.h>
5 #include <q3textedit.h>
10 #include <QMainWindow>
13 #include <qtabwidget.h>
16 #include <QCloseEvent>
21 #include "findwindow.h"
22 #include "mapeditor.h"
23 #include "texteditor.h"
27 class Main : public QMainWindow
32 Main(QWidget* parent=0, const char* name=0, Qt::WFlags f=0);
35 void statusMessage (const QString &);
41 void closeEvent( QCloseEvent* );
44 void setupFileActions();
45 void setupEditActions();
46 void setupFormatActions();
47 void setupViewActions();
48 void setupModeActions();
49 void setupWindowActions();
50 void setupFlagActions();
51 void setupSettingsActions();
52 void setupTestActions();
53 void setupHelpActions();
54 void setupContextMenus();
55 void setupLastMapsMenu();
56 void hideEvent (QHideEvent * );
57 void showEvent (QShowEvent * );
58 bool reallyWriteDirectory(const QString&);
59 QString browseDirectory(const QString&);
60 MapEditor* currentMapEditor() const;
64 void editorChanged(QWidget*);
66 ErrorCode fileLoad(QString ,const LoadMode &);
67 void fileLoad(const LoadMode &);
69 void fileLoadLast(QAction *);
70 void fileSave(const SaveMode & );
72 void fileSaveAs(const SaveMode &);
74 void fileImportKDEBookmarks();
75 void fileImportFirefoxBookmarks();
79 void fileExportXHTML();
80 void fileExportImage();
81 void fileExportASCII();
82 void fileExportLaTeX();
83 void fileExportKDEBookmarks();
84 void fileExportTaskjuggler();
85 void fileExportOOPresentation();
95 void editOpenFindWindow();
96 void editFind(QString);
97 void editFindChanged();
100 void editOpenURLTab();
103 void editHeading2URL();
104 void editBugzilla2URL();
108 void editOpenVymLink();
110 void editDeleteVymLink();
111 void editToggleHideExport();
115 void editToggleScroll();
116 void editUnScrollAll();
118 void editNewBranch();
119 void editNewBranchHere();
120 void editNewBranchAbove();
121 void editNewBranchBelow();
122 void editImportAdd();
123 void editImportReplace();
124 void editSaveBranch();
125 void editRemoveBranchKeepChilds();
126 void editRemoveChilds();
127 void editDeleteSelection();
128 void editUpperBranch();
129 void editLowerBranch();
130 void editLeftBranch();
131 void editRightBranch();
132 void editFirstBranch();
133 void editLastBranch();
134 void editLoadImage();
135 void editSaveImage();
136 void editFollowXLink (QAction *);
137 void editEditXLink (QAction *);
139 void formatSelectColor();
140 void formatPickColor();
141 void colorChanged(QColor);
142 void formatColorItem();
143 void formatColorBranch();
144 void formatLinkStyleLine();
145 void formatLinkStyleParabel();
146 void formatLinkStylePolyLine();
147 void formatLinkStylePolyParabel();
148 void formatSelectBackColor();
149 void formatSelectLinkColor();
150 void formatToggleLinkColorHint();
151 void formatFrameNone();
152 void formatFrameRectangle();
153 void formatIncludeImagesVer();
154 void formatIncludeImagesHor();
155 void formatHideLinkUnselected();
157 void viewZoomReset();
167 void settingsToggleDelKey();
169 void windowToggleNoteEditor();
170 void windowToggleHistory();
171 void updateNoteFlag();
174 void windowNextEditor();
175 void windowPreviousEditor();
176 void windowShowNoteEditor();
177 void windowHideNoteEditor();
179 void standardFlagChanged();
189 QToolBar *TB_standardFlags;
190 QTabWidget *tabWidget;
191 FindWindow *findWindow;
192 QStringList lastMaps;
194 Q3Process *procBrowser;
196 QStringList imageTypes;