Bugfix: Serious bug related to autosave fixed.
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 setupWindowActions();
42 void setupFlagActions();
43 void setupSettingsActions();
44 void setupTestActions();
45 void setupHelpActions();
46 void setupContextMenus();
47 void setupLastMapsMenu();
48 void hideEvent (QHideEvent * );
49 void showEvent (QShowEvent * );
50 bool reallyWriteDirectory(const QString&);
51 QString browseDirectory(const QString&);
52 MapEditor* currentMapEditor() const;
56 void editorChanged(QWidget*);
58 void fileLoad(QString ,const LoadMode &);
59 void fileLoad(const LoadMode &);
61 void fileLoadLast(int);
62 void fileSave(const SaveMode & );
64 void fileSaveAs(const SaveMode &);
68 void fileExportHTML();
69 void fileExportXHTML();
70 void fileExportImage(int);
71 void fileExportASCII();
81 void editOpenFindWindow();
82 void editFind(QString);
83 void editFindChanged();
88 void editHeading2URL();
89 void editBugzilla2URL();
92 void editOpenVymLink();
94 void editDeleteVymLink();
98 void editToggleScroll();
99 void editUnScrollAll();
101 void editNewBranch();
102 void editNewBranchAbove();
103 void editNewBranchBelow();
104 void editImportAdd();
105 void editImportReplace();
106 void editSaveBranch();
107 void editDeleteSelection();
108 void editUpperBranch();
109 void editLowerBranch();
110 void editLeftBranch();
111 void editRightBranch();
112 void editFirstBranch();
113 void editLastBranch();
114 void editLoadImage();
115 void editSaveImage(int);
116 void editToggleFloatExport();
118 void formatSelectColor();
119 void formatPickColor();
120 void colorChanged(QColor);
121 void formatColorItem();
122 void formatColorBranch();
123 void formatLinkStyleLine();
124 void formatLinkStyleParabel();
125 void formatLinkStylePolyLine();
126 void formatLinkStylePolyParabel();
127 void formatSelectBackColor();
128 void formatSelectLinkColor();
129 void formatToggleLinkColorHint();
130 void formatFrameNone();
131 void formatFrameRectangle();
133 void viewZoomReset();
141 void windowToggleNoteEditor();
143 void windowNextEditor();
144 void windowPreviousEditor();
145 void windowShowNoteEditor();
146 void windowHideNoteEditor();
148 void standardFlagChanged();
151 void testShowClipboard();
159 QTabWidget *tabWidget;
160 FindWindow *findWindow;
161 QStringList lastMaps;