1
/***************************************************************************
4
begin : Mon Feb 18 09:48:17 CET 2002
5
copyright : (C) 2002 by Tue and Ken Haste Andersen
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
21
// include files for QT
23
#include <qmainwindow.h>
26
#include <qpopupmenu.h>
28
#include <qtoolbutton.h>
29
#include <qstatusbar.h>
30
#include <qwhatsthis.h>
34
#include <qfiledialog.h>
38
// application specific includes
39
#include "mixxxview.h"
41
#include "enginebuffer.h"
43
#include "midiobject.h"
45
* This Class is the base class for your application. It sets up the main
46
* window and providing a menubar, toolbar
47
* and statusbar. For the main view, an instance of class MixxxView is
48
* created which creates your view.
50
class MixxxApp : public QMainWindow
59
/** initializes all QActions of the application */
61
/** initMenuBar creates the menu_bar and inserts the menuitems */
63
/** this creates the toolbars. Change the toobar look and add new toolbars in this
66
/** setup the statusbar */
68
/** setup the document*/
70
/** setup the mainview*/
73
/** overloaded for Message box on last window exit */
78
/** generate a new document in the actual view */
80
/** open a document */
82
/** save a document */
84
/** save a document under a different filename*/
85
void slotFileSaveAs();
86
/** close the actual file */
88
/** print the actual file */
90
/** exits the application */
92
/** put the marked text/object into the clipboard and remove
93
* it from the document */
95
/** put the marked text/object into the clipboard*/
97
/** paste the clipboard into the document*/
99
/** toggle the toolbar*/
100
void slotViewToolBar(bool toggle);
101
/** toggle the statusbar*/
102
void slotViewStatusBar(bool toggle);
104
/** shows an about dlg*/
105
void slotHelpAbout();
110
/** view is the main widget which represents your working area. The View
111
* class should handle all events of the view widget. It is kept empty so
112
* you can create your view according to your application's needs by
113
* changing the view class.
116
/** doc represents your actual document and is created only once. It keeps
117
* information such as filename and does the serialization of your files.
120
EngineBuffer *buffer;
124
/** file_menu contains all items of the menubar entry "File" */
125
QPopupMenu *fileMenu;
126
/** edit_menu contains all items of the menubar entry "Edit" */
127
QPopupMenu *editMenu;
128
/** view_menu contains all items of the menubar entry "View" */
129
QPopupMenu *viewMenu;
130
/** view_menu contains all items of the menubar entry "Help" */
131
QPopupMenu *helpMenu;
132
/** the main toolbar */
133
QToolBar *fileToolbar;
134
/** actions for the application initialized in initActions() and used to en/disable them
135
* according to your needs during the program */
148
QAction *viewToolBar;
149
QAction *viewStatusBar;
151
QAction *helpAboutApp;