diff --git a/aboutdialog.ui b/aboutdialog.ui index 86fbe50..6ecba17 100644 --- a/aboutdialog.ui +++ b/aboutdialog.ui @@ -55,7 +55,7 @@ - <html><head/><body><p>Hermès est un logiciel libre distribué sous la licence <a href="http://www.cecill.info/licences/Licence_CeCILL_V2.1-fr.html"><span style=" text-decoration: underline; color:#0000ff;">CeCILL 2.1</span></a> par Jérôme Deuchnord.</p><p>Basé sur Qt 5.</p></body></html> + <html><head/><body><p>Hermès est un logiciel libre distribué sous la licence MIT par Jérôme Deuchnord.</p><p>Basé sur Qt 5.</p></body></html> Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop diff --git a/deuchnord-hermes.pro b/deuchnord-hermes.pro index 939486d..a5e7e5a 100644 --- a/deuchnord-hermes.pro +++ b/deuchnord-hermes.pro @@ -1,38 +1,43 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2014-05-07T19:11:58 -# -#------------------------------------------------- - -CONFIG += c++11 - -QT += core gui -QT += xml - -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets - -TARGET = deuchnord-hermes -TEMPLATE = app - - -SOURCES += main.cpp\ - mainwindow.cpp \ - produititem.cpp \ - infosproduitdialog.cpp \ - gestionmagasinsdialog.cpp \ - aboutdialog.cpp - -HEADERS += mainwindow.h \ - produititem.h \ - infosproduitdialog.h \ - gestionmagasinsdialog.h \ - aboutdialog.h - -FORMS += mainwindow.ui \ - produititem.ui \ - infosproduitdialog.ui \ - gestionmagasinsdialog.ui \ - aboutdialog.ui - -RESOURCES += \ - resources.qrc +#------------------------------------------------- +# +# Project created by QtCreator 2014-05-07T19:11:58 +# +#------------------------------------------------- + +CONFIG += c++11 + +QT += core gui +QT += xml + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = deuchnord-hermes +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp \ + produititem.cpp \ + infosproduitdialog.cpp \ + gestionmagasinsdialog.cpp \ + aboutdialog.cpp + +HEADERS += mainwindow.h \ + produititem.h \ + infosproduitdialog.h \ + gestionmagasinsdialog.h \ + aboutdialog.h + +FORMS += mainwindow.ui \ + produititem.ui \ + infosproduitdialog.ui \ + gestionmagasinsdialog.ui \ + aboutdialog.ui + +RESOURCES += \ + resources.qrc + +OTHER_FILES += \ + resources.rc + +RC_FILE = resources.rc diff --git a/deuchnord-hermes.pro.user b/deuchnord-hermes.pro.user index b69a304..79b119e 100644 --- a/deuchnord-hermes.pro.user +++ b/deuchnord-hermes.pro.user @@ -1,6 +1,6 @@ - + ProjectExplorer.Project.ActiveTarget diff --git a/deuchnord-hermes.pro.user.44abd53 b/deuchnord-hermes.pro.user.44abd53 new file mode 100644 index 0000000..b69a304 --- /dev/null +++ b/deuchnord-hermes.pro.user.44abd53 @@ -0,0 +1,260 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + true + 1 + true + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop + Desktop + {8a6bac83-397a-433b-b12b-aaf345693483} + 1 + 0 + 0 + + /home/jerome/Dropbox/Git/Hermes/build-deuchnord-hermes-Desktop-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/jerome/Dropbox/Git/Hermes/build-deuchnord-hermes-Desktop-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + false + + + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + -w + -r + + true + clean + + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 2 + + + 0 + Deploy + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy locally + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + deuchnord-hermes + + Qt4ProjectManager.Qt4RunConfiguration:/home/jerome/Dropbox/Git/Hermes/deuchnord-hermes/deuchnord-hermes.pro + + deuchnord-hermes.pro + false + false + + 3768 + true + false + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.EnvironmentId + {44abd538-5b46-4276-b819-6072e04c10d4} + + + ProjectExplorer.Project.Updater.FileVersion + 15 + + diff --git a/deuchnord-hermes.pro.user.60f1676 b/deuchnord-hermes.pro.user.60f1676 new file mode 100644 index 0000000..bc9e952 --- /dev/null +++ b/deuchnord-hermes.pro.user.60f1676 @@ -0,0 +1,251 @@ + + + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + + ProjectExplorer.Project.Target.0 + + Desktop Qt 5.2.1 MinGW 32bit + Desktop Qt 5.2.1 MinGW 32bit + qt.521.win32_mingw48.essentials_kit + 1 + 0 + 0 + + C:/Users/Jérôme/Dropbox/Git/Hermes/build-deuchnord-hermes-Desktop_Qt_5_2_1_MinGW_32bit-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + Compiler + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + Nettoyer + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + C:/Users/Jérôme/Dropbox/Git/Hermes/build-deuchnord-hermes-Desktop_Qt_5_2_1_MinGW_32bit-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + true + + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + + 2 + Compiler + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + + 1 + Nettoyer + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 2 + + + 0 + Déploiement + + ProjectExplorer.BuildSteps.Deploy + + 1 + Déployer localement + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + deuchnord-hermes + + Qt4ProjectManager.Qt4RunConfiguration:C:/Users/Jérôme/Dropbox/Git/Hermes/deuchnord-hermes/deuchnord-hermes.pro + + deuchnord-hermes.pro + false + false + + 3768 + false + true + false + false + true + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.EnvironmentId + {60f16766-9e87-40cf-8f8f-b733441f2614} + + + ProjectExplorer.Project.Updater.FileVersion + 15 + + diff --git a/gestionmagasinsdialog.cpp b/gestionmagasinsdialog.cpp index 8450ffa..59a3f34 100644 --- a/gestionmagasinsdialog.cpp +++ b/gestionmagasinsdialog.cpp @@ -12,6 +12,11 @@ GestionMagasinsDialog::GestionMagasinsDialog(QWidget *parent) : { ui->setupUi(this); + QDir dir(QDir::homePath()+"/.deuchnord-hermes"); + + if(!dir.exists()) + dir.mkdir(QDir::homePath()+"/.deuchnord-hermes"); + QFile fichierMagasins(QDir::homePath()+"/.deuchnord-hermes/manufacturers.xml"); fichierMagasins.open(QFile::ReadOnly); if(fichierMagasins.isOpen()) diff --git a/gestionmagasinsdialog.ui b/gestionmagasinsdialog.ui index fd64ffb..9932631 100644 --- a/gestionmagasinsdialog.ui +++ b/gestionmagasinsdialog.ui @@ -26,11 +26,15 @@ + + Ajouter + - + + :/icons/add.png:/icons/add.png @@ -39,11 +43,15 @@ false + + Supprimer + - + + :/icons/remove.png:/icons/remove.png @@ -76,7 +84,9 @@ - + + + buttonBox diff --git a/icon-hermes.ico b/icon-hermes.ico new file mode 100644 index 0000000..039b0c5 Binary files /dev/null and b/icon-hermes.ico differ diff --git a/infosproduitdialog.ui b/infosproduitdialog.ui index 86b944f..6d3c437 100644 --- a/infosproduitdialog.ui +++ b/infosproduitdialog.ui @@ -177,9 +177,8 @@ Vous pouvez ouvrir une facture ou une garantie en double-cliquant dessus. - - - + + :/icons/add.png:/icons/add.png @@ -195,9 +194,8 @@ Vous pouvez ouvrir une facture ou une garantie en double-cliquant dessus. - - - + + :/icons/remove.png:/icons/remove.png @@ -242,9 +240,8 @@ Vous pouvez ouvrir une facture ou une garantie en double-cliquant dessus. - - - + + :/icons/add.png:/icons/add.png @@ -260,9 +257,8 @@ Vous pouvez ouvrir une facture ou une garantie en double-cliquant dessus. - - - + + :/icons/remove.png:/icons/remove.png @@ -300,7 +296,9 @@ Vous pouvez ouvrir une facture ou une garantie en double-cliquant dessus. - + + + buttonBox diff --git a/resources.qrc b/resources.qrc index e4a03e0..077ec8d 100644 --- a/resources.qrc +++ b/resources.qrc @@ -3,4 +3,8 @@ icon-hermes.png no-picture.jpg + + remove.png + add.png + diff --git a/resources.rc b/resources.rc new file mode 100644 index 0000000..fad337d --- /dev/null +++ b/resources.rc @@ -0,0 +1 @@ +IDI_ICON1 ICON DISCARDABLE "icon-hermes.ico"