4 #include <qpopupmenu.h>
5 #include <qmainwindow.h>
12 #include <qtabwidget.h>
16 #include "texteditor.h"
17 #include "mapeditor.h"
18 #include "findwindow.h"
20 class Main : public QMainWindow
25 Main(QWidget* parent=0, const char* name=0, WFlags f=0);
28 void statusMessage (const QString &);
34 void closeEvent( QCloseEvent* );
37 void setupFileActions();
38 void setupEditActions();
39 void setupFormatActions();
40 void setupViewActions();
41 void setupModeActions();
42 void setupWindowActions();
43 void setupFlagActions();
44 void setupSettingsActions();
45 void setupTestActions();
46 void setupHelpActions();
47 void setupContextMenus();
48 void setupLastMapsMenu();
49 void hideEvent (QHideEvent * );
50 void showEvent (QShowEvent * );
51 bool reallyWriteDirectory(const QString&);
52 QString browseDirectory(const QString&);
53 MapEditor* currentMapEditor() const;
57 void editorChanged(QWidget*);
59 void fileLoad(QString ,const LoadMode &);
60 void fileLoad(const LoadMode &);
62 void fileLoadLast(int);
63 void fileSave(const SaveMode & );
65 void fileSaveAs(const SaveMode &);
69 void fileExportHTML();
70 void fileExportXHTML();
71 void fileExportImage(int);
72 void fileExportASCII();
82 void editOpenFindWindow();
83 void editFind(QString);
84 void editFindChanged();
89 void editHeading2URL();
90 void editBugzilla2URL();
93 void editOpenVymLink();
95 void editDeleteVymLink();
99 void editToggleScroll();
100 void editUnScrollAll();
102 void editNewBranch();
103 void editNewBranchHere();
104 void editNewBranchAbove();
105 void editNewBranchBelow();
106 void editImportAdd();
107 void editImportReplace();
108 void editSaveBranch();
109 void editRemoveBranchHere();
110 void editRemoveChilds();
111 void editDeleteSelection();
112 void editUpperBranch();
113 void editLowerBranch();
114 void editLeftBranch();
115 void editRightBranch();
116 void editFirstBranch();
117 void editLastBranch();
118 void editLoadImage();
119 void editSaveImage(int);
120 void editToggleFloatExport();
121 void editFollowXLink (int);
122 void editEditXLink (int);
124 void formatSelectColor();
125 void formatPickColor();
126 void colorChanged(QColor);
127 void formatColorItem();
128 void formatColorBranch();
129 void formatLinkStyleLine();
130 void formatLinkStyleParabel();
131 void formatLinkStylePolyLine();
132 void formatLinkStylePolyParabel();
133 void formatSelectBackColor();
134 void formatSelectLinkColor();
135 void formatToggleLinkColorHint();
136 void formatFrameNone();
137 void formatFrameRectangle();
139 void viewZoomReset();
150 void windowToggleNoteEditor();
152 void windowNextEditor();
153 void windowPreviousEditor();
154 void windowShowNoteEditor();
155 void windowHideNoteEditor();
157 void standardFlagChanged();
160 void testShowClipboard();
168 QTabWidget *tabWidget;
169 FindWindow *findWindow;
170 QStringList lastMaps;