11 #include <QCloseEvent>
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, Qt::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(QAction *);
64 void fileSave(const SaveMode & );
66 void fileSaveAs(const SaveMode &);
68 void fileImportKDEBookmarks();
69 void fileImportFirefoxBookmarks();
73 void fileExportXHTML();
74 void fileExportImage();
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();
93 void openTabs(QStringList);
96 void editOpenURLTab();
98 void editOpenMultipleURLTabs();
100 void editHeading2URL();
101 void editBugzilla2URL();
103 void openVymLinks(const QStringList &);
105 void editOpenMultipleVymLinks();
108 void editOpenVymLink();
110 void editDeleteVymLink();
111 void editToggleHideExport();
115 void editToggleScroll();
116 void editUnScrollAll();
117 void editNewBranch();
118 void editNewBranchHere();
119 void editNewBranchAbove();
120 void editNewBranchBelow();
121 void editImportAdd();
122 void editImportReplace();
123 void editSaveBranch();
124 void editRemoveBranchKeepChilds();
125 void editRemoveChilds();
126 void editDeleteSelection();
127 void editUpperBranch();
128 void editLowerBranch();
129 void editLeftBranch();
130 void editRightBranch();
131 void editFirstBranch();
132 void editLastBranch();
133 void editLoadImage();
134 void editSaveImage();
135 void editFollowXLink (QAction *);
136 void editEditXLink (QAction *);
138 void formatSelectColor();
139 void formatPickColor();
140 void colorChanged(QColor);
141 void formatColorItem();
142 void formatColorBranch();
143 void formatLinkStyleLine();
144 void formatLinkStyleParabel();
145 void formatLinkStylePolyLine();
146 void formatLinkStylePolyParabel();
147 void formatSelectBackColor();
148 void formatSelectLinkColor();
149 void formatToggleLinkColorHint();
150 void formatFrameNone();
151 void formatFrameRectangle();
152 void formatIncludeImagesVer();
153 void formatIncludeImagesHor();
154 void formatHideLinkUnselected();
156 void viewZoomReset();
166 void settingsToggleDelKey();
168 void windowToggleNoteEditor();
169 void windowToggleHistory();
170 void updateNoteFlag();
173 void windowNextEditor();
174 void windowPreviousEditor();
175 void windowShowNoteEditor();
176 void windowHideNoteEditor();
178 void standardFlagChanged();
187 QTabWidget *tabWidget;
188 FindWindow *findWindow;
189 QStringList lastMaps;
191 QProcess *procBrowser;
193 QStringList imageTypes;
195 QLineEdit *lineedit; // to enter headings of branches