File: mainwindow.h

package info (click to toggle)
vym 1.8.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,000 kB
  • ctags: 1,599
  • sloc: cpp: 14,723; sh: 373; xml: 277; perl: 89; makefile: 16
file content (193 lines) | stat: -rw-r--r-- 4,472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#ifndef MAINWINDOW_H 
#define MAINWINDOW_H

#include <qpopupmenu.h>
#include <qmainwindow.h>
#include <qtextedit.h>
#include <qintdict.h>
#include <qcanvas.h>
#include <qlineedit.h>
#include <qaction.h>
#include <qcursor.h>
#include <qtabwidget.h>
#include <qmap.h>

#include "file.h"
#include "findwindow.h"
#include "mapeditor.h"
#include "texteditor.h"
#include "xml.h"

class Main : public QMainWindow 
{
    Q_OBJECT

public:
    Main(QWidget* parent=0, const char* name=0, WFlags f=0);
    ~Main();
	void loadCmdLine();
	void statusMessage (const QString &);

public slots:
    void fileNew();

protected:
	void closeEvent( QCloseEvent* );

private:
    void setupFileActions();
    void setupEditActions();
    void setupFormatActions();
    void setupViewActions();
    void setupModeActions();
    void setupWindowActions();
    void setupFlagActions();
    void setupSettingsActions();
    void setupTestActions();
    void setupHelpActions();
    void setupContextMenus();
	void setupLastMapsMenu();
	void hideEvent (QHideEvent * );
	void showEvent (QShowEvent * );
	bool reallyWriteDirectory(const QString&);
	QString browseDirectory(const QString&);
	MapEditor* currentMapEditor() const;
    
private slots:
    void newView();
	void editorChanged(QWidget*);

    ErrorCode fileLoad(QString ,const LoadMode &);
    void fileLoad(const LoadMode &);
    void fileLoad();
	void fileLoadLast(int);
    void fileSave(const SaveMode & );
    void fileSave();
    void fileSaveAs(const SaveMode &);
    void fileSaveAs();
    void fileImportKDEBookmarks();
    void fileImportFirefoxBookmarks();
    void fileImportMM();
    void fileImportDir();
    void fileExportXML();
    void fileExportXHTML();
    void fileExportImage(int);
    void fileExportASCII();
    void fileExportLaTeX();
    void fileExportKDEBookmarks();
    void fileExportTaskjuggler();
    void fileExportOOPresentation();
    void fileCloseMap();
    void filePrint();
    void fileExitVYM();

    void editUndo();	
    void editRedo();	
    void editCopy();	
    void editPaste();	
    void editCut();	
    void editOpenFindWindow();
	void editFind(QString);
	void editFindChanged();
public slots:
	void editOpenURL();
	void editOpenURLTab();
private slots:
	void editURL();
	void editHeading2URL();
	void editBugzilla2URL();
	void editFATE2URL();
	void editVymLink();
public slots:
	void editOpenVymLink();
private slots:
	void editDeleteVymLink();
	void editToggleHideExport();
	void editMapInfo();
    void editMoveUp();	
    void editMoveDown();	
    void editToggleScroll();
    void editUnScrollAll();
    void editHeading();
    void editNewBranch();
    void editNewBranchHere();
    void editNewBranchAbove();
    void editNewBranchBelow();
    void editImportAdd();
    void editImportReplace();
    void editSaveBranch();
    void editRemoveBranchKeepChilds();
    void editRemoveChilds();
    void editDeleteSelection();
    void editUpperBranch();
    void editLowerBranch();
    void editLeftBranch();
    void editRightBranch();
    void editFirstBranch();
    void editLastBranch();
    void editLoadImage();
    void editSaveImage(int);
    void editFollowXLink (int);
    void editEditXLink (int);

    void formatSelectColor();
    void formatPickColor();
    void colorChanged(QColor);
    void formatColorItem();
    void formatColorBranch();
	void formatLinkStyleLine();
	void formatLinkStyleParabel();
	void formatLinkStylePolyLine();
	void formatLinkStylePolyParabel();
    void formatSelectBackColor();
    void formatSelectLinkColor();
    void formatToggleLinkColorHint();
	void formatFrameNone();
	void formatFrameRectangle();
	void formatIncludeImagesVer();
	void formatIncludeImagesHor();
	void formatHideLinkUnselected();

    void viewZoomReset();
    void viewZoomIn();
    void viewZoomOut();

	void modModeColor();
	void modModeLink();

public slots:
	bool settingsPDF();
	bool settingsURL();
	void settingsToggleDelKey();

	void windowToggleNoteEditor();
	void windowToggleHistory();
	void updateNoteFlag();

private slots:
	void windowNextEditor();
	void windowPreviousEditor();
	void windowShowNoteEditor();
	void windowHideNoteEditor();

	void standardFlagChanged();

    void testFunction();

    void helpDoc();
    void helpAbout();
    void helpAboutQT();

private:
// not needed?    QCanvas* canvas;
	QTabWidget *tabWidget;
	FindWindow *findWindow;
	QStringList lastMaps;
	int maxLastMaps;
	QString lastFileDir;
	QProcess *procBrowser;
};


#endif