Main Page   Class Hierarchy   Compound List   File List   Compound Members  

mainprogram.h

00001 // $Id: mainprogram.h,v 1.0 2003/01/03 15:10:09 root Exp $ 
00002 #ifndef _MAINPROGRAM_H
00003 #define _MAINPROGRAM_H
00004 
00005 #include <qmainwindow.h>
00006 #include "midobasic.h"
00007 #include "midobuffer.h"
00008 #include "midotrigger.h"
00009 
00010 
00011 class QAction;
00012 class QIconSet;
00013 class Central;
00014 
00015 class MainProgram : public QMainWindow
00016 {
00017    Q_OBJECT
00018 public:
00019     MainProgram();
00020     
00021     static QFont fontCustom;
00022     static int redColor;
00023     static int greenColor;
00024     static int bluColor;
00025 
00026 protected:
00027     int plat, wind, cde, motif, motp;
00028     int ch1pch2, ch1mch2, ch1prch2, xyplot, invch1, invch2;
00029     int axisXEn, axisYEn, sampleRateEn;
00030     int italian, english, french, german, spanish;
00031     int exitcode;
00032     QString l,stile;
00033     QMenuBar *menuBar;
00034 
00035     QPixmap *mark, *canc;
00036     QIconSet *markIcon, *cancIcon;
00037 
00038     QAction *fileSaveAction,*fileSavePlotAction,*filePrintAction;
00039 
00040     void loadSetting();
00041     void updateStyleSetting(QString voice);
00042     Central *body;
00043     DValueList *v1, *v2;
00044     QPopupMenu *clear;
00045     
00046 protected slots:
00047     void stylePlatinum();
00048     void styleWindows();
00049     void styleCDE();
00050     void styleMotif();
00051     void styleMotifPlus();
00052 
00053     void changeLan(int);
00054     void changeItLan();
00055     void changeDeLan();
00056     void changeFrLan();
00057     void changeEnLan();
00058     void changeEsLan();
00059 
00060     void about();
00061     void aboutMido();
00062     void fG();
00063 
00064     void changeFont();
00065     void changeColor();
00066 
00067     void axisX();
00068     void axisY();
00069     void viewSampleR();
00070 
00071     void Ch1PCh2();
00072     void Ch1MCh2();
00073     void Ch1PRCh2();
00074     void XYPlot();
00075     void InvertCh1();
00076     void InvertCh2();
00077 
00078     void enableInvertCh1(bool enable);
00079     void enableInvertCh2(bool enable);
00080    
00081     void mathCh(bool);
00082 
00083     void load();
00084     void save();
00085     void saveAs();
00086     void print();
00087 
00088     void resetBuffer();
00089     void resetOsc();
00090     void resetMm();
00091     void resetSpet();
00092     void resetAll();
00093 
00094 private:
00095     void selectStyleMenu( int );
00096     void selectLangMenu( int );
00097 };
00098 
00099 #endif

Generated at Tue Mar 18 13:49:45 2003 for MIDO by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000