My Project
dialogOwner.hpp
1 
13 #ifndef DIAGOWNER_H
14 #define DIAGOWNER_H
15 
16 #include <QDialog>
17 #include "./pelVector.hpp"
18 #include "./owner.hpp"
19 
20 namespace Ui {
21 class dialogOwner;
22 }
23 
27 class dialogOwner : public QDialog {
28  Q_OBJECT
29 
30  public:
31  explicit dialogOwner(QWidget *parent = 0);
32 
33  ~dialogOwner();
34 
39  void setOwnerAEditar(Owner *ow);
40 
46  Owner crear();
47 
48  void setListaOwners(pel::Vector<Owner> const *lista) {
49  listaOw = lista;
50  }
51 
52  void accept();
53 private slots: // NOLINT - https://github.com/google/styleguide/issues/30
54  void on_buttonBox_accepted();
55 
56  private:
57  bool maybeSave = false;
58  pel::Vector<Owner> const *listaOw;
59  bool editando = false;
60  Owner *ownerAEditar;
61  Ui::dialogOwner *ui;
62 };
63 
64 #endif // DIAGOWNER_H
Owner crear()
Crea un Owner Crea un nuevo Owner y se lo devuelve a mainWindow, el cual lo mete en su Vector...
Definition: dialogOwner.cpp:59
Definition: dialogInforme.hpp:15
Dialogo de Owners.
Definition: dialogOwner.hpp:27
void setOwnerAEditar(Owner *ow)
Edita el Owner Edita el Owner que ha sido pasado por referencia.
Definition: dialogOwner.cpp:53
dialogOwner(QWidget *parent=0)
Definition: dialogOwner.cpp:11
Clase Owner.
Definition: owner.hpp:24