#include <bulmatpv.h>
Inheritance diagram for BulmaTPV:

Public Slots | |
| virtual void | closeEvent (QCloseEvent *) |
| virtual void | s_ventanaCompleta () |
| virtual void | s_About () |
Public Member Functions | |
| BulmaTPV (QString bd) | |
| ~BulmaTPV () | |
| QWorkspace2 * | workspace () |
| void | createMainWindows (Splash *) |
| EmpresaTPV * | empresaTPV () |
| virtual void | keyPressEvent (QKeyEvent *e) |
Private Attributes | |
| QWorkspace2 * | pWorkspace |
| El workSpace que se va a usar con la aplicacion. | |
| EmpresaTPV * | m_empresaTPV |
| La clase corazon de la aplicacion y centralizadora de mensajes y componentes. | |
Definition at line 43 of file bulmatpv.h.
| BulmaTPV::BulmaTPV | ( | QString | bd | ) |
| bd |
Hacemos que el ProgressBar esté invisible hasta que se seleccione una empresa.
Creamos un VerticalLayout donde metemos el contenido central del QMainWindow.
Definition at line 52 of file bulmatpv.cpp.
References _depura(), FALSE, EmpresaBase::init(), m_empresaTPV, pWorkspace, EmpresaBase::setProgressBar(), Ui_BulmaTPVBase::setupUi(), EmpresaBase::setWorkspace(), and TRUE.
00052 : QMainWindow() { 00053 _depura("BulmaTPV::BulmaTPV", 0); 00054 setupUi(this); 00055 setUpdatesEnabled(TRUE); 00056 pWorkspace = new QWorkspace2(this); 00057 pWorkspace->setScrollBarsEnabled(TRUE); 00058 QFrame *m_frame1 = new QFrame(); 00059 QProgressBar *m_pb = new QProgressBar(); 00060 m_pb->setMaximum(100); 00061 m_pb->setMinimum(0); 00062 m_pb->setValue(0); 00064 m_pb->setVisible(FALSE); 00065 setCentralWidget(m_frame1); 00067 QVBoxLayout *vboxlayout = new QVBoxLayout(this->centralWidget()); 00068 vboxlayout->setSpacing(0); 00069 vboxlayout->setMargin(0); 00070 vboxlayout->addWidget(pWorkspace); 00071 vboxlayout->addWidget(m_pb); 00072 00073 00074 m_empresaTPV = new EmpresaTPV(this); 00075 m_empresaTPV->setProgressBar(m_pb); 00076 m_empresaTPV->init(bd, "BulmaFact"); 00077 m_empresaTPV->setWorkspace(pWorkspace); 00078 00079 00080 //connect(pWorkspace, SIGNAL(windowActivated(QWidget *)), this, SLOT(informaindexador(QWidget *))); 00081 00082 setCorner(Qt::TopLeftCorner, Qt::TopDockWidgetArea); 00083 setCorner(Qt::TopRightCorner, Qt::RightDockWidgetArea); 00084 setCorner(Qt::BottomLeftCorner, Qt::LeftDockWidgetArea); 00085 setCorner(Qt::BottomRightCorner, Qt::RightDockWidgetArea); 00086 00087 00088 00089 QDockWidget *widgetPrueba = new QDockWidget(NULL); 00090 addDockWidget(Qt::LeftDockWidgetArea, widgetPrueba); 00091 // m_company->setListVentanas(m_list); 00092 00093 m_pb->setVisible(FALSE); 00094 statusBar()->showMessage(bd, 2000); 00095 setWindowTitle(bd); 00096 _depura("END BulmaTPV::BulmaTPV", 0); 00097 }
| BulmaTPV::~BulmaTPV | ( | ) |
Definition at line 116 of file bulmatpv.cpp.
References _depura(), and pWorkspace.
00116 { 00117 _depura("BulmaTPV::~BulmaTPV", 0); 00118 delete pWorkspace; 00121 #ifdef WINDOWS 00122 00123 exit(0); 00124 #endif 00125 00126 _depura("END BulmaTPV::~BulmaTPV", 0); 00127 }
| QWorkspace2 * BulmaTPV::workspace | ( | ) |
Definition at line 181 of file bulmatpv.cpp.
References _depura(), and pWorkspace.
Referenced by myplugin::inicializa().
00181 { 00182 _depura("BulmaTPV::workspace", 0); 00183 _depura("END BulmaTPV::workspace", 0); 00184 return pWorkspace; 00185 }
| void BulmaTPV::createMainWindows | ( | Splash * | splashScr | ) |
| splashScr |
Definition at line 105 of file bulmatpv.cpp.
References _depura(), EmpresaTPV::createMainWindows(), and m_empresaTPV.
00105 { 00106 _depura("BulmaTPV::createMainWindows", 0); 00107 m_empresaTPV->createMainWindows(splashScr); 00108 _depura("END BulmaTPV::createMainWindows", 0); 00109 }
| EmpresaTPV * BulmaTPV::empresaTPV | ( | ) |
Definition at line 193 of file bulmatpv.cpp.
References m_empresaTPV.
Referenced by myplugin::elslot(), and myplugin::inicializa().
00193 { 00194 return m_empresaTPV; 00195 }
| void BulmaTPV::keyPressEvent | ( | QKeyEvent * | e | ) | [virtual] |
Definition at line 188 of file bulmatpv.cpp.
References Input::keyPressEvent(), and m_empresaTPV.
00188 { 00189 m_empresaTPV->keyPressEvent(e); 00190 }
| void BulmaTPV::closeEvent | ( | QCloseEvent * | ) | [virtual, slot] |
Definition at line 164 of file bulmatpv.cpp.
References _depura().
00164 { 00165 _depura("BulmaTPV::closeEvent", 0); 00166 // delete m_company; 00167 // m_company = NULL; 00168 #ifdef WINDOWS 00169 00170 exit(0); 00171 #endif 00172 00173 _depura("END BulmaTPV::closeEvent", 0); 00174 }
| void BulmaTPV::s_ventanaCompleta | ( | ) | [virtual, slot] |
Definition at line 135 of file bulmatpv.cpp.
References _depura().
00135 { 00136 _depura("BulmaTPV::s_ventanaCompleta", 0); 00137 if (isFullScreen()) { 00138 showNormal(); 00139 } else { 00140 showFullScreen(); 00141 } // end if 00142 _depura("END BulmaTPV::s_ventanaCompleta", 0); 00143 }
| void BulmaTPV::s_About | ( | ) | [virtual, slot] |
QWorkspace2* BulmaTPV::pWorkspace [private] |
El workSpace que se va a usar con la aplicacion.
Definition at line 48 of file bulmatpv.h.
Referenced by BulmaTPV(), workspace(), and ~BulmaTPV().
EmpresaTPV* BulmaTPV::m_empresaTPV [private] |
La clase corazon de la aplicacion y centralizadora de mensajes y componentes.
Definition at line 50 of file bulmatpv.h.
Referenced by BulmaTPV(), createMainWindows(), empresaTPV(), and keyPressEvent().
1.5.1