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 editNewBranchAbove();
104 void editNewBranchBelow();
105 void editImportAdd();
106 void editImportReplace();
107 void editSaveBranch();
108 void editDeleteSelection();
109 void editUpperBranch();
110 void editLowerBranch();
111 void editLeftBranch();
112 void editRightBranch();
113 void editFirstBranch();
114 void editLastBranch();
115 void editLoadImage();
116 void editSaveImage(int);
117 void editToggleFloatExport();
118 void editFollowXLink (int);
119 void editEditXLink (int);
121 void formatSelectColor();
122 void formatPickColor();
123 void colorChanged(QColor);
124 void formatColorItem();
125 void formatColorBranch();
126 void formatLinkStyleLine();
127 void formatLinkStyleParabel();
128 void formatLinkStylePolyLine();
129 void formatLinkStylePolyParabel();
130 void formatSelectBackColor();
131 void formatSelectLinkColor();
132 void formatToggleLinkColorHint();
133 void formatFrameNone();
134 void formatFrameRectangle();
136 void viewZoomReset();
147 void windowToggleNoteEditor();
149 void windowNextEditor();
150 void windowPreviousEditor();
151 void windowShowNoteEditor();
152 void windowHideNoteEditor();
154 void standardFlagChanged();
157 void testShowClipboard();
165 QTabWidget *tabWidget;
166 FindWindow *findWindow;
167 QStringList lastMaps;