mirror of https://gitlab.com/cppit/jucipp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
714 B
28 lines
714 B
#ifndef JUCI_ENTRYBOX_H_ |
|
#define JUCI_ENTRYBOX_H_ |
|
|
|
#include <list> |
|
#include <functional> |
|
#include "gtkmm.h" |
|
|
|
class EntryBox : public Gtk::Box { |
|
public: |
|
class Entry : public Gtk::Entry { |
|
public: |
|
Entry(const std::string& content="", std::function<void(const std::string& content)> on_activate=nullptr, unsigned length=50); |
|
std::function<void(const std::string& content)> on_activate; |
|
}; |
|
class Button : public Gtk::Button { |
|
public: |
|
Button(const std::string& label, std::function<void()> on_activate=nullptr); |
|
std::function<void()> on_activate; |
|
}; |
|
public: |
|
EntryBox(); |
|
void clear(); |
|
void show(); |
|
std::list<Entry> entries; |
|
std::list<Button> buttons; |
|
}; |
|
|
|
#endif // JUCI_ENTRYBOX_H_
|
|
|