1 /***************************************************************************
4 begin : mån okt 23 17:11:28 CEST 2000
5 copyright : (C) 2000 by Michael Andreen
8 ***************************************************************************/
10 /***************************************************************************
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
17 ***************************************************************************/
22 // include files for QT
24 #include <qpopupmenu.h>
25 #include <qmainwindow.h>
30 #include <qtoolbutton.h>
32 #include <qstatusbar.h>
33 #include <qwhatsthis.h>
35 #include <qfiledialog.h>
39 // application specific includes
40 #include "eonslview.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 EonSLView is
48 * created which creates your view.
50 class EonSL : public QMainWindow
59 /** initMenuBar creates the menu_bar and inserts the menuitems */
61 /** this creates the toolbars. Change the toobar look and add new toolbars in this
64 /** setup the statusbar */
66 /** setup the document*/
68 /** setup the mainview*/
71 /** overloaded for Message box on last window exit */
76 /** switch argument for Statusbar help entries on slot selection */
77 void statusCallback(int id_);
78 /** open a new application window */
80 /** generate a new document in the actual view */
82 /** open a document */
84 /** save a document */
86 /** save a document under a different filename*/
87 void slotFileSaveAs();
88 /** close the actual file */
90 /** print the actual file */
92 /** exits the application */
94 /** put the marked text/object into the clipboard and remove
95 * it from the document */
97 /** put the marked text/object into the clipboard*/
99 /** paste the clipboard into the document*/
100 void slotEditPaste();
101 /** toggle the toolbar*/
102 void slotViewToolBar();
103 /** toggle the statusbar*/
104 void slotViewStatusBar();
106 /** shows an about dlg*/
107 void slotHelpAbout();
109 /** change the status message of the whole statusbar temporary */
110 void slotStatusHelpMsg(const QString &text);
114 /** view is the main widget which represents your working area. The View
115 * class should handle all events of the view widget. It is kept empty so
116 * you can create your view according to your application's needs by
117 * changing the view class.
120 /** doc represents your actual document and is created only once. It keeps
121 * information such as filename and does the serialization of your files.
125 /** file_menu contains all items of the menubar entry "File" */
126 QPopupMenu *fileMenu;
127 /** edit_menu contains all items of the menubar entry "Edit" */
128 QPopupMenu *editMenu;
129 /** view_menu contains all items of the menubar entry "View" */
130 QPopupMenu *viewMenu;
131 /** view_menu contains all items of the menubar entry "Help" */
132 QPopupMenu *helpMenu;
134 QToolBar *fileToolbar;