~ubuntu-branches/debian/jessie/linpsk/jessie

« back to all changes in this revision

Viewing changes to linpsk/linpsk.h

  • Committer: Bazaar Package Importer
  • Author(s): Hamish Moffatt
  • Date: 2005-04-10 18:17:27 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20050410181727-3l9dnfg0sp7bhk13
Tags: 0.8.1-1
* New upstream release 0.8.1
  * Modified upstream configure.in to support FHS-compliant Qt
    installation! (ie /usr/include/qt3, not /usr/lib/qt3/include) :-(
  * Re-autotools with autoconf2.59 and automake-1.9
* linpsk is no longer a Debian-native package (dsc/tar.gz)
* Now maintained by the debian-hams group
* Switch to debhelper 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          linpsk.h  -  description
3
 
                             -------------------
4
 
    begin                : Sat Mar  4 22:29:25 /etc/localtime 2000
5
 
    copyright            : (C) 2000 by Volker Schroer
6
 
    email                : DL1KSV@gmx.de
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
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
 
 ***************************************************************************/
17
 
 
18
 
#ifndef LINPSK_H
19
 
#define LINPSK_H
20
 
 
21
 
// include files for QT
22
 
#include <qstring.h>
23
 
#include <qpopupmenu.h>
24
 
#include <qmainwindow.h>
25
 
#include <qaccel.h>
26
 
#include <qmenubar.h>
27
 
#include <qtoolbar.h>
28
 
#include <qpixmap.h>
29
 
#include <qtoolbutton.h>
30
 
#include <qapp.h>
31
 
#include <qstatusbar.h>
32
 
#include <qwhatsthis.h>
33
 
#include <qmsgbox.h>
34
 
#include <qfiledialog.h>
35
 
#include <qprinter.h>
36
 
#include <qpainter.h>
37
 
#include <qsplitter.h>
38
 
#include <qfontdialog.h>
39
 
#include <qcolordialog.h>
40
 
 
41
 
// application specific includes
42
 
#include "linpskview.h"
43
 
 
44
 
#include "resource.h"
45
 
#include "setup.h"
46
 
#include "editmacro.h"
47
 
#include "checkcom.h"
48
 
#include "crxselect.h"
49
 
 
50
 
 
51
 
/**
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.
56
 
  */
57
 
class LinPskApp : public QMainWindow
58
 
{
59
 
  Q_OBJECT
60
 
  
61
 
  public:
62
 
    /** construtor */
63
 
    LinPskApp();
64
 
    /** destructor */
65
 
    ~LinPskApp();
66
 
    /** initMenuBar creates the menu_bar and inserts the menuitems */
67
 
    void initMenuBar();
68
 
 
69
 
    /** setup the mainview*/
70
 
    void initView();
71
 
  
72
 
    /** overloaded for Message box on last window exit */
73
 
 
74
 
    // Starting with window components
75
 
 
76
 
 
77
 
  public slots:
78
 
  
79
 
    /** switch argument for Statusbar help entries on slot selection */
80
 
    void statusCallback(int id_);
81
 
    /** open a DemoFile */
82
 
    void slotFileOpen();
83
 
    /** exits the application */
84
 
    void slotFileQuit();
85
 
 
86
 
                /** DemoMode */
87
 
                void slotSetup();
88
 
                void sloteditMacros();
89
 
                void slotsaveSettings();
90
 
                
91
 
  
92
 
    /** shows an about dlg*/
93
 
    void slotHelpAbout();
94
 
  
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();
110
 
 
111
 
protected:
112
 
        void RxWindowColor(int);
113
 
signals:
114
 
void ButtonNameChanged();
115
 
  
116
 
  private:
117
 
 
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.
122
 
     */
123
 
    LinPskView *view;
124
 
 
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
134
 
                        in qt 2.2.0 */
135
 
        QString SaveText;
136
 
        QTimer *statusTime;
137
 
};
138
 
#endif 
139