Cleaned up mmap import a bit. Started to convert flags there, too
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 fileExportHTML();
73 void fileExportXHTML();
74 void fileExportImage(int);
75 void fileExportASCII();
76 void fileExportLaTeX();
77 void fileExportOOPresentation();
87 void editOpenFindWindow();
88 void editFind(QString);
89 void editFindChanged();
94 void editHeading2URL();
95 void editBugzilla2URL();
99 void editOpenVymLink();
101 void editDeleteVymLink();
105 void editToggleScroll();
106 void editUnScrollAll();
108 void editNewBranch();
109 void editNewBranchHere();
110 void editNewBranchAbove();
111 void editNewBranchBelow();
112 void editImportAdd();
113 void editImportReplace();
114 void editSaveBranch();
115 void editRemoveBranchHere();
116 void editRemoveChilds();
117 void editDeleteSelection();
118 void editUpperBranch();
119 void editLowerBranch();
120 void editLeftBranch();
121 void editRightBranch();
122 void editFirstBranch();
123 void editLastBranch();
124 void editLoadImage();
125 void editSaveImage(int);
126 void editToggleFloatExport();
127 void editFollowXLink (int);
128 void editEditXLink (int);
130 void formatSelectColor();
131 void formatPickColor();
132 void colorChanged(QColor);
133 void formatColorItem();
134 void formatColorBranch();
135 void formatLinkStyleLine();
136 void formatLinkStyleParabel();
137 void formatLinkStylePolyLine();
138 void formatLinkStylePolyParabel();
139 void formatSelectBackColor();
140 void formatSelectLinkColor();
141 void formatToggleLinkColorHint();
142 void formatFrameNone();
143 void formatFrameRectangle();
144 void formatIncludeImagesVer();
145 void formatIncludeImagesHor();
146 void formatHideLinkUnselected();
148 void viewZoomReset();
159 void windowToggleNoteEditor();
160 void updateNoteFlag();
163 void windowNextEditor();
164 void windowPreviousEditor();
165 void windowShowNoteEditor();
166 void windowHideNoteEditor();
168 void standardFlagChanged();
178 QTabWidget *tabWidget;
179 FindWindow *findWindow;
180 QStringList lastMaps;