follow up of refs #643, allow to display icon in overlay window

* some optimization to check if icon is available
* menus for context menu
* allow to display icon/image in overlay window
This commit is contained in:
Klaus Basan
2016-04-15 20:26:32 +02:00
parent ddc7347927
commit b78308b059
16 changed files with 261 additions and 90 deletions

View File

@@ -15,6 +15,7 @@
#include "blackgui/blackguiexport.h"
#include "blackmisc/network/textmessage.h"
#include "blackmisc/statusmessagelist.h"
#include "blackmisc/pixmap.h"
#include "blackmisc/variant.h"
#include <QFrame>
#include <QScopedPointer>
@@ -55,6 +56,9 @@ namespace BlackGui
//! Single Text message mode
void setModeToTextMessage();
//! Display image
void setModeToImage();
//! Set header text
void setHeaderText(const QString &header);
@@ -81,6 +85,12 @@ namespace BlackGui
//! Info message, based on text message
void showOverlayTextMessage(const BlackMisc::Network::CTextMessage &textMessage, int timeOutMs = -1);
//! Image
void showOverlayImage(const BlackMisc::CPixmap &image, int timeOutMs = -1);
//! Image
void showOverlayImage(const QPixmap &image, int timeOutMs = -1);
//! Display one of the supported types
void showOverlayVariant(const BlackMisc::CVariant &variant, int timeOutMs = -1);