4 #include <qpopupmenu.h>
5 #include <qmainwindow.h>
12 #include <qtabwidget.h>
16 #include "texteditor.h"
17 #include "mapeditor.h"
18 #include "findwindow.h"
20 class Main : public QMainWindow
25 Main(QWidget* parent=0, const char* name=0, WFlags f=0);
28 void statusMessage (const QString &);
34 void closeEvent( QCloseEvent* );
37 void setupFileActions();
38 void setupEditActions();
39 void setupFormatActions();
40 void setupViewActions();
41 void setupModeActions();
42 void setupWindowActions();
43 void setupFlagActions();
44 void setupSettingsActions();
45 void setupTestActions();
46 void setupHelpActions();
47 void setupContextMenus();
48 void setupLastMapsMenu();
49 void hideEvent (QHideEvent * );
50 void showEvent (QShowEvent * );
51 bool reallyWriteDirectory(const QString&);
52 QString browseDirectory(const QString&);
53 MapEditor* currentMapEditor() const;
57 void editorChanged(QWidget*);
59 void fileLoad(QString ,const LoadMode &);
60 void fileLoad(const LoadMode &);
62 void fileLoadLast(int);
63 void fileSave(const SaveMode & );
65 void fileSaveAs(const SaveMode &);
69 void fileExportHTML();
70 void fileExportXHTML();
71 void fileExportImage(int);
72 void fileExportASCII();
73 void fileExportLaTeX();
74 void fileExportOOPresentation();
84 void editOpenFindWindow();
85 void editFind(QString);
86 void editFindChanged();
91 void editHeading2URL();
92 void editBugzilla2URL();
95 void editOpenVymLink();
97 void editDeleteVymLink();
101 void editToggleScroll();
102 void editUnScrollAll();
104 void editNewBranch();
105 void editNewBranchHere();
106 void editNewBranchAbove();
107 void editNewBranchBelow();
108 void editImportAdd();
109 void editImportReplace();
110 void editSaveBranch();
111 void editRemoveBranchHere();
112 void editRemoveChilds();
113 void editDeleteSelection();
114 void editUpperBranch();
115 void editLowerBranch();
116 void editLeftBranch();
117 void editRightBranch();
118 void editFirstBranch();
119 void editLastBranch();
120 void editLoadImage();
121 void editSaveImage(int);
122 void editToggleFloatExport();
123 void editFollowXLink (int);
124 void editEditXLink (int);
126 void formatSelectColor();
127 void formatPickColor();
128 void colorChanged(QColor);
129 void formatColorItem();
130 void formatColorBranch();
131 void formatLinkStyleLine();
132 void formatLinkStyleParabel();
133 void formatLinkStylePolyLine();
134 void formatLinkStylePolyParabel();
135 void formatSelectBackColor();
136 void formatSelectLinkColor();
137 void formatToggleLinkColorHint();
138 void formatFrameNone();
139 void formatFrameRectangle();
140 void formatHideLinkUnselected();
142 void viewZoomReset();
153 void windowToggleNoteEditor();
154 void updateNoteFlag();
157 void windowNextEditor();
158 void windowPreviousEditor();
159 void windowShowNoteEditor();
160 void windowHideNoteEditor();
162 void standardFlagChanged();
172 QTabWidget *tabWidget;
173 FindWindow *findWindow;
174 QStringList lastMaps;