defuze.me  Client
cornerwidget.hpp
00001 /**************************************************************************
00002 ** defuze.me Epitech Innovative Project
00003 **
00004 ** Copyright 2010-2011
00005 **   Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard
00006 **   Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier
00007 **
00008 ** All rights reserved.
00009 **************************************************************************/
00010 
00011 #ifndef CORNERWIDGET_HPP
00012 #define CORNERWIDGET_HPP
00013 
00014 #include "ui_cornerwidget.h"
00015 #include "about.hpp"
00016 #include <QGraphicsDropShadowEffect>
00017 
00018 namespace Gui
00019 {
00020     class GuiCore;
00021 
00025     class CornerWidget : public QWidget, private Ui::CornerWidget
00026     {
00027         Q_OBJECT
00028         friend class TabWidget;
00029     public:
00030         explicit CornerWidget(GuiCore *guiCore, QWidget *parent = 0);
00031 
00032     protected:
00033         void changeEvent(QEvent *e);
00034 
00035     private slots:
00036         void on_fullscreenButton_clicked();
00037         void on_quitButton_clicked();
00038         void on_parametersButton_clicked();
00039         void on_aboutButton_clicked();
00040 
00041     private:
00042         GuiCore *guiCore;
00043         void setTextShadowEffects();
00044         void setTextShadow(QGraphicsDropShadowEffect *effect, QWidget *button);
00045         QGraphicsDropShadowEffect *parametersButtonEffect;
00046         QGraphicsDropShadowEffect *quitButtonEffect;
00047         QGraphicsDropShadowEffect *fullscreenButtonEffect;
00048         QGraphicsDropShadowEffect *helpButtonEffect;
00049         QGraphicsDropShadowEffect *aboutButtonEffect;
00050     };
00051 }
00052 
00053 #endif // CORNERWIDGET_HPP