From 5e26d3a305b8e2c193ef04681c3c00937505ce53 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 14 Nov 2007 21:19:27 +0000 Subject: shaded mode for the main display git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@183 90c681e8-e032-0410-971d-27865f9a5e38 --- src/titlebar.h | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'src/titlebar.h') diff --git a/src/titlebar.h b/src/titlebar.h index 1589effc0..4428a188c 100644 --- a/src/titlebar.h +++ b/src/titlebar.h @@ -21,11 +21,12 @@ #define TITLEBAR_H #include -#include "pixmapwidget.h" +#include +#include "pixmapwidget.h" #include "playlist.h" -#include #include "mainwindow.h" + /** @author Ilya Kotov */ @@ -34,7 +35,9 @@ class QMouseEvent; class Skin; class Button; - +class SymbolDisplay; +class TitleBarControl; +class ShadedVisual; class TitleBar : public PixmapWidget { @@ -45,10 +48,12 @@ public: ~TitleBar(); void setActive(bool); + void setInfo(const OutputState &st); private slots: void updateSkin(); void showMainMenu(); + void shade(); private: Skin *m_skin; @@ -57,9 +62,14 @@ private: Button *m_menu; Button *m_minimize; Button *m_shade; + Button *m_shade2; Button *m_close; - int x_diff, y_diff; - + SymbolDisplay *m_currentTime; + QString formatTime (int); + bool m_shaded; + bool m_align; + TitleBarControl *m_control; + ShadedVisual *m_visual; protected: void mousePressEvent(QMouseEvent*); -- cgit v1.2.3-13-gbd6f