author | insilmaril |
Thu, 17 Jul 2008 09:27:20 +0000 | |
branch | release-1-12-maintained |
changeset 39 | e37153bea487 |
parent 0 | 7a96bd401351 |
child 2 | 608f976aa7bb |
child 62 | 85683324f94a |
child 89 | 9db3eaa21237 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef MAINWINDOW_H |
insilmaril@0 | 2 |
#define MAINWINDOW_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include <qpopupmenu.h> |
insilmaril@0 | 5 |
#include <qmainwindow.h> |
insilmaril@0 | 6 |
#include <qtextedit.h> |
insilmaril@0 | 7 |
#include <qintdict.h> |
insilmaril@0 | 8 |
#include <qcanvas.h> |
insilmaril@0 | 9 |
#include <qlineedit.h> |
insilmaril@0 | 10 |
#include <qaction.h> |
insilmaril@0 | 11 |
#include <qcursor.h> |
insilmaril@0 | 12 |
#include <qtabwidget.h> |
insilmaril@0 | 13 |
#include <qmap.h> |
insilmaril@0 | 14 |
|
insilmaril@0 | 15 |
#include "xml.h" |
insilmaril@0 | 16 |
#include "texteditor.h" |
insilmaril@0 | 17 |
#include "mapeditor.h" |
insilmaril@0 | 18 |
#include "findwindow.h" |
insilmaril@0 | 19 |
|
insilmaril@0 | 20 |
class Main : public QMainWindow |
insilmaril@0 | 21 |
{ |
insilmaril@0 | 22 |
Q_OBJECT |
insilmaril@0 | 23 |
|
insilmaril@0 | 24 |
public: |
insilmaril@0 | 25 |
Main(QWidget* parent=0, const char* name=0, WFlags f=0); |
insilmaril@0 | 26 |
~Main(); |
insilmaril@0 | 27 |
void loadCmdLine(); |
insilmaril@0 | 28 |
void statusMessage (const QString &); |
insilmaril@0 | 29 |
|
insilmaril@0 | 30 |
public slots: |
insilmaril@0 | 31 |
void fileNew(); |
insilmaril@0 | 32 |
|
insilmaril@0 | 33 |
protected: |
insilmaril@0 | 34 |
void closeEvent( QCloseEvent* ); |
insilmaril@0 | 35 |
|
insilmaril@0 | 36 |
private: |
insilmaril@0 | 37 |
void setupFileActions(); |
insilmaril@0 | 38 |
void setupEditActions(); |
insilmaril@0 | 39 |
void setupFormatActions(); |
insilmaril@0 | 40 |
void setupViewActions(); |
insilmaril@0 | 41 |
void setupWindowActions(); |
insilmaril@0 | 42 |
void setupFlagActions(); |
insilmaril@0 | 43 |
void setupSettingsActions(); |
insilmaril@0 | 44 |
void setupTestActions(); |
insilmaril@0 | 45 |
void setupHelpActions(); |
insilmaril@0 | 46 |
void setupContextMenus(); |
insilmaril@0 | 47 |
void setupLastMapsMenu(); |
insilmaril@0 | 48 |
void hideEvent (QHideEvent * ); |
insilmaril@0 | 49 |
void showEvent (QShowEvent * ); |
insilmaril@0 | 50 |
bool reallyWriteDirectory(const QString&); |
insilmaril@0 | 51 |
QString browseDirectory(const QString&); |
insilmaril@0 | 52 |
MapEditor* currentMapEditor() const; |
insilmaril@0 | 53 |
|
insilmaril@0 | 54 |
private slots: |
insilmaril@0 | 55 |
void newView(); |
insilmaril@0 | 56 |
void editorChanged(QWidget*); |
insilmaril@0 | 57 |
|
insilmaril@0 | 58 |
void fileLoad(QString ,const LoadMode &); |
insilmaril@0 | 59 |
void fileLoad(const LoadMode &); |
insilmaril@0 | 60 |
void fileLoad(); |
insilmaril@0 | 61 |
void fileLoadLast(int); |
insilmaril@0 | 62 |
void fileSave(const SaveMode & ); |
insilmaril@0 | 63 |
void fileSave(); |
insilmaril@0 | 64 |
void fileSaveAs(const SaveMode &); |
insilmaril@0 | 65 |
void fileSaveAs(); |
insilmaril@0 | 66 |
void fileImportDir(); |
insilmaril@0 | 67 |
void fileExportXML(); |
insilmaril@0 | 68 |
void fileExportHTML(); |
insilmaril@0 | 69 |
void fileExportXHTML(); |
insilmaril@0 | 70 |
void fileExportImage(int); |
insilmaril@0 | 71 |
void fileExportASCII(); |
insilmaril@0 | 72 |
void fileCloseMap(); |
insilmaril@0 | 73 |
void filePrint(); |
insilmaril@0 | 74 |
void fileExitVYM(); |
insilmaril@0 | 75 |
|
insilmaril@0 | 76 |
void editUndo(); |
insilmaril@0 | 77 |
void editRedo(); |
insilmaril@0 | 78 |
void editCopy(); |
insilmaril@0 | 79 |
void editPaste(); |
insilmaril@0 | 80 |
void editCut(); |
insilmaril@0 | 81 |
void editOpenFindWindow(); |
insilmaril@0 | 82 |
void editFind(QString); |
insilmaril@0 | 83 |
void editFindChanged(); |
insilmaril@0 | 84 |
public slots: |
insilmaril@0 | 85 |
void editOpenURL(); |
insilmaril@0 | 86 |
private slots: |
insilmaril@0 | 87 |
void editURL(); |
insilmaril@0 | 88 |
void editHeading2URL(); |
insilmaril@0 | 89 |
void editBugzilla2URL(); |
insilmaril@0 | 90 |
void editVymLink(); |
insilmaril@0 | 91 |
public slots: |
insilmaril@0 | 92 |
void editOpenVymLink(); |
insilmaril@0 | 93 |
private slots: |
insilmaril@0 | 94 |
void editDeleteVymLink(); |
insilmaril@0 | 95 |
void editMapInfo(); |
insilmaril@0 | 96 |
void editMoveUp(); |
insilmaril@0 | 97 |
void editMoveDown(); |
insilmaril@0 | 98 |
void editToggleScroll(); |
insilmaril@0 | 99 |
void editUnScrollAll(); |
insilmaril@0 | 100 |
void editHeading(); |
insilmaril@0 | 101 |
void editNewBranch(); |
insilmaril@0 | 102 |
void editNewBranchAbove(); |
insilmaril@0 | 103 |
void editNewBranchBelow(); |
insilmaril@0 | 104 |
void editImportAdd(); |
insilmaril@0 | 105 |
void editImportReplace(); |
insilmaril@0 | 106 |
void editSaveBranch(); |
insilmaril@0 | 107 |
void editDeleteSelection(); |
insilmaril@0 | 108 |
void editUpperBranch(); |
insilmaril@0 | 109 |
void editLowerBranch(); |
insilmaril@0 | 110 |
void editLeftBranch(); |
insilmaril@0 | 111 |
void editRightBranch(); |
insilmaril@0 | 112 |
void editFirstBranch(); |
insilmaril@0 | 113 |
void editLastBranch(); |
insilmaril@0 | 114 |
void editLoadImage(); |
insilmaril@0 | 115 |
void editSaveImage(int); |
insilmaril@0 | 116 |
void editToggleFloatExport(); |
insilmaril@0 | 117 |
|
insilmaril@0 | 118 |
void formatSelectColor(); |
insilmaril@0 | 119 |
void formatPickColor(); |
insilmaril@0 | 120 |
void colorChanged(QColor); |
insilmaril@0 | 121 |
void formatColorItem(); |
insilmaril@0 | 122 |
void formatColorBranch(); |
insilmaril@0 | 123 |
void formatLinkStyleLine(); |
insilmaril@0 | 124 |
void formatLinkStyleParabel(); |
insilmaril@0 | 125 |
void formatLinkStylePolyLine(); |
insilmaril@0 | 126 |
void formatLinkStylePolyParabel(); |
insilmaril@0 | 127 |
void formatSelectBackColor(); |
insilmaril@0 | 128 |
void formatSelectLinkColor(); |
insilmaril@0 | 129 |
void formatToggleLinkColorHint(); |
insilmaril@0 | 130 |
void formatFrameNone(); |
insilmaril@0 | 131 |
void formatFrameRectangle(); |
insilmaril@0 | 132 |
|
insilmaril@0 | 133 |
void viewZoomReset(); |
insilmaril@0 | 134 |
void viewZoomIn(); |
insilmaril@0 | 135 |
void viewZoomOut(); |
insilmaril@0 | 136 |
|
insilmaril@0 | 137 |
public slots: |
insilmaril@0 | 138 |
bool settingsPDF(); |
insilmaril@0 | 139 |
bool settingsURL(); |
insilmaril@0 | 140 |
|
insilmaril@0 | 141 |
void windowToggleNoteEditor(); |
insilmaril@0 | 142 |
private slots: |
insilmaril@0 | 143 |
void windowNextEditor(); |
insilmaril@0 | 144 |
void windowPreviousEditor(); |
insilmaril@0 | 145 |
void windowShowNoteEditor(); |
insilmaril@0 | 146 |
void windowHideNoteEditor(); |
insilmaril@0 | 147 |
|
insilmaril@0 | 148 |
void standardFlagChanged(); |
insilmaril@0 | 149 |
|
insilmaril@0 | 150 |
void testFunction(); |
insilmaril@0 | 151 |
void testShowClipboard(); |
insilmaril@0 | 152 |
|
insilmaril@0 | 153 |
void helpDoc(); |
insilmaril@0 | 154 |
void helpAbout(); |
insilmaril@0 | 155 |
void helpAboutQT(); |
insilmaril@0 | 156 |
|
insilmaril@0 | 157 |
private: |
insilmaril@0 | 158 |
QCanvas* canvas; |
insilmaril@0 | 159 |
QTabWidget *tabWidget; |
insilmaril@0 | 160 |
FindWindow *findWindow; |
insilmaril@0 | 161 |
QStringList lastMaps; |
insilmaril@0 | 162 |
int maxLastMaps; |
insilmaril@0 | 163 |
QString lastFileDir; |
insilmaril@0 | 164 |
}; |
insilmaril@0 | 165 |
|
insilmaril@0 | 166 |
|
insilmaril@0 | 167 |
#endif |
insilmaril@0 | 168 |