4 #include <qpopupmenu.h>
5 #include <qmainwindow.h>
12 #include <qtabwidget.h>
16 #include "findwindow.h"
17 #include "mapeditor.h"
18 #include "texteditor.h"
21 class Main : public QMainWindow
26 Main(QWidget* parent=0, const char* name=0, WFlags f=0);
29 void statusMessage (const QString &);
35 void closeEvent( QCloseEvent* );
38 void setupFileActions();
39 void setupEditActions();
40 void setupFormatActions();
41 void setupViewActions();
42 void setupModeActions();
43 void setupWindowActions();
44 void setupFlagActions();
45 void setupSettingsActions();
46 void setupTestActions();
47 void setupHelpActions();
48 void setupContextMenus();
49 void setupLastMapsMenu();
50 void hideEvent (QHideEvent * );
51 void showEvent (QShowEvent * );
52 bool reallyWriteDirectory(const QString&);
53 QString browseDirectory(const QString&);
54 MapEditor* currentMapEditor() const;
58 void editorChanged(QWidget*);
60 ErrorCode fileLoad(QString ,const LoadMode &);
61 void fileLoad(const LoadMode &);
63 void fileLoadLast(int);
64 void fileSave(const SaveMode & );
66 void fileSaveAs(const SaveMode &);
68 void fileImportKDEBookmarks();
72 void fileExportHTML();
73 void fileExportXHTML();
74 void fileExportImage(int);
75 void fileExportASCII();
76 void fileExportLaTeX();
77 void fileExportTaskjuggler();
78 void fileExportOOPresentation();
88 void editOpenFindWindow();
89 void editFind(QString);
90 void editFindChanged();
95 void editHeading2URL();
96 void editBugzilla2URL();
100 void editOpenVymLink();
102 void editDeleteVymLink();
106 void editToggleScroll();
107 void editUnScrollAll();
109 void editNewBranch();
110 void editNewBranchHere();
111 void editNewBranchAbove();
112 void editNewBranchBelow();
113 void editImportAdd();
114 void editImportReplace();
115 void editSaveBranch();
116 void editRemoveBranchHere();
117 void editRemoveChilds();
118 void editDeleteSelection();
119 void editUpperBranch();
120 void editLowerBranch();
121 void editLeftBranch();
122 void editRightBranch();
123 void editFirstBranch();
124 void editLastBranch();
125 void editLoadImage();
126 void editSaveImage(int);
127 void editToggleFloatExport();
128 void editFollowXLink (int);
129 void editEditXLink (int);
131 void formatSelectColor();
132 void formatPickColor();
133 void colorChanged(QColor);
134 void formatColorItem();
135 void formatColorBranch();
136 void formatLinkStyleLine();
137 void formatLinkStyleParabel();
138 void formatLinkStylePolyLine();
139 void formatLinkStylePolyParabel();
140 void formatSelectBackColor();
141 void formatSelectLinkColor();
142 void formatToggleLinkColorHint();
143 void formatFrameNone();
144 void formatFrameRectangle();
145 void formatIncludeImagesVer();
146 void formatIncludeImagesHor();
147 void formatHideLinkUnselected();
149 void viewZoomReset();
160 void windowToggleNoteEditor();
161 void updateNoteFlag();
164 void windowNextEditor();
165 void windowPreviousEditor();
166 void windowShowNoteEditor();
167 void windowHideNoteEditor();
169 void standardFlagChanged();
179 QTabWidget *tabWidget;
180 FindWindow *findWindow;
181 QStringList lastMaps;