1
/***************************************************************************
4
begin : Sat Mar 4 22:29:25 /etc/localtime 2000
5
copyright : (C) 2000 by Volker Schroer
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. *
15
* The psk part is based on the work of Moe Wheatley, AE4JY *
16
***************************************************************************/
21
// include files for QT
23
#include <qpopupmenu.h>
24
#include <qmainwindow.h>
29
#include <qtoolbutton.h>
31
#include <qstatusbar.h>
32
#include <qwhatsthis.h>
34
#include <qfiledialog.h>
37
#include <qsplitter.h>
38
#include <qfontdialog.h>
39
#include <qcolordialog.h>
41
// application specific includes
42
#include "linpskview.h"
46
#include "editmacro.h"
48
#include "crxselect.h"
52
* This Class is the base class for your application. It sets up the main
53
* window and providing a menubar, toolbar
54
* and statusbar. For the main view, an instance of class LinPskView is
55
* created which creates your view.
57
class LinPskApp : public QMainWindow
66
/** initMenuBar creates the menu_bar and inserts the menuitems */
69
/** setup the mainview*/
72
/** overloaded for Message box on last window exit */
74
// Starting with window components
79
/** switch argument for Statusbar help entries on slot selection */
80
void statusCallback(int id_);
81
/** open a DemoFile */
83
/** exits the application */
88
void sloteditMacros();
89
void slotsaveSettings();
92
/** shows an about dlg*/
95
/** change the status message of the whole statusbar temporary */
96
void slotStatusHelpMsg(const QString &text);
97
void restoreStatusLine();
98
/** Setting up the different Fonts for the windows */
99
void slotFontSetup(void);
100
/** Selecting RX/TX fonts */
101
void slotRxFontSetup();
102
void slotTxFontSetup();
103
/** Setup the four different window Colors */
104
void slotColorSetup();
105
/** Select Color for Window 1-4 */
106
void RxWindowColor0();
107
void RxWindowColor1();
108
void RxWindowColor2();
109
void RxWindowColor3();
112
void RxWindowColor(int);
114
void ButtonNameChanged();
118
/** view is the main widget which represents your working area. The View
119
* class should handle all events of the view widget. It is kept empty so
120
* you can create your view according to your application's needs by
121
* changing the view class.
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
/** Menu contains the Settings */
130
QPopupMenu *settingsMenu;
131
/** Menu contains all items of the menubar entry "Help" */
132
QPopupMenu *helpMenu;
133
/** String for saving Statusmessage, to avoid problems with statusbar()->message function