Billing program for the appliance repair company Seoane.
1#include "../Negocio/CapaNegocio.h"
2#include "../Negocio/Articulo.h"
3#include "../Negocio/Cliente.h"
4#include "../Negocio/Factura.h"
5#include "../Negocio/Presupuesto.h"
6#include "../Gui/MainWindow.h"
7
8#include <iostream>
9#include <string>
10#include <list>
11#include <QApplication>
12
13using namespace std;
14
15/****ATRIBUTO GLOBAL PARA SOLO TRABAJAR CON UNA INSTANCIA DE LA CAPA DE NEGOCIO****/
16CapaNegocio * const capaNegocio = new CapaNegocio;
17
18int main(int argc, char* argv[]){
19
20 QApplication app(argc, argv);
21
22 app.setWindowIcon(QIcon("Gui/images/icono.ico"));
23
24 QSplashScreen *splash = new QSplashScreen;
25 splash->setPixmap(QPixmap("Gui/images/splash.png"));
26 splash->show();
27
28 Qt::Alignment bottomRight = Qt::AlignRight | Qt::AlignBottom;
29
30 splash->showMessage(QObject::tr("Cargando..."), bottomRight, Qt::black);
31 capaNegocio->inicializar();
32 MainWindow main(capaNegocio);
33 main.showMaximized();
34
35 splash->finish(&main);
36 delete splash;
37
38 return app.exec();
39}