author | insilmaril |
Thu Jul 27 15:13:16 2006 +0000 (2006-07-27) | |
changeset 359 | 343d55383450 |
parent 314 | 549bb67a8ab2 |
child 366 | e95081c21da2 |
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@175 | 15 |
#include "file.h" |
insilmaril@175 | 16 |
#include "findwindow.h" |
insilmaril@175 | 17 |
#include "mapeditor.h" |
insilmaril@175 | 18 |
#include "texteditor.h" |
insilmaril@0 | 19 |
#include "xml.h" |
insilmaril@0 | 20 |
|
insilmaril@0 | 21 |
class Main : public QMainWindow |
insilmaril@0 | 22 |
{ |
insilmaril@0 | 23 |
Q_OBJECT |
insilmaril@0 | 24 |
|
insilmaril@0 | 25 |
public: |
insilmaril@0 | 26 |
Main(QWidget* parent=0, const char* name=0, WFlags f=0); |
insilmaril@0 | 27 |
~Main(); |
insilmaril@0 | 28 |
void loadCmdLine(); |
insilmaril@0 | 29 |
void statusMessage (const QString &); |
insilmaril@0 | 30 |
|
insilmaril@0 | 31 |
public slots: |
insilmaril@0 | 32 |
void fileNew(); |
insilmaril@0 | 33 |
|
insilmaril@0 | 34 |
protected: |
insilmaril@0 | 35 |
void closeEvent( QCloseEvent* ); |
insilmaril@0 | 36 |
|
insilmaril@0 | 37 |
private: |
insilmaril@0 | 38 |
void setupFileActions(); |
insilmaril@0 | 39 |
void setupEditActions(); |
insilmaril@0 | 40 |
void setupFormatActions(); |
insilmaril@0 | 41 |
void setupViewActions(); |
insilmaril@89 | 42 |
void setupModeActions(); |
insilmaril@0 | 43 |
void setupWindowActions(); |
insilmaril@0 | 44 |
void setupFlagActions(); |
insilmaril@0 | 45 |
void setupSettingsActions(); |
insilmaril@0 | 46 |
void setupTestActions(); |
insilmaril@0 | 47 |
void setupHelpActions(); |
insilmaril@0 | 48 |
void setupContextMenus(); |
insilmaril@0 | 49 |
void setupLastMapsMenu(); |
insilmaril@0 | 50 |
void hideEvent (QHideEvent * ); |
insilmaril@0 | 51 |
void showEvent (QShowEvent * ); |
insilmaril@0 | 52 |
bool reallyWriteDirectory(const QString&); |
insilmaril@0 | 53 |
QString browseDirectory(const QString&); |
insilmaril@0 | 54 |
MapEditor* currentMapEditor() const; |
insilmaril@0 | 55 |
|
insilmaril@0 | 56 |
private slots: |
insilmaril@0 | 57 |
void newView(); |
insilmaril@0 | 58 |
void editorChanged(QWidget*); |
insilmaril@0 | 59 |
|
insilmaril@205 | 60 |
ErrorCode fileLoad(QString ,const LoadMode &); |
insilmaril@0 | 61 |
void fileLoad(const LoadMode &); |
insilmaril@0 | 62 |
void fileLoad(); |
insilmaril@0 | 63 |
void fileLoadLast(int); |
insilmaril@0 | 64 |
void fileSave(const SaveMode & ); |
insilmaril@0 | 65 |
void fileSave(); |
insilmaril@0 | 66 |
void fileSaveAs(const SaveMode &); |
insilmaril@0 | 67 |
void fileSaveAs(); |
insilmaril@215 | 68 |
void fileImportKDEBookmarks(); |
insilmaril@314 | 69 |
void fileImportFirefoxBookmarks(); |
insilmaril@215 | 70 |
void fileImportMM(); |
insilmaril@0 | 71 |
void fileImportDir(); |
insilmaril@0 | 72 |
void fileExportXML(); |
insilmaril@0 | 73 |
void fileExportXHTML(); |
insilmaril@0 | 74 |
void fileExportImage(int); |
insilmaril@0 | 75 |
void fileExportASCII(); |
insilmaril@163 | 76 |
void fileExportLaTeX(); |
insilmaril@243 | 77 |
void fileExportKDEBookmarks(); |
insilmaril@228 | 78 |
void fileExportTaskjuggler(); |
insilmaril@163 | 79 |
void fileExportOOPresentation(); |
insilmaril@0 | 80 |
void fileCloseMap(); |
insilmaril@0 | 81 |
void filePrint(); |
insilmaril@0 | 82 |
void fileExitVYM(); |
insilmaril@0 | 83 |
|
insilmaril@0 | 84 |
void editUndo(); |
insilmaril@0 | 85 |
void editRedo(); |
insilmaril@0 | 86 |
void editCopy(); |
insilmaril@0 | 87 |
void editPaste(); |
insilmaril@0 | 88 |
void editCut(); |
insilmaril@0 | 89 |
void editOpenFindWindow(); |
insilmaril@0 | 90 |
void editFind(QString); |
insilmaril@0 | 91 |
void editFindChanged(); |
insilmaril@0 | 92 |
public slots: |
insilmaril@0 | 93 |
void editOpenURL(); |
insilmaril@266 | 94 |
void editOpenURLTab(); |
insilmaril@0 | 95 |
private slots: |
insilmaril@0 | 96 |
void editURL(); |
insilmaril@0 | 97 |
void editHeading2URL(); |
insilmaril@0 | 98 |
void editBugzilla2URL(); |
insilmaril@175 | 99 |
void editFATE2URL(); |
insilmaril@0 | 100 |
void editVymLink(); |
insilmaril@0 | 101 |
public slots: |
insilmaril@0 | 102 |
void editOpenVymLink(); |
insilmaril@0 | 103 |
private slots: |
insilmaril@0 | 104 |
void editDeleteVymLink(); |
insilmaril@243 | 105 |
void editToggleHideExport(); |
insilmaril@0 | 106 |
void editMapInfo(); |
insilmaril@0 | 107 |
void editMoveUp(); |
insilmaril@0 | 108 |
void editMoveDown(); |
insilmaril@0 | 109 |
void editToggleScroll(); |
insilmaril@0 | 110 |
void editUnScrollAll(); |
insilmaril@0 | 111 |
void editHeading(); |
insilmaril@0 | 112 |
void editNewBranch(); |
insilmaril@98 | 113 |
void editNewBranchHere(); |
insilmaril@0 | 114 |
void editNewBranchAbove(); |
insilmaril@0 | 115 |
void editNewBranchBelow(); |
insilmaril@0 | 116 |
void editImportAdd(); |
insilmaril@0 | 117 |
void editImportReplace(); |
insilmaril@0 | 118 |
void editSaveBranch(); |
insilmaril@294 | 119 |
void editRemoveBranchKeepChilds(); |
insilmaril@98 | 120 |
void editRemoveChilds(); |
insilmaril@0 | 121 |
void editDeleteSelection(); |
insilmaril@0 | 122 |
void editUpperBranch(); |
insilmaril@0 | 123 |
void editLowerBranch(); |
insilmaril@0 | 124 |
void editLeftBranch(); |
insilmaril@0 | 125 |
void editRightBranch(); |
insilmaril@0 | 126 |
void editFirstBranch(); |
insilmaril@0 | 127 |
void editLastBranch(); |
insilmaril@0 | 128 |
void editLoadImage(); |
insilmaril@0 | 129 |
void editSaveImage(int); |
insilmaril@95 | 130 |
void editFollowXLink (int); |
insilmaril@95 | 131 |
void editEditXLink (int); |
insilmaril@0 | 132 |
|
insilmaril@0 | 133 |
void formatSelectColor(); |
insilmaril@0 | 134 |
void formatPickColor(); |
insilmaril@0 | 135 |
void colorChanged(QColor); |
insilmaril@0 | 136 |
void formatColorItem(); |
insilmaril@0 | 137 |
void formatColorBranch(); |
insilmaril@0 | 138 |
void formatLinkStyleLine(); |
insilmaril@0 | 139 |
void formatLinkStyleParabel(); |
insilmaril@0 | 140 |
void formatLinkStylePolyLine(); |
insilmaril@0 | 141 |
void formatLinkStylePolyParabel(); |
insilmaril@0 | 142 |
void formatSelectBackColor(); |
insilmaril@0 | 143 |
void formatSelectLinkColor(); |
insilmaril@0 | 144 |
void formatToggleLinkColorHint(); |
insilmaril@0 | 145 |
void formatFrameNone(); |
insilmaril@0 | 146 |
void formatFrameRectangle(); |
insilmaril@175 | 147 |
void formatIncludeImagesVer(); |
insilmaril@175 | 148 |
void formatIncludeImagesHor(); |
insilmaril@160 | 149 |
void formatHideLinkUnselected(); |
insilmaril@0 | 150 |
|
insilmaril@0 | 151 |
void viewZoomReset(); |
insilmaril@0 | 152 |
void viewZoomIn(); |
insilmaril@0 | 153 |
void viewZoomOut(); |
insilmaril@0 | 154 |
|
insilmaril@89 | 155 |
void modModeColor(); |
insilmaril@89 | 156 |
void modModeLink(); |
insilmaril@89 | 157 |
|
insilmaril@0 | 158 |
public slots: |
insilmaril@0 | 159 |
bool settingsPDF(); |
insilmaril@0 | 160 |
bool settingsURL(); |
insilmaril@328 | 161 |
void settingsToggleDelKey(); |
insilmaril@0 | 162 |
|
insilmaril@0 | 163 |
void windowToggleNoteEditor(); |
insilmaril@294 | 164 |
void windowToggleHistory(); |
insilmaril@160 | 165 |
void updateNoteFlag(); |
insilmaril@160 | 166 |
|
insilmaril@0 | 167 |
private slots: |
insilmaril@0 | 168 |
void windowNextEditor(); |
insilmaril@0 | 169 |
void windowPreviousEditor(); |
insilmaril@0 | 170 |
void windowShowNoteEditor(); |
insilmaril@0 | 171 |
void windowHideNoteEditor(); |
insilmaril@0 | 172 |
|
insilmaril@0 | 173 |
void standardFlagChanged(); |
insilmaril@0 | 174 |
|
insilmaril@0 | 175 |
void testFunction(); |
insilmaril@0 | 176 |
|
insilmaril@0 | 177 |
void helpDoc(); |
insilmaril@0 | 178 |
void helpAbout(); |
insilmaril@0 | 179 |
void helpAboutQT(); |
insilmaril@0 | 180 |
|
insilmaril@0 | 181 |
private: |
insilmaril@266 | 182 |
// not needed? QCanvas* canvas; |
insilmaril@0 | 183 |
QTabWidget *tabWidget; |
insilmaril@0 | 184 |
FindWindow *findWindow; |
insilmaril@0 | 185 |
QStringList lastMaps; |
insilmaril@0 | 186 |
int maxLastMaps; |
insilmaril@0 | 187 |
QString lastFileDir; |
insilmaril@266 | 188 |
QProcess *procBrowser; |
insilmaril@0 | 189 |
}; |
insilmaril@0 | 190 |
|
insilmaril@0 | 191 |
|
insilmaril@0 | 192 |
#endif |
insilmaril@0 | 193 |