Horizon
Loading...
Searching...
No Matches
recent_item_box.hpp
1#pragma once
2#include <gtkmm.h>
3
4namespace horizon {
5class RecentItemBox : public Gtk::EventBox {
6public:
7 RecentItemBox(const std::string &name, const std::string &path, const Glib::DateTime &time);
8 const std::string path;
9 typedef sigc::signal<void> type_signal_remove;
10 type_signal_remove signal_remove()
11 {
12 return s_signal_remove;
13 }
14
15 const std::string &get_name() const;
16
17private:
18 const Glib::DateTime time;
19 const std::string name;
20 void update_time();
21 Gtk::Label *time_label = nullptr;
22 Gtk::Menu menu;
23 type_signal_remove s_signal_remove;
24};
25} // namespace horizon
Definition recent_item_box.hpp:5