Your warranties manager
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

mainwindow.h 1.1 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QLineEdit>
  5. #include <QList>
  6. #include <QNetworkReply>
  7. #include <QSettings>
  8. #include "produititem.h"
  9. namespace Ui {
  10. class MainWindow;
  11. }
  12. class MainWindow : public QMainWindow
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit MainWindow(QWidget *parent = 0);
  17. Ui::MainWindow *getUI();
  18. ~MainWindow();
  19. public slots:
  20. void dlVersionFinished(QNetworkReply* reply);
  21. void dlNewVersionBtnClicked();
  22. void searchProduit(QString search);
  23. void on_actionNouveauProduit_triggered();
  24. void on_actionSupprimerProduit_triggered(bool dontAskConfirm = true);
  25. void on_actionAPropos_triggered();
  26. void on_actionAide_triggered();
  27. void on_actionReportBug_triggered();
  28. void updateStatusMessage();
  29. void deleteAsked();
  30. void on_actionSettings_triggered();
  31. void settings_dontSaveOnQuit();
  32. private:
  33. Ui::MainWindow *ui;
  34. QSettings *settings;
  35. bool saveOnQuit;
  36. QListWidgetItem *ajouterProduit(ProduitItem *produit);
  37. QLineEdit *searchBox;
  38. QString version;
  39. };
  40. #endif // MAINWINDOW_H