From abaab158ba5c7e46ecfee3846ae9d596df871212 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 27 Jan 2010 22:25:47 +0000 Subject: added template editor, improved status icon plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1530 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/General/statusicon/statusiconpopupwidget.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/plugins/General/statusicon/statusiconpopupwidget.h') diff --git a/src/plugins/General/statusicon/statusiconpopupwidget.h b/src/plugins/General/statusicon/statusiconpopupwidget.h index bcef0cc87..97ab8835f 100644 --- a/src/plugins/General/statusicon/statusiconpopupwidget.h +++ b/src/plugins/General/statusicon/statusiconpopupwidget.h @@ -1,8 +1,8 @@ /*************************************************************************** * Copyright (C) 2009 by Artur Guzik * - * a.guzik88@gmail.com - * - * Copyright (C) 2009 by Ilya Kotov * + * a.guzik88@gmail.com * + * * + * Copyright (C) 2009-2010 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -24,6 +24,8 @@ #ifndef STATUSICONPOPUPWIDGET_H #define STATUSICONPOPUPWIDGET_H +#define DEFAULT_TEMPLATE "%if(%t,%t,%f)\n%if(%p,
%p,)\n%if(%a,
%a,)\n%if(%l,
%l,)" + #include #include #include @@ -44,7 +46,7 @@ public: StatusIconPopupWidget(QWidget * parent = 0); ~StatusIconPopupWidget(); - void showInfo(int x, int y, int delay, bool splitFileName); //x,y are tray icon position + void showInfo(int x, int y); //x,y are tray icon position protected: virtual void mousePressEvent(QMouseEvent *); @@ -66,6 +68,8 @@ private: int m_lastTrayX; int m_lastTrayY; int m_splitFileName; + QString m_template; + bool m_showProgress; }; class TimeBar : public QProgressBar -- cgit v1.2.3-13-gbd6f