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();
69 void fileImportFirefoxBookmarks();
73 void fileExportXHTML();
74 void fileExportImage(int);
75 void fileExportASCII();
76 void fileExportLaTeX();
77 void fileExportKDEBookmarks();
78 void fileExportTaskjuggler();
79 void fileExportOOPresentation();
89 void editOpenFindWindow();
90 void editFind(QString);
91 void editFindChanged();
94 void editOpenURLTab();
97 void editHeading2URL();
98 void editBugzilla2URL();
102 void editOpenVymLink();
104 void editDeleteVymLink();
105 void editToggleHideExport();
109 void editToggleScroll();
110 void editUnScrollAll();
112 void editNewBranch();
113 void editNewBranchHere();
114 void editNewBranchAbove();
115 void editNewBranchBelow();
116 void editImportAdd();
117 void editImportReplace();
118 void editSaveBranch();
119 void editRemoveBranchKeepChilds();
120 void editRemoveChilds();
121 void editDeleteSelection();
122 void editUpperBranch();
123 void editLowerBranch();
124 void editLeftBranch();
125 void editRightBranch();
126 void editFirstBranch();
127 void editLastBranch();
128 void editLoadImage();
129 void editSaveImage(int);
130 void editFollowXLink (int);
131 void editEditXLink (int);
133 void formatSelectColor();
134 void formatPickColor();
135 void colorChanged(QColor);
136 void formatColorItem();
137 void formatColorBranch();
138 void formatLinkStyleLine();
139 void formatLinkStyleParabel();
140 void formatLinkStylePolyLine();
141 void formatLinkStylePolyParabel();
142 void formatSelectBackColor();
143 void formatSelectLinkColor();
144 void formatToggleLinkColorHint();
145 void formatFrameNone();
146 void formatFrameRectangle();
147 void formatIncludeImagesVer();
148 void formatIncludeImagesHor();
149 void formatHideLinkUnselected();
151 void viewZoomReset();
162 void windowToggleNoteEditor();
163 void windowToggleHistory();
164 void updateNoteFlag();
167 void windowNextEditor();
168 void windowPreviousEditor();
169 void windowShowNoteEditor();
170 void windowHideNoteEditor();
172 void standardFlagChanged();
181 // not needed? QCanvas* canvas;
182 QTabWidget *tabWidget;
183 FindWindow *findWindow;
184 QStringList lastMaps;
187 QProcess *procBrowser;