Runs basically on Mac now. Undo debug output still enabled
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();
106 void editOpenVymLink();
108 void editDeleteVymLink();
109 void editToggleHideExport();
113 void editToggleScroll();
114 void editUnScrollAll();
115 void editNewBranch();
116 void editNewBranchHere();
117 void editNewBranchAbove();
118 void editNewBranchBelow();
119 void editImportAdd();
120 void editImportReplace();
121 void editSaveBranch();
122 void editRemoveBranchKeepChilds();
123 void editRemoveChilds();
124 void editDeleteSelection();
125 void editUpperBranch();
126 void editLowerBranch();
127 void editLeftBranch();
128 void editRightBranch();
129 void editFirstBranch();
130 void editLastBranch();
131 void editLoadImage();
132 void editSaveImage();
133 void editFollowXLink (QAction *);
134 void editEditXLink (QAction *);
136 void formatSelectColor();
137 void formatPickColor();
138 void colorChanged(QColor);
139 void formatColorItem();
140 void formatColorBranch();
141 void formatLinkStyleLine();
142 void formatLinkStyleParabel();
143 void formatLinkStylePolyLine();
144 void formatLinkStylePolyParabel();
145 void formatSelectBackColor();
146 void formatSelectLinkColor();
147 void formatToggleLinkColorHint();
148 void formatFrameNone();
149 void formatFrameRectangle();
150 void formatIncludeImagesVer();
151 void formatIncludeImagesHor();
152 void formatHideLinkUnselected();
154 void viewZoomReset();
164 void settingsToggleDelKey();
166 void windowToggleNoteEditor();
167 void windowToggleHistory();
168 void updateNoteFlag();
171 void windowNextEditor();
172 void windowPreviousEditor();
173 void windowShowNoteEditor();
174 void windowHideNoteEditor();
176 void standardFlagChanged();
185 QTabWidget *tabWidget;
186 FindWindow *findWindow;
187 QStringList lastMaps;
189 QProcess *procBrowser;
191 QStringList imageTypes;
193 QLineEdit *lineedit; // to enter headings of branches