Aller à la documentation de ce fichier.00001 #ifndef IDCOMBOBOX_H
00002 #define IDCOMBOBOX_H
00003
00004 #include <QComboBox>
00005
00006 #include "../../../modele/auteur.h"
00007 #include "../../../modele/editeur.h"
00008 #include "../../../modele/book.h"
00009 #include "../../../modele/serie.h"
00010
00011
00012 class IdComboBox : public QComboBox
00013 {
00014 Q_OBJECT
00015 public:
00016 enum IdType { Auteurs, Editeurs, Cotes, Series };
00017
00018 explicit IdComboBox(QWidget *parent = 0);
00019 explicit IdComboBox(IdType type,QWidget *parent = 0);
00020 void setType(IdType type);
00021 void reload();
00022 int currentId();
00023 void setCurrentId(int id);
00024
00025 signals:
00026
00027 public slots:
00028
00029 private:
00030 IdType m_type;
00031 QList<int> m_ids;
00032
00033 };
00034
00035 #endif // IDCOMBOBOX_H