Skip to content

Commit

Permalink
Exemple de BDD
Browse files Browse the repository at this point in the history
  • Loading branch information
JT117 committed Oct 6, 2011
1 parent d2ec333 commit c998b3d
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 1 deletion.
2 changes: 1 addition & 1 deletion KFet.pro.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by Qt Creator 2.3.1, 2011-10-06T19:49:33. -->
<!-- Written by Qt Creator 2.3.1, 2011-10-06T19:50:49. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
Expand Down
Binary file added debug/cfenetreajoutproduit.o
Binary file not shown.
82 changes: 82 additions & 0 deletions debug/moc_cfenetreajoutproduit.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
/****************************************************************************
** Meta object code from reading C++ file 'cfenetreajoutproduit.h'
**
** Created: Thu 6. Oct 19:47:48 2011
** by: The Qt Meta Object Compiler version 62 (Qt 4.7.4)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../cfenetreajoutproduit.h"
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'cfenetreajoutproduit.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 62
#error "This file was generated using the moc from 4.7.4. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
static const uint qt_meta_data_CFenetreAjoutProduit[] = {

// content:
5, // revision
0, // classname
0, 0, // classinfo
2, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
0, // signalCount

// slots: signature, parameters, type, tag, flags
22, 21, 21, 21, 0x0a,
33, 21, 21, 21, 0x0a,

0 // eod
};

static const char qt_meta_stringdata_CFenetreAjoutProduit[] = {
"CFenetreAjoutProduit\0\0afficher()\0"
"ajouter()\0"
};

const QMetaObject CFenetreAjoutProduit::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_CFenetreAjoutProduit,
qt_meta_data_CFenetreAjoutProduit, 0 }
};

#ifdef Q_NO_DATA_RELOCATION
const QMetaObject &CFenetreAjoutProduit::getStaticMetaObject() { return staticMetaObject; }
#endif //Q_NO_DATA_RELOCATION

const QMetaObject *CFenetreAjoutProduit::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
}

void *CFenetreAjoutProduit::qt_metacast(const char *_clname)
{
if (!_clname) return 0;
if (!strcmp(_clname, qt_meta_stringdata_CFenetreAjoutProduit))
return static_cast<void*>(const_cast< CFenetreAjoutProduit*>(this));
return QDialog::qt_metacast(_clname);
}

int CFenetreAjoutProduit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
if (_c == QMetaObject::InvokeMetaMethod) {
switch (_id) {
case 0: afficher(); break;
case 1: ajouter(); break;
default: ;
}
_id -= 2;
}
return _id;
}
QT_END_MOC_NAMESPACE
Binary file added debug/moc_cfenetreajoutproduit.o
Binary file not shown.
116 changes: 116 additions & 0 deletions ui_cfenetreajoutproduit.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
/********************************************************************************
** Form generated from reading UI file 'cfenetreajoutproduit.ui'
**
** Created: Thu 6. Oct 19:12:39 2011
** by: Qt User Interface Compiler version 4.7.4
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UI_CFENETREAJOUTPRODUIT_H
#define UI_CFENETREAJOUTPRODUIT_H

#include <QtCore/QVariant>
#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QButtonGroup>
#include <QtGui/QDialog>
#include <QtGui/QHBoxLayout>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QSpacerItem>
#include <QtGui/QVBoxLayout>
#include <QtGui/QWidget>

QT_BEGIN_NAMESPACE

class Ui_CFenetreAjoutProduit
{
public:
QWidget *verticalLayoutWidget;
QVBoxLayout *verticalLayout;
QLabel *label;
QLineEdit *pleFAPnomproduit;
QLabel *label_2;
QLineEdit *pleFAPprix;
QSpacerItem *verticalSpacer;
QHBoxLayout *horizontalLayout;
QPushButton *ppbFAPboutonOK;
QPushButton *ppbFAPAnnuler;

void setupUi(QDialog *CFenetreAjoutProduit)
{
if (CFenetreAjoutProduit->objectName().isEmpty())
CFenetreAjoutProduit->setObjectName(QString::fromUtf8("CFenetreAjoutProduit"));
CFenetreAjoutProduit->resize(218, 183);
verticalLayoutWidget = new QWidget(CFenetreAjoutProduit);
verticalLayoutWidget->setObjectName(QString::fromUtf8("verticalLayoutWidget"));
verticalLayoutWidget->setGeometry(QRect(10, 10, 201, 163));
verticalLayout = new QVBoxLayout(verticalLayoutWidget);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
verticalLayout->setContentsMargins(0, 0, 0, 0);
label = new QLabel(verticalLayoutWidget);
label->setObjectName(QString::fromUtf8("label"));

verticalLayout->addWidget(label);

pleFAPnomproduit = new QLineEdit(verticalLayoutWidget);
pleFAPnomproduit->setObjectName(QString::fromUtf8("pleFAPnomproduit"));

verticalLayout->addWidget(pleFAPnomproduit);

label_2 = new QLabel(verticalLayoutWidget);
label_2->setObjectName(QString::fromUtf8("label_2"));

verticalLayout->addWidget(label_2);

pleFAPprix = new QLineEdit(verticalLayoutWidget);
pleFAPprix->setObjectName(QString::fromUtf8("pleFAPprix"));

verticalLayout->addWidget(pleFAPprix);

verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Fixed);

verticalLayout->addItem(verticalSpacer);

horizontalLayout = new QHBoxLayout();
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
ppbFAPboutonOK = new QPushButton(verticalLayoutWidget);
ppbFAPboutonOK->setObjectName(QString::fromUtf8("ppbFAPboutonOK"));

horizontalLayout->addWidget(ppbFAPboutonOK);

ppbFAPAnnuler = new QPushButton(verticalLayoutWidget);
ppbFAPAnnuler->setObjectName(QString::fromUtf8("ppbFAPAnnuler"));

horizontalLayout->addWidget(ppbFAPAnnuler);


verticalLayout->addLayout(horizontalLayout);


retranslateUi(CFenetreAjoutProduit);

QMetaObject::connectSlotsByName(CFenetreAjoutProduit);
} // setupUi

void retranslateUi(QDialog *CFenetreAjoutProduit)
{
CFenetreAjoutProduit->setWindowTitle(QApplication::translate("CFenetreAjoutProduit", "Dialog", 0, QApplication::UnicodeUTF8));
label->setText(QApplication::translate("CFenetreAjoutProduit", "Nom Produit", 0, QApplication::UnicodeUTF8));
label_2->setText(QApplication::translate("CFenetreAjoutProduit", "Prix", 0, QApplication::UnicodeUTF8));
ppbFAPboutonOK->setText(QApplication::translate("CFenetreAjoutProduit", "OK", 0, QApplication::UnicodeUTF8));
ppbFAPAnnuler->setText(QApplication::translate("CFenetreAjoutProduit", "Annuler", 0, QApplication::UnicodeUTF8));
} // retranslateUi

};

namespace Ui {
class CFenetreAjoutProduit: public Ui_CFenetreAjoutProduit {};
} // namespace Ui

QT_END_NAMESPACE

#endif // UI_CFENETREAJOUTPRODUIT_H

0 comments on commit c998b3d

Please sign in to comment.