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 fileExportXHTML();
73 void fileExportImage(int);
74 void fileExportASCII();
75 void fileExportLaTeX();
76 void fileExportKDEBookmarks();
77 void fileExportTaskjuggler();
78 void fileExportOOPresentation();
88 void editOpenFindWindow();
89 void editFind(QString);
90 void editFindChanged();
93 void editOpenURLTab();
96 void editHeading2URL();
97 void editBugzilla2URL();
101 void editOpenVymLink();
103 void editDeleteVymLink();
104 void editToggleHideExport();
108 void editToggleScroll();
109 void editUnScrollAll();
111 void editNewBranch();
112 void editNewBranchHere();
113 void editNewBranchAbove();
114 void editNewBranchBelow();
115 void editImportAdd();
116 void editImportReplace();
117 void editSaveBranch();
118 void editRemoveBranchHere();
119 void editRemoveChilds();
120 void editDeleteSelection();
121 void editUpperBranch();
122 void editLowerBranch();
123 void editLeftBranch();
124 void editRightBranch();
125 void editFirstBranch();
126 void editLastBranch();
127 void editLoadImage();
128 void editSaveImage(int);
129 void editFollowXLink (int);
130 void editEditXLink (int);
132 void formatSelectColor();
133 void formatPickColor();
134 void colorChanged(QColor);
135 void formatColorItem();
136 void formatColorBranch();
137 void formatLinkStyleLine();
138 void formatLinkStyleParabel();
139 void formatLinkStylePolyLine();
140 void formatLinkStylePolyParabel();
141 void formatSelectBackColor();
142 void formatSelectLinkColor();
143 void formatToggleLinkColorHint();
144 void formatFrameNone();
145 void formatFrameRectangle();
146 void formatIncludeImagesVer();
147 void formatIncludeImagesHor();
148 void formatHideLinkUnselected();
150 void viewZoomReset();
161 void windowToggleNoteEditor();
162 void updateNoteFlag();
165 void windowNextEditor();
166 void windowPreviousEditor();
167 void windowShowNoteEditor();
168 void windowHideNoteEditor();
170 void standardFlagChanged();
179 // not needed? QCanvas* canvas;
180 QTabWidget *tabWidget;
181 FindWindow *findWindow;
182 QStringList lastMaps;
185 QProcess *procBrowser;