diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-15 01:36:06 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-15 01:36:06 -0500 |
commit | af31402b7f1d9d118f07f0fd6554319dbd6b44b6 (patch) | |
tree | 309ef8ee1b4dc7e787193f4eaffa219f0b68213d /src/components/chatinput.hpp | |
parent | 8324172a90752403edcec2203a2abb386046cc8f (diff) | |
parent | 4bce7b7523caa26023b1a2f5e02e6646ed29f5e0 (diff) | |
download | abaddon-portaudio-af31402b7f1d9d118f07f0fd6554319dbd6b44b6.tar.gz abaddon-portaudio-af31402b7f1d9d118f07f0fd6554319dbd6b44b6.zip |
Merge branch 'master' into theming
Diffstat (limited to 'src/components/chatinput.hpp')
-rw-r--r-- | src/components/chatinput.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/components/chatinput.hpp b/src/components/chatinput.hpp index 7ee3921..231d67c 100644 --- a/src/components/chatinput.hpp +++ b/src/components/chatinput.hpp @@ -7,10 +7,13 @@ public: ChatInputAttachmentItem(const Glib::RefPtr<Gio::File> &file); ChatInputAttachmentItem(const Glib::RefPtr<Gio::File> &file, const Glib::RefPtr<Gdk::Pixbuf> &pb, bool is_extant = false); - [[nodiscard]] Glib::RefPtr<Gio::File> GetFile() const; - [[nodiscard]] ChatSubmitParams::AttachmentType GetType() const; - [[nodiscard]] std::string GetFilename() const; - [[nodiscard]] bool IsTemp() const noexcept; + Glib::RefPtr<Gio::File> GetFile() const; + ChatSubmitParams::AttachmentType GetType() const; + std::string GetFilename() const; + std::optional<std::string> GetDescription() const; + bool IsTemp() const noexcept; + bool IsImage() const noexcept; + void RemoveIfTemp(); private: @@ -21,6 +24,7 @@ private: Gtk::Menu m_menu; Gtk::MenuItem m_menu_remove; Gtk::MenuItem m_menu_set_filename; + Gtk::MenuItem m_menu_set_alt_text; Gtk::Box m_box; Gtk::Label m_label; @@ -29,6 +33,8 @@ private: Glib::RefPtr<Gio::File> m_file; ChatSubmitParams::AttachmentType m_type; std::string m_filename; + std::string m_description; + bool m_is_image = false; private: using type_signal_item_removed = sigc::signal<void>; |