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 &);
69 void fileImportKDEBookmarks();
71 void fileExportHTML();
72 void fileExportXHTML();
73 void fileExportImage(int);
74 void fileExportASCII();
75 void fileExportLaTeX();
76 void fileExportOOPresentation();
86 void editOpenFindWindow();
87 void editFind(QString);
88 void editFindChanged();
93 void editHeading2URL();
94 void editBugzilla2URL();
98 void editOpenVymLink();
100 void editDeleteVymLink();
104 void editToggleScroll();
105 void editUnScrollAll();
107 void editNewBranch();
108 void editNewBranchHere();
109 void editNewBranchAbove();
110 void editNewBranchBelow();
111 void editImportAdd();
112 void editImportReplace();
113 void editSaveBranch();
114 void editRemoveBranchHere();
115 void editRemoveChilds();
116 void editDeleteSelection();
117 void editUpperBranch();
118 void editLowerBranch();
119 void editLeftBranch();
120 void editRightBranch();
121 void editFirstBranch();
122 void editLastBranch();
123 void editLoadImage();
124 void editSaveImage(int);
125 void editToggleFloatExport();
126 void editFollowXLink (int);
127 void editEditXLink (int);
129 void formatSelectColor();
130 void formatPickColor();
131 void colorChanged(QColor);
132 void formatColorItem();
133 void formatColorBranch();
134 void formatLinkStyleLine();
135 void formatLinkStyleParabel();
136 void formatLinkStylePolyLine();
137 void formatLinkStylePolyParabel();
138 void formatSelectBackColor();
139 void formatSelectLinkColor();
140 void formatToggleLinkColorHint();
141 void formatFrameNone();
142 void formatFrameRectangle();
143 void formatIncludeImagesVer();
144 void formatIncludeImagesHor();
145 void formatHideLinkUnselected();
147 void viewZoomReset();
158 void windowToggleNoteEditor();
159 void updateNoteFlag();
162 void windowNextEditor();
163 void windowPreviousEditor();
164 void windowShowNoteEditor();
165 void windowHideNoteEditor();
167 void standardFlagChanged();
177 QTabWidget *tabWidget;
178 FindWindow *findWindow;
179 QStringList lastMaps;