1.1 --- a/mainwindow.h Tue Sep 05 09:47:14 2006 +0000
1.2 +++ b/mainwindow.h Mon Oct 16 12:42:54 2006 +0000
1.3 @@ -1,16 +1,7 @@
1.4 #ifndef MAINWINDOW_H
1.5 #define MAINWINDOW_H
1.6
1.7 -#include <QAction>
1.8 -#include <QCursor>
1.9 #include <QMainWindow>
1.10 -#include <QProcess>
1.11 -#include <QToolBar>
1.12 -#include <QTabWidget>
1.13 -//Added by qt3to4:
1.14 -#include <QCloseEvent>
1.15 -#include <QShowEvent>
1.16 -#include <QHideEvent>
1.17
1.18 #include "file.h"
1.19 #include "findwindow.h"
1.20 @@ -18,6 +9,8 @@
1.21 #include "texteditor.h"
1.22 #include "xml.h"
1.23
1.24 +enum ModMode {ModModeNone,ModModeColor,ModModeCopy,ModModeXLink};
1.25 +
1.26 class Main : public QMainWindow
1.27 {
1.28 Q_OBJECT
1.29 @@ -157,9 +150,6 @@
1.30 void viewZoomIn();
1.31 void viewZoomOut();
1.32
1.33 - void modModeColor();
1.34 - void modModeLink();
1.35 -
1.36 public slots:
1.37 bool settingsPDF();
1.38 bool settingsURL();
1.39 @@ -168,6 +158,11 @@
1.40 void windowToggleNoteEditor();
1.41 void windowToggleHistory();
1.42 void updateNoteFlag();
1.43 + void updateActions();
1.44 + ModMode getModMode();
1.45 + bool autoEdit();
1.46 + bool autoSelectHeading();
1.47 + bool useFlagGroups();
1.48
1.49 private slots:
1.50 void windowNextEditor();
1.51 @@ -194,7 +189,82 @@
1.52
1.53 QLineEdit *lineedit; // to enter headings of branches
1.54 QString editSel;
1.55 -
1.56 +
1.57 + Q3PtrList <QAction> actionListBranches;
1.58 +
1.59 + QAction* actionFileSave;
1.60 + QAction* actionFilePrint;
1.61 + QAction* actionEditUndo;
1.62 + QAction* actionEditRedo;
1.63 + QAction *actionEditCopy;
1.64 + QAction *actionEditCut;
1.65 + QAction *actionEditPaste;
1.66 + QAction *actionEditMoveUp;
1.67 + QAction *actionEditMoveDown;
1.68 + QAction *actionEditToggleScroll;
1.69 + QAction* actionEditOpenURL;
1.70 + QAction* actionEditOpenURLTab;
1.71 + QAction* actionEditOpenMultipleURLTabs;
1.72 + QAction* actionEditURL;
1.73 + QAction* actionEditHeading2URL;
1.74 + QAction* actionEditBugzilla2URL;
1.75 + QAction* actionEditFATE2URL;
1.76 + QAction *actionEditOpenVymLink;
1.77 + QAction *actionEditOpenMultipleVymLinks;
1.78 + QAction *actionEditVymLink;
1.79 + QAction *actionEditDeleteVymLink;
1.80 + QAction *actionEditToggleHideExport;
1.81 + QAction *actionEditMapInfo;
1.82 + QAction *actionEditHeading;
1.83 + QAction *actionEditDelete;
1.84 + QAction *actionEditAddBranch;
1.85 + QAction *actionEditAddBranchHere;
1.86 + QAction *actionEditAddBranchAbove;
1.87 + QAction *actionEditAddBranchBelow;
1.88 + QAction *actionEditRemoveBranchKeepChilds;
1.89 + QAction *actionEditRemoveChilds;
1.90 + QAction *actionEditImportAdd;
1.91 + QAction *actionEditImportReplace;
1.92 + QAction *actionEditSaveBranch;
1.93 + QAction *actionEditSelectFirst;
1.94 + QAction *actionEditSelectLast;
1.95 + QAction *actionEditLoadImage;
1.96 +
1.97 + QAction* actionFormatColor;
1.98 + QAction* actionFormatPickColor;
1.99 + QAction* actionFormatColorBranch;
1.100 + QAction* actionFormatColorSubtree;
1.101 + QAction* actionFormatLinkColorHint;
1.102 + QAction* actionFormatBackColor;
1.103 + QAction* actionFormatLinkColor;
1.104 + QAction *actionFormatIncludeImagesVer;
1.105 + QAction *actionFormatIncludeImagesHor;
1.106 +
1.107 + QActionGroup* actionGroupModModes;
1.108 + QAction* actionModModeColor;
1.109 + QAction* actionModModeXLink;
1.110 + QAction* actionModModeCopy;
1.111 +
1.112 + QActionGroup *actionGroupFormatFrameTypes;
1.113 + QAction *actionFormatFrameNone;
1.114 + QAction *actionFormatFrameRectangle;
1.115 +
1.116 + QActionGroup *actionGroupFormatLinkStyles;
1.117 + QAction *actionFormatLinkStyleLine;
1.118 + QAction *actionFormatLinkStyleParabel;
1.119 + QAction *actionFormatLinkStylePolyLine;
1.120 + QAction *actionFormatLinkStylePolyParabel;
1.121 + QAction *actionFormatHideLinkUnselected;
1.122 +
1.123 + QAction *actionViewToggleNoteEditor;
1.124 + QAction *actionViewToggleHistoryWindow;
1.125 +
1.126 + QAction* actionSettingsAutoEdit;
1.127 + QAction* actionSettingsAutoSelectHeading;
1.128 + QAction* actionSettingsAutoSelectText;
1.129 + QAction* actionSettingsUseDelKey;
1.130 + QAction* actionSettingsUseFlagGroups;
1.131 + QAction* actionSettingsUseHideExport;
1.132 };
1.133
1.134