media widget fix
This commit is contained in:
34
include/widgets/notification/copyNotification.hpp
Normal file
34
include/widgets/notification/copyNotification.hpp
Normal file
@@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "services/dbus/messages.hpp"
|
||||
#include "widgets/notification/baseNotification.hpp"
|
||||
#include "gtkmm/box.h"
|
||||
|
||||
class CopyNotification : public BaseNotification {
|
||||
enum class CopyType {
|
||||
TEXT,
|
||||
IMAGE
|
||||
};
|
||||
|
||||
public:
|
||||
CopyNotification(uint64_t id,
|
||||
std::shared_ptr<Gdk::Monitor> monitor,
|
||||
NotifyMessage notify);
|
||||
virtual ~CopyNotification() = default;
|
||||
|
||||
protected:
|
||||
private:
|
||||
CopyType type;
|
||||
std::string copiedText;
|
||||
Glib::RefPtr<Gdk::Pixbuf> copiedImage;
|
||||
Gtk::Box mainBox;
|
||||
|
||||
std::string title;
|
||||
|
||||
void createImageNotification(NotifyMessage notify);
|
||||
void createTextNotification(NotifyMessage notify);
|
||||
|
||||
void setupTitle(std::string title);
|
||||
};
|
||||
Reference in New Issue
Block a user