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 void fileLoad(QString ,const LoadMode &);
61 void fileLoad(const LoadMode &);
63 void fileLoadLast(int);
64 void fileSave(const SaveMode & );
66 void fileSaveAs(const SaveMode &);
70 void fileExportHTML();
71 void fileExportXHTML();
72 void fileExportImage(int);
73 void fileExportASCII();
74 void fileExportLaTeX();
75 void fileExportOOPresentation();
85 void editOpenFindWindow();
86 void editFind(QString);
87 void editFindChanged();
92 void editHeading2URL();
93 void editBugzilla2URL();
97 void editOpenVymLink();
99 void editDeleteVymLink();
103 void editToggleScroll();
104 void editUnScrollAll();
106 void editNewBranch();
107 void editNewBranchHere();
108 void editNewBranchAbove();
109 void editNewBranchBelow();
110 void editImportAdd();
111 void editImportReplace();
112 void editSaveBranch();
113 void editRemoveBranchHere();
114 void editRemoveChilds();
115 void editDeleteSelection();
116 void editUpperBranch();
117 void editLowerBranch();
118 void editLeftBranch();
119 void editRightBranch();
120 void editFirstBranch();
121 void editLastBranch();
122 void editLoadImage();
123 void editSaveImage(int);
124 void editToggleFloatExport();
125 void editFollowXLink (int);
126 void editEditXLink (int);
128 void formatSelectColor();
129 void formatPickColor();
130 void colorChanged(QColor);
131 void formatColorItem();
132 void formatColorBranch();
133 void formatLinkStyleLine();
134 void formatLinkStyleParabel();
135 void formatLinkStylePolyLine();
136 void formatLinkStylePolyParabel();
137 void formatSelectBackColor();
138 void formatSelectLinkColor();
139 void formatToggleLinkColorHint();
140 void formatFrameNone();
141 void formatFrameRectangle();
142 void formatIncludeImagesVer();
143 void formatIncludeImagesHor();
144 void formatHideLinkUnselected();
146 void viewZoomReset();
157 void windowToggleNoteEditor();
158 void updateNoteFlag();
161 void windowNextEditor();
162 void windowPreviousEditor();
163 void windowShowNoteEditor();
164 void windowHideNoteEditor();
166 void standardFlagChanged();
176 QTabWidget *tabWidget;
177 FindWindow *findWindow;
178 QStringList lastMaps;