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