This repository has been archived by the owner on Sep 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ Onglet Graphique, modif texte résultat + scroll, ré-organisation de…
…s dossiers
- Loading branch information
Showing
22 changed files
with
244 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include "barregraphique.h" | ||
|
||
BarreGraphique::BarreGraphique(Combinaison & combinaison, QWidget *parent) : QWidget(parent) | ||
{ | ||
m_combinaison = &combinaison ; | ||
} | ||
|
||
void BarreGraphique::paintEvent(QPaintEvent *e) | ||
{ | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef BARREGRAPHIQUE_H | ||
#define BARREGRAPHIQUE_H | ||
|
||
#include <QWidget> | ||
#include <QPainter> | ||
#include "../moteur/Combinaison.h" | ||
|
||
class BarreGraphique : public QWidget | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit BarreGraphique(Combinaison & combinaison ,QWidget *parent = 0); | ||
|
||
private: | ||
Combinaison * m_combinaison; | ||
|
||
signals: | ||
|
||
public slots: | ||
|
||
protected: | ||
void paintEvent(QPaintEvent * e); | ||
}; | ||
|
||
#endif // BARREGRAPHIQUE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include "widgetgraphique.h" | ||
|
||
WidgetGraphique::WidgetGraphique(QFont & fontTitre, QWidget *parent) : QWidget(parent) | ||
{ | ||
// Titre | ||
QLabel * labelTitre = new QLabel("Graphique des résultats"); | ||
labelTitre->setFont(fontTitre); | ||
|
||
// Bouton quitter et sauvegarder | ||
QPushButton * buttonQuitter = new QPushButton(tr("Quitter")); | ||
QPushButton * buttonSaveHTML = new QPushButton(tr("Enregistrer en HTML")); | ||
QHBoxLayout * layoutBouttons = new QHBoxLayout; | ||
QWidget * widgetBouttons = new QWidget(); | ||
layoutBouttons->addWidget(buttonSaveHTML); | ||
layoutBouttons->addWidget(buttonQuitter); | ||
widgetBouttons->setLayout(layoutBouttons); | ||
|
||
// Layout | ||
QVBoxLayout * mainLayout = new QVBoxLayout; | ||
mainLayout->addWidget(labelTitre,0, Qt::AlignTop); | ||
mainLayout->addStretch(); | ||
mainLayout->addWidget(widgetBouttons, 0, Qt::AlignBottom | Qt::AlignRight); | ||
|
||
setLayout(mainLayout); | ||
|
||
// Connexion | ||
QObject::connect(buttonQuitter, SIGNAL(clicked()), qApp, SLOT(quit())); | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef WIDGETGRAPHIQUE_H | ||
#define WIDGETGRAPHIQUE_H | ||
|
||
#include <QWidget> | ||
#include <QLabel> | ||
#include <QVBoxLayout> | ||
#include <QPushButton> | ||
#include <QApplication> | ||
#include "barregraphique.h" | ||
|
||
class WidgetGraphique : public QWidget | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit WidgetGraphique(QFont & fontTitre,QWidget *parent = 0); | ||
|
||
signals: | ||
|
||
public slots: | ||
}; | ||
|
||
#endif // WIDGETGRAPHIQUE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.