ah3.h

00001 /*********************************************************************************
00002 **
00003 **   $Id: //depot/WorkInProgress/ah2/AcctSelect.h#1 $
00004 **   Copyright (c) 2004 Joe Croft <joe@croftj.net>
00005 **   
00006 **   This file is part of ah3.
00007 **
00008 **   ah3 is free software; you can redistribute it and/or modify
00009 **   it under the terms of the GNU General Public License as published by
00010 **   the Free Software Foundation; either version 2 of the License, or
00011 **   (at your option) any later version.
00012 **
00013 **   Foobar is distributed in the hope that it will be useful,
00014 **   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 **   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 **   GNU General Public License for more details.
00017 **
00018 **   You should have received a copy of the GNU General Public License
00019 **   along with Foobar; if not, write to the Free Software
00020 **   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00021 **
00022 *********************************************************************************/
00023 
00024 #ifndef AH3_H
00025 #define AH3_H
00026 
00027 # include <QMainWindow>
00028 # include "QcjData/QcjDataStatics.h"
00029 # include "QcjData/QcjDataConfigure.h"
00030 # include "customerentrydialog.h"
00031 # include "about.h"
00032 # include "ui_ah3.h"
00033 
00034 extern QcjDataConfigure *pConfigDlg;
00035 
00036 class Ah3 : public QMainWindow 
00037 {
00038    Q_OBJECT
00039 
00040 public:
00041    Ah3();
00042    void setDatabase();
00043 
00044 public slots:
00045    void close();
00046    void refresh();
00047    void saveCurrentForm();
00048 
00049    void haveSearchVendorBtn();
00050    void haveVendorRowSelected(QSqlRecord*);
00051    void haveClearVendorBtn();
00052 
00053    void haveSearchPartsBtn();
00054    void havePartRowSelected(QSqlRecord*);
00055    void havePartsRecordSelected(QSqlRecord *);
00056    void haveClearPartsBtn();
00057    void haveNewPart2Vendor();
00058    void haveAllParts2VendorBtnChanged(int state);
00059 
00060    void haveShowAllWoBtnChanged(int);
00061    void haveWoSelected(QSqlRecord *rec);
00062    void haveWoActivated(QSqlRecord *rec);
00063    void haveSearchWoBtn();
00064    void haveClearWoBtn();
00065    void haveNewWoBtn();
00066    void haveUpdateWoBtn();
00067    void haveCancelWoBtn();
00068    void haveDeleteWoBtn();
00069    void havePreviewWoBtn();
00070    void haveCloseWoBtn();
00071    void haveEditCustomer()
00072    {
00073       printf("Ah3::haveEditCustomer(): Enter\n");
00074       CustomerEntryDialog dlg(false, this);
00075       dlg.setDatabase();
00076       int customer = dlg.exec();
00077       printf("Ah3::haveEditCustomer(): Exit- customer %d selected\n", customer);
00078       fflush(stdout);
00079    };
00080    void haveWoLaborRequest();
00081    void haveWoPartsRequest();
00082 
00083    /***********************************************/
00084    /*   These functions are for manipulating the  */
00085    /*   Auto-Jobs  Tab. They can be found in the  */
00086    /*   file ah3-job.cpp                          */
00087    /***********************************************/
00088    void haveNewJobBtn();
00089    void haveDeleteJobBtn();
00090    void haveSaveJobBtn();
00091    void haveSearchJobBtn();
00092    void haveClearJobBtn();
00093    void haveNewJobPartBtn();
00094    void haveDeleteJobPartBtn();
00095    void haveSaveJobPartBtn();
00096    void refreshAutoJobForm(QSqlRecord*);
00097 
00098    /***********************************************/
00099    /*   These functions can be found in the file  */
00100    /*   ah3_makes.cpp                             */
00101    /***********************************************/
00102 //   void haveCloneAutoBtn();
00103 //   void haveSearchAutoBtn();
00104 //   void haveClearAutoBtn();
00105 
00106 protected slots:
00107    void haveAbout()
00108    {
00109       AboutDlg dlg;
00110       dlg.exec();
00111    };
00112    void haveConfigure()
00113    {
00114       
00115       pConfigDlg->exec();
00116    };
00117    void calcTotals();
00118 
00119    void haveExit()
00120    {
00121       close();
00122    };
00123 
00124    void openConfigurationDialog(int conf);
00125 
00126 protected:
00127 
00128 private:
00129    Ui::Ah3     ui;
00130 };
00131 
00132 #endif

Generated on Tue Sep 11 07:00:01 2007 for Ah3 Invoicing and Inventory System for Repair Shops by  doxygen 1.5.0