1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/mainwindow.h Mon Oct 06 12:28:25 2008 +0000
1.3 @@ -0,0 +1,168 @@
1.4 +#ifndef MAINWINDOW_H
1.5 +#define MAINWINDOW_H
1.6 +
1.7 +#include <qpopupmenu.h>
1.8 +#include <qmainwindow.h>
1.9 +#include <qtextedit.h>
1.10 +#include <qintdict.h>
1.11 +#include <qcanvas.h>
1.12 +#include <qlineedit.h>
1.13 +#include <qaction.h>
1.14 +#include <qcursor.h>
1.15 +#include <qtabwidget.h>
1.16 +#include <qmap.h>
1.17 +
1.18 +#include "xml.h"
1.19 +#include "texteditor.h"
1.20 +#include "mapeditor.h"
1.21 +#include "findwindow.h"
1.22 +
1.23 +class Main : public QMainWindow
1.24 +{
1.25 + Q_OBJECT
1.26 +
1.27 +public:
1.28 + Main(QWidget* parent=0, const char* name=0, WFlags f=0);
1.29 + ~Main();
1.30 + void loadCmdLine();
1.31 + void statusMessage (const QString &);
1.32 +
1.33 +public slots:
1.34 + void fileNew();
1.35 +
1.36 +protected:
1.37 + void closeEvent( QCloseEvent* );
1.38 +
1.39 +private:
1.40 + void setupFileActions();
1.41 + void setupEditActions();
1.42 + void setupFormatActions();
1.43 + void setupViewActions();
1.44 + void setupWindowActions();
1.45 + void setupFlagActions();
1.46 + void setupSettingsActions();
1.47 + void setupTestActions();
1.48 + void setupHelpActions();
1.49 + void setupContextMenus();
1.50 + void setupLastMapsMenu();
1.51 + void hideEvent (QHideEvent * );
1.52 + void showEvent (QShowEvent * );
1.53 + bool reallyWriteDirectory(const QString&);
1.54 + QString browseDirectory(const QString&);
1.55 + MapEditor* currentMapEditor() const;
1.56 +
1.57 +private slots:
1.58 + void newView();
1.59 + void editorChanged(QWidget*);
1.60 +
1.61 + void fileLoad(QString ,const LoadMode &);
1.62 + void fileLoad(const LoadMode &);
1.63 + void fileLoad();
1.64 + void fileLoadLast(int);
1.65 + void fileSave(const SaveMode & );
1.66 + void fileSave();
1.67 + void fileSaveAs(const SaveMode &);
1.68 + void fileSaveAs();
1.69 + void fileImportDir();
1.70 + void fileExportXML();
1.71 + void fileExportHTML();
1.72 + void fileExportXHTML();
1.73 + void fileExportImage(int);
1.74 + void fileExportASCII();
1.75 + void fileCloseMap();
1.76 + void filePrint();
1.77 + void fileExitVYM();
1.78 +
1.79 + void editUndo();
1.80 + void editRedo();
1.81 + void editCopy();
1.82 + void editPaste();
1.83 + void editCut();
1.84 + void editOpenFindWindow();
1.85 + void editFind(QString);
1.86 + void editFindChanged();
1.87 +public slots:
1.88 + void editOpenURL();
1.89 +private slots:
1.90 + void editURL();
1.91 + void editHeading2URL();
1.92 + void editBugzilla2URL();
1.93 + void editVymLink();
1.94 +public slots:
1.95 + void editOpenVymLink();
1.96 +private slots:
1.97 + void editDeleteVymLink();
1.98 + void editMapInfo();
1.99 + void editMoveUp();
1.100 + void editMoveDown();
1.101 + void editToggleScroll();
1.102 + void editUnScrollAll();
1.103 + void editHeading();
1.104 + void editNewBranch();
1.105 + void editNewBranchAbove();
1.106 + void editNewBranchBelow();
1.107 + void editImportAdd();
1.108 + void editImportReplace();
1.109 + void editSaveBranch();
1.110 + void editDeleteSelection();
1.111 + void editUpperBranch();
1.112 + void editLowerBranch();
1.113 + void editLeftBranch();
1.114 + void editRightBranch();
1.115 + void editFirstBranch();
1.116 + void editLastBranch();
1.117 + void editLoadImage();
1.118 + void editSaveImage(int);
1.119 + void editToggleFloatExport();
1.120 +
1.121 + void formatSelectColor();
1.122 + void formatPickColor();
1.123 + void colorChanged(QColor);
1.124 + void formatColorItem();
1.125 + void formatColorBranch();
1.126 + void formatLinkStyleLine();
1.127 + void formatLinkStyleParabel();
1.128 + void formatLinkStylePolyLine();
1.129 + void formatLinkStylePolyParabel();
1.130 + void formatSelectBackColor();
1.131 + void formatSelectLinkColor();
1.132 + void formatToggleLinkColorHint();
1.133 + void formatFrameNone();
1.134 + void formatFrameRectangle();
1.135 +
1.136 + void viewZoomReset();
1.137 + void viewZoomIn();
1.138 + void viewZoomOut();
1.139 +
1.140 +public slots:
1.141 + bool settingsPDF();
1.142 + bool settingsURL();
1.143 +
1.144 + void windowToggleNoteEditor();
1.145 +private slots:
1.146 + void windowNextEditor();
1.147 + void windowPreviousEditor();
1.148 + void windowShowNoteEditor();
1.149 + void windowHideNoteEditor();
1.150 +
1.151 + void standardFlagChanged();
1.152 +
1.153 + void testFunction();
1.154 + void testShowClipboard();
1.155 +
1.156 + void helpDoc();
1.157 + void helpAbout();
1.158 + void helpAboutQT();
1.159 +
1.160 +private:
1.161 + QCanvas* canvas;
1.162 + QTabWidget *tabWidget;
1.163 + FindWindow *findWindow;
1.164 + QStringList lastMaps;
1.165 + int maxLastMaps;
1.166 + QString lastFileDir;
1.167 +};
1.168 +
1.169 +
1.170 +#endif
1.171 +