- Page principale
- Classes
- Fichiers
- Pages associées

# /home/eric/Bureau/MedinTux-V-2.00/Plug/Compta2/compta/compta.h

    00001 /***************************************************************************
    00002  *   Copyright (C) 2007, 2008 by Eric,,,   *
    00003  *   eric@Nunux   *
    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 COMPTA_H
    00023 #define COMPTA_H
    00024
    00025 #include <qmainwindow.h>
    00026 #include <qobject.h>
    00027 #include <qworkspace.h>
    00028 #include <qaction.h>
    00029 #include <qpushbutton.h>
    00030 #include <qsizegrip.h>
    00031 #include <qfontdatabase.h>
    00032 #include <qlineedit.h>
    00033 #include <qcolor.h>
    00034 #include <qcolordialog.h>
    00035 #include <qdir.h>
    00036 #include <qsimplerichtext.h>
    00037 #include <qsplitter.h>
    00038 #include <qfile.h>
    00039 #include <qvbox.h>
    00040 #include <qlayout.h>
    00041 #include <qtabwidget.h>
    00042 #include <qworkspace.h>
    00043 #include <qlabel.h>
    00044 #include <qimage.h>
    00045 #include <qpixmap.h>
    00046 #include <qtoolbar.h>
    00047 #include <qtoolbutton.h>
    00048 #include <qpopupmenu.h>
    00049 #include <qmenubar.h>
    00050 #include <qtextedit.h>
    00051 #include <qfile.h>
    00052 #include <qfiledialog.h>
    00053 #include <qstatusbar.h>
    00054 #include <qmessagebox.h>
    00055 #include <qprinter.h>
    00056 #include <qapplication.h>
    00057 #include <qaccel.h>
    00058 #include <qtextstream.h>
    00059 #include <qpainter.h>
    00060 #include <qpaintdevicemetrics.h>
    00061 #include <qwhatsthis.h>
    00062 #include <qdatatable.h>
    00063 #include <qtabwidget.h>
    00064 #include <qlayout.h>
    00065 #include <qhbox.h>
    00066 #include <qvbox.h>
    00067 #include <qlabel.h>
    00068 #include <qcombobox.h>
    00069 #include <qspinbox.h>
    00070
    00071
    00072 #include "Listes.h"
    00073 #include "CApp.h"
    00074 #include "../../../MedinTuxTools/CGestIni.h"
    00075
    00076
    00077 #include "CMDI_Generic.h"
    00078 #include "CMDI_Actes.h"
    00079 #include "CMDI_Releve.h"
    00080 #include "CMDI_Honoraires.h"
    00081 #include "CMDI_Mouvements.h"
    00082 #include "CMDI_Depots.h"
    00083 #include "CMDI_DAF.h"
    00084 #include "CMDI_Param.h"
    00085 #include "CMDI_Livres.h"
    00086
    00087
    00088 #include "Depots.h"
    00089 #include "icones.h"
    00090
    00091 #include "ui/FormListMenu.h"
    00092 #include "ui/filtre_hono.h"
    00093 #include "ui/a_propos.h"
    00094
    00095
    00096
    00097 class QTextEdit;
    00098 class Hono_View;
    00099
    00100 class CMDI_Generic;
    00101 class CMDI_Mouvements;
    00102 class CMDI_Honoraires;
    00103 class CMDI_Depots;
    00104 class CMDI_DAF;
    00105 class CMDI_Actes;
    00106 class CMDI_Param;
    00107 class CMDI_Livres;
    00108 class CMDI_Releve;
    00109
    00110
    00112 class Compta: public QMainWindow, public CGestIni
    00113 {
    00114     Q_OBJECT
    00115
    00116 public:
    00117     Compta(ComptaMoteurBase* pComptaMoteurBase);
    00118     ~Compta();
    00119
    00121                 //              DONNEES                 //
    00123
    00124 protected:
    00125
    00126     void closeEvent( QCloseEvent* );
    00127     void setupEditActions();
    00128     void setupTextActions();       // cree la barre d'outils et menu lié aux attributs texte (gras italique etc..)
    00129     void setupFileActions();
    00130
    00131     CMDI_Generic*       IsExistRubrique(int type);
    00132     CMDI_Honoraires*    CMDI_HonoCreate ();
    00133     CMDI_Mouvements*    CMDI_MouvementsCreate ();
    00134     CMDI_Actes*         CMDI_ActesCreate ();
    00135     CMDI_DAF*           CMDI_DAFCreate ();
    00136     CMDI_Param*         CMDI_ParamCreate ();
    00137     CMDI_Depots*        CMDI_DepotsCreate ();
    00138     CMDI_Releve*        CMDI_ReleveCreate ();
    00139     CMDI_Livres*        CMDI_LivresCreate ();
    00140
    00141
    00142 protected slots:
    00143     // SLOTS du menu
    00144     void slot_Aide();
    00145     // SLOTS utilisés par FormListMenu
    00146     void honorairesView();
    00147     void actesView();
    00148     void banqueView();
    00149     void mouvementsView();
    00150     void DAFView();
    00151     void paramView();
    00152     void releveView();
    00153     void livresView();
    00154     void OnOngletRubriquesChanged(QWidget * pCMDI_Qwidget);
    00155     void OnActiverRubrique(const char* rubName);
    00156
    00157     void emitComptesChange();
    00158     void emitDepotsChange();
    00159     void emitHonoChange();
    00160     void emitMouvementsChange();
    00161
    00162 signals:
    00163     void  Sign_ActiverRubrique(const char*);
    00164     void  depChange();
    00165     void  mvtChange();
    00166     void  honChange();
    00167     void  cptChange();
    00168
    00169 private slots:
    00170 /*
    00171     void newDoc();
    00172     void choose();
    00173     void load( const QString &fileName );
    00174     void save();
    00175     void saveAs();
    00176     void print();
    00177 */
    00178     void about();
    00179
    00180 public:
    00181     Filtre_Hono         *m_pFiltreHono;
    00183 private:
    00184     QPrinter *printer;
    00185     QString filename;
    00186
    00187     ComptaMoteurBase    *m_pComptaMoteurBase;
    00188     QWorkspace          *m_pQWorkSpaceRub;
    00189     FormListMenu        *m_pFormListMenu;
    00190     QString              m_ImagePath;
    00191     QString              m_OldUser;
    00192     QString              m_PluginRun;
    00193
    00194     Utilisateurs*       m_currentUser;
    00195
    00196 };
    00197 void GlobalActiverWidget(QWidget *pQWidget);
    00198
    00199
    00200 #endif