summaryrefslogtreecommitdiffstats
path: root/src/gui/mphoneform.h
diff options
context:
space:
mode:
authorLubos Dolezel <lubos@dolezel.info>2015-06-08 23:53:43 +0200
committerLubos Dolezel <lubos@dolezel.info>2015-06-08 23:54:33 +0200
commita12e6ec5597528fe77cbbdd9ac42308c3147f7d5 (patch)
treeddd98b192a0624c9f53dd55542ae0ab2bc90defd /src/gui/mphoneform.h
parentb777beb72c0b5877039da813c29a76b472a40842 (diff)
downloadtwinkle-a12e6ec5597528fe77cbbdd9ac42308c3147f7d5.tar
twinkle-a12e6ec5597528fe77cbbdd9ac42308c3147f7d5.tar.gz
twinkle-a12e6ec5597528fe77cbbdd9ac42308c3147f7d5.tar.lz
twinkle-a12e6ec5597528fe77cbbdd9ac42308c3147f7d5.tar.xz
twinkle-a12e6ec5597528fe77cbbdd9ac42308c3147f7d5.zip
Added OSD with mute and hangup buttons (resolves #10)
Diffstat (limited to 'src/gui/mphoneform.h')
-rw-r--r--src/gui/mphoneform.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/mphoneform.h b/src/gui/mphoneform.h
index 14e490f..27be790 100644
--- a/src/gui/mphoneform.h
+++ b/src/gui/mphoneform.h
@@ -26,6 +26,8 @@
class t_phone;
extern t_phone *phone;
+class OSD;
+
class MphoneForm : public QMainWindow, public Ui::MphoneForm
{
Q_OBJECT
@@ -41,6 +43,7 @@ public:
bool getViewCompactLineStatus();
protected:
virtual void closeEvent( QCloseEvent * e ) override;
+ virtual bool event(QEvent * event) override;
public slots:
void fileExit();
void display( const QString & s );
@@ -169,9 +172,13 @@ public slots:
void whatsThis();
void sysTrayIconClicked(QSystemTrayIcon::ActivationReason);
+ void osdMuteClicked();
+
private:
void init();
void destroy();
+ bool shouldDisplayOSD();
+ void updateOSD();
QString lineSubstate2str( int line );
private:
@@ -202,7 +209,7 @@ private:
QMenu *buddyListPopupMenu;
QMenu *changeAvailabilityPopupMenu;
bool viewBuddyList;
-
+ OSD *osdWindow;
};
#endif