Main Page | Class List | Directories | File List

ksps.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Burkhard Brauer                                 *
00003  *   BurkhardBrauer@t-online.de                                            *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 
00021 
00022 #ifndef _KSPS_H_
00023 #define _KSPS_H_
00024 
00025 #ifdef HAVE_CONFIG_H
00026 #include <config.h>
00027 #endif
00028 
00029 #include <kmainwindow.h>
00030 #include <qlistbox.h>
00031 
00032 
00038 class ksps : public KMainWindow
00039 {   Q_OBJECT
00040          QPixmap ZeichnungPuffer;
00041 protected:
00042         char    ***pOB_NetzwerkUeberschrift;    //char  *pOB_NetzwerkUeberschrift[256][256] 
00043         char    ***pPB_NetzwerkUeberschrift;    //char  *pPB_NetzwerkUeberschrift[256][256];
00044         char    ***pFB_NetzwerkUeberschrift;    //char  *pFB_NetzwerkUeberschrift[256][256];
00045         char    ***pSB_NetzwerkUeberschrift;    //char  *pSB_NetzwerkUeberschrift[256][256];
00046         char **pOB_BausteinUeberschrift;
00047         char **pPB_BausteinUeberschrift;
00048         char **pFB_BausteinUeberschrift;
00049         char **pSB_BausteinUeberschrift;
00050         char ** Netzwerk_Text;
00051         char ** Netzwerk_Ueberschrift;
00052         char **pEingaenge_Kommentar;
00053         char **pAusgaenge_Kommentar;
00054         char **pMerker_Kommentar;
00055         char **pTimer_Kommentar;
00056         char **pZaehler_Kommentar;
00057         char **pOB_Kommentar;
00058         char **pPB_Kommentar;
00059         char **pFB_Kommentar;
00060         char **pSB_Kommentar;
00061 
00062         char  BausteinUeberschrift_Anzeige[80];
00063         char  NetzwerkUeberschrift_Anzeige[80];
00064         int     Anzahl_Netzwerk_Speicher[256];
00065         
00066         void keyPressEvent(QKeyEvent*);
00067         void resizeEvent(QResizeEvent*);
00068         void paintEvent(QPaintEvent*);
00069         void closeEvent( QCloseEvent *ev );
00070 public:
00071         char *CStr_zwischenSpeicher;
00072         bool  TextInZeilenZerlegenUndCompilieren(int BausteinName,int BausteinNr,char *CStr_zwischenSpeicher);
00073         void  BefehlsTabelle();
00074         void    Baustein_ins_AG_Laden();
00075         void    Alle_Bausteine_ins_AG_laden();
00076         void  SpsTextLaden(QString QDateipfadPlusDateiname_Wahl);
00077         void    SpsTextSpeichern();
00078         void    SpsTextSpeichernAls();
00079    void  SpsNeuerBaustein();
00080         bool ProjektLaden(QString Pfad);
00081         void    NeuesProjektVorbereiten();
00082         void  NeuesProjektErzeugen();
00083         void  ProjektDatenSpeichern();
00084         void    getTabellenKommentarEAMTZ();
00085         void    setTabellenKommentarEAMTZ();
00086    unsigned int TextFormatiren(char* CStr);
00087         int NachSprungMarkenScannen(int AnzahlZeilen);
00088         void ABx_Anzeige();
00089         void BefehleStrings();
00090         void StatusStrings();
00091         void StatusAnzeigePaint();
00092         void NetzwerkText_SeicherAnfrodern(int NetzwerkNr,int AnzahlBytes);
00093         void NetzwerkText_SeicherFreigeben(int NetzwerkNr);
00094         void NetzwerkTextToEditor(int NetzwerkNr);
00095         void Editor_InNertwerkTextRetten(int NetzwerkNr);
00096         void AG_Loeschen();
00097         void set_status_spinBoxValue(int index);
00098         int getIndexComboBox(QString QsuchStr);
00099         int vergleichenBausteineNamen(const char* pBausteinName1,const char* pBausteinName2);
00100         void sortiereComboBox();
00101         int FindIndexComboBox(const char *BausteinnamePlusNr);
00102         void BausteinBefehlsfolge(int BausteinName,int BausteinNr,int BausteinNetzwerkNr);
00103         void ProjektlLadenToAgUStarten(QString BeispielPfad);
00104         int StatusZeile;  
00105    ksps();
00106    virtual ~ksps();
00107 public slots:
00108   void SPS_ProgrammAufrufen_Timer();
00109   void MenueItem(int);
00110   void ScrollVer(int);
00111   void returnPressed_slot();
00112   void textChanged_slot();
00113   void get_spinBox_text_NeNr_slot(int);
00114   void status_spinBox_NeNr_slot(int NetzwerkNr);
00115   void Ganzen_TextFormatieren();
00116   void getTimeSlider(int);
00117   void ms10Intervall(); // für Timer
00118   void TAnzeige();
00119   void neuesNetzwerkBtn_clicked();
00120   void einfuegenNetzwerk_clicked();
00121   void loescheNetzwerk_clicked();
00122   void ButtonGroupEB0_pressed(int);
00123   void ButtonGroupEB0_released(int);
00124   void PauseButton_pressed();
00125   void PauseButton_released();
00126   void ButtonGroupEB1_Toggle(int);
00127   void StartStopButton_Rb(int ButtonNr);
00128   void ButtonHexDez_Rb(int);
00129   void statusComboBox_slot(int);
00130   void TabWidget_slot(QWidget *);
00131   void EAMTabelle_slot(int Zeile,int Spalte);
00132   void TZTabelle_slot(int Zeile,int Spalte);
00133   void FehlerListBox_slot(int); 
00134   void loescheFehlerListBoxl_clicked();
00135 };
00136 
00137 #endif // _KSPS_H_

Generated on Sun Mar 12 21:08:06 2006 for ksps.kdevelop by  doxygen 1.4.4