Ardour  9.0-pre0-582-g084a23a80d
Gtkmm2ext::UI Class Referenceabstract

#include <gtk_ui.h>

Inheritance diagram for Gtkmm2ext::UI:
[legend]

Classes

class  MyReceiver
 

Public Member Functions

 UI (std::string, std::string, int *argc, char **argv[])
 
virtual ~UI ()
 
void receive (Transmitter::Channel, const char *)
 
bool caller_is_ui_thread () const
 
bool running ()
 
void quit ()
 
int load_rcfile (std::string, bool themechange=false)
 
void run (Receiver &old_receiver)
 
void set_state (Gtk::Widget *w, Gtk::StateType state)
 
void popup_error (const std::string &text)
 
void flush_pending (float timeout=0)
 
void toggle_errors ()
 
void show_errors ()
 
void dump_errors (std::ostream &, size_t limit=0)
 
void clear_errors ()
 
void touch_display (Touchable *)
 
void set_tip (Gtk::Widget &w, const gchar *tip)
 
void set_tip (Gtk::Widget &w, const std::string &tip)
 
void set_tip (Gtk::Widget *w, const gchar *tip, const gchar *hlp="")
 
void idle_add (int(*func)(void *), void *arg)
 
Gtk::Mainmain () const
 
virtual int starting ()=0
 
- Public Member Functions inherited from AbstractUI< UIRequest >
 AbstractUI (const std::string &name)
 
virtual ~AbstractUI ()
 
void register_thread (pthread_t, std::string, uint32_t num_requests)
 
bool call_slot (EventLoop::InvalidationRecord *, const std::function< void()> &)
 
Glib::Threads::RWLock & slot_invalidation_rwlock ()
 
- Public Member Functions inherited from BaseUI
 BaseUI (const std::string &name)
 
virtual ~BaseUI ()
 
BaseUIbase_instance ()
 
Glib::RefPtr< Glib::MainLoop > main_loop () const
 
bool caller_is_self () const
 
bool ok () const
 
void run ()
 
void quit ()
 
- Public Member Functions inherited from PBD::EventLoop
 EventLoop (std::string const &)
 
virtual ~EventLoop ()
 
virtual bool call_slot (InvalidationRecord *, const std::function< void()> &)=0
 
std::string event_loop_name () const
 

Static Public Member Functions

static UIinstance ()
 
static bool just_hide_it (GdkEventAny *, Gtk::Window *)
 
- Static Public Member Functions inherited from BaseUI
static RequestType new_request_type ()
 
static void set_thread_priority (int p)
 
- Static Public Member Functions inherited from PBD::EventLoop
static void * invalidate_request (void *data)
 
static EventLoopget_event_loop_for_thread ()
 
static void set_event_loop_for_thread (EventLoop *ui)
 
static std::vector< ThreadBufferMappingget_request_buffers_for_target_thread (const std::string &)
 
static void pre_register (const std::string &emitting_thread_name, uint32_t num_requests)
 
static void remove_request_buffer_from_map (pthread_t)
 
static InvalidationRecord__invalidator (sigc::trackable &trackable, const char *, int)
 

Public Attributes

sigc::signal< void > theme_changed
 
Gtkmm2ext::Bindingsglobal_bindings
 
- Public Attributes inherited from AbstractUI< UIRequest >
Glib::Threads::RWLock request_buffer_map_lock
 
- Public Attributes inherited from PBD::EventLoop
std::list< InvalidationRecord * > trash
 

Protected Member Functions

virtual void handle_fatal (const char *)
 
virtual void display_message (const char *prefix, gint prefix_len, Glib::RefPtr< Gtk::TextBuffer::Tag > ptag, Glib::RefPtr< Gtk::TextBuffer::Tag > mtag, const char *msg)
 
- Protected Member Functions inherited from AbstractUI< UIRequest >
UIRequest * get_request (RequestType)
 
void handle_ui_requests ()
 
void send_request (UIRequest *)
 
virtual void do_request (UIRequest *)=0
 
RequestBuffer * get_per_thread_request_buffer ()
 
- Protected Member Functions inherited from BaseUI
bool signal_running ()
 
virtual void thread_init ()
 
int set_thread_priority () const
 
bool request_handler (Glib::IOCondition)
 
void signal_new_request ()
 
void attach_request_source ()
 
virtual void maybe_install_precall_handler (Glib::RefPtr< Glib::MainContext >)
 

Private Member Functions

void process_error_message (Transmitter::Channel, const char *)
 
void do_quit ()
 
void color_selection_done (bool status)
 
bool color_selection_deleted (GdkEventAny *)
 
void do_request (UIRequest *)
 

Static Private Member Functions

static void signal_pipe_callback (void *, gint, GdkInputCondition)
 

Private Attributes

MyReceiver _receiver
 
bool _active
 
Gtk::MaintheMain
 
Gtk::Tooltipstips
 
TextViewererrors
 
Glib::RefPtr< Gtk::TextBuffer::Tagfatal_ptag
 
Glib::RefPtr< Gtk::TextBuffer::Tagfatal_mtag
 
Glib::RefPtr< Gtk::TextBuffer::Tagerror_ptag
 
Glib::RefPtr< Gtk::TextBuffer::Tagerror_mtag
 
Glib::RefPtr< Gtk::TextBuffer::Tagwarning_ptag
 
Glib::RefPtr< Gtk::TextBuffer::Tagwarning_mtag
 
Glib::RefPtr< Gtk::TextBuffer::Taginfo_ptag
 
Glib::RefPtr< Gtk::TextBuffer::Taginfo_mtag
 
Glib::RefPtr< Gtk::TextBuffer::Tagdebug_ptag
 
Glib::RefPtr< Gtk::TextBuffer::Tagdebug_mtag
 
Glib::Threads::Mutex error_lock
 
std::list< std::string > error_stack
 
bool color_picked
 

Static Private Attributes

static UItheGtkUI
 

Additional Inherited Members

- Public Types inherited from PBD::EventLoop
enum  RequestType { range_guarantee = ~0 }
 
- Static Public Attributes inherited from BaseUI
static RequestType CallSlot
 
static RequestType Quit
 
- Protected Types inherited from AbstractUI< UIRequest >
typedef RequestBuffer::rw_vector RequestBufferVector
 
typedef std::map< pthread_t, RequestBuffer * >::iterator RequestBufferMapIterator
 
typedef std::map< pthread_t, RequestBuffer * > RequestBufferMap
 
- Protected Attributes inherited from AbstractUI< UIRequest >
RequestBufferMap request_buffers
 
std::list< UIRequest * > request_list
 
PBD::ScopedConnection new_thread_connection
 
- Protected Attributes inherited from BaseUI
bool _ok
 
Glib::RefPtr< Glib::MainLoop > _main_loop
 
Glib::RefPtr< Glib::MainContext > m_context
 
PBD::Thread_run_loop_thread
 
Glib::Threads::Mutex _run_lock
 
Glib::Threads::Cond _running
 

Detailed Description

Definition at line 104 of file gtk_ui.h.

Constructor & Destructor Documentation

◆ UI()

Gtkmm2ext::UI::UI ( std::string  ,
std::string  ,
int *  argc,
char **  argv[] 
)

◆ ~UI()

virtual Gtkmm2ext::UI::~UI ( )
virtual

Member Function Documentation

◆ caller_is_ui_thread()

bool Gtkmm2ext::UI::caller_is_ui_thread ( ) const

◆ clear_errors()

void Gtkmm2ext::UI::clear_errors ( )
inline

Definition at line 146 of file gtk_ui.h.

◆ color_selection_deleted()

bool Gtkmm2ext::UI::color_selection_deleted ( GdkEventAny )
private

◆ color_selection_done()

void Gtkmm2ext::UI::color_selection_done ( bool  status)
private

◆ display_message()

virtual void Gtkmm2ext::UI::display_message ( const char *  prefix,
gint  prefix_len,
Glib::RefPtr< Gtk::TextBuffer::Tag ptag,
Glib::RefPtr< Gtk::TextBuffer::Tag mtag,
const char *  msg 
)
protectedvirtual

Reimplemented in ARDOUR_UI.

◆ do_quit()

void Gtkmm2ext::UI::do_quit ( )
private

◆ do_request()

void Gtkmm2ext::UI::do_request ( UIRequest )
private

◆ dump_errors()

void Gtkmm2ext::UI::dump_errors ( std::ostream &  ,
size_t  limit = 0 
)

◆ flush_pending()

void Gtkmm2ext::UI::flush_pending ( float  timeout = 0)

◆ handle_fatal()

virtual void Gtkmm2ext::UI::handle_fatal ( const char *  )
protectedvirtual

◆ idle_add()

void Gtkmm2ext::UI::idle_add ( int(*)(void *)  func,
void *  arg 
)

◆ instance()

static UI* Gtkmm2ext::UI::instance ( )
inlinestatic

Definition at line 123 of file gtk_ui.h.

◆ just_hide_it()

static bool Gtkmm2ext::UI::just_hide_it ( GdkEventAny ,
Gtk::Window  
)
static

◆ load_rcfile()

int Gtkmm2ext::UI::load_rcfile ( std::string  ,
bool  themechange = false 
)

◆ main()

Gtk::Main& Gtkmm2ext::UI::main ( ) const
inline

Definition at line 153 of file gtk_ui.h.

◆ popup_error()

void Gtkmm2ext::UI::popup_error ( const std::string &  text)

◆ process_error_message()

void Gtkmm2ext::UI::process_error_message ( Transmitter::Channel  ,
const char *   
)
private

◆ quit()

void Gtkmm2ext::UI::quit ( )

◆ receive()

void Gtkmm2ext::UI::receive ( Transmitter::Channel  ,
const char *   
)

◆ run()

void Gtkmm2ext::UI::run ( Receiver old_receiver)

◆ running()

bool Gtkmm2ext::UI::running ( )

◆ set_state()

void Gtkmm2ext::UI::set_state ( Gtk::Widget w,
Gtk::StateType  state 
)

◆ set_tip() [1/3]

void Gtkmm2ext::UI::set_tip ( Gtk::Widget w,
const gchar *  tip 
)

◆ set_tip() [2/3]

void Gtkmm2ext::UI::set_tip ( Gtk::Widget w,
const std::string &  tip 
)

◆ set_tip() [3/3]

void Gtkmm2ext::UI::set_tip ( Gtk::Widget w,
const gchar *  tip,
const gchar *  hlp = "" 
)

◆ show_errors()

void Gtkmm2ext::UI::show_errors ( )

◆ signal_pipe_callback()

static void Gtkmm2ext::UI::signal_pipe_callback ( void *  ,
gint  ,
GdkInputCondition   
)
staticprivate

◆ starting()

virtual int Gtkmm2ext::UI::starting ( )
pure virtual

Implemented in ARDOUR_UI.

◆ toggle_errors()

void Gtkmm2ext::UI::toggle_errors ( )

◆ touch_display()

void Gtkmm2ext::UI::touch_display ( Touchable )

Member Data Documentation

◆ _active

bool Gtkmm2ext::UI::_active
private

Definition at line 175 of file gtk_ui.h.

◆ _receiver

MyReceiver Gtkmm2ext::UI::_receiver
private

Definition at line 117 of file gtk_ui.h.

◆ color_picked

bool Gtkmm2ext::UI::color_picked
private

Definition at line 201 of file gtk_ui.h.

◆ debug_mtag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::debug_mtag
private

Definition at line 190 of file gtk_ui.h.

◆ debug_ptag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::debug_ptag
private

Definition at line 189 of file gtk_ui.h.

◆ error_lock

Glib::Threads::Mutex Gtkmm2ext::UI::error_lock
private

Definition at line 196 of file gtk_ui.h.

◆ error_mtag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::error_mtag
private

Definition at line 184 of file gtk_ui.h.

◆ error_ptag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::error_ptag
private

Definition at line 183 of file gtk_ui.h.

◆ error_stack

std::list<std::string> Gtkmm2ext::UI::error_stack
private

Definition at line 197 of file gtk_ui.h.

◆ errors

TextViewer* Gtkmm2ext::UI::errors
private

Definition at line 180 of file gtk_ui.h.

◆ fatal_mtag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::fatal_mtag
private

Definition at line 182 of file gtk_ui.h.

◆ fatal_ptag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::fatal_ptag
private

Definition at line 181 of file gtk_ui.h.

◆ global_bindings

Gtkmm2ext::Bindings* Gtkmm2ext::UI::global_bindings

Definition at line 164 of file gtk_ui.h.

◆ info_mtag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::info_mtag
private

Definition at line 188 of file gtk_ui.h.

◆ info_ptag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::info_ptag
private

Definition at line 187 of file gtk_ui.h.

◆ theGtkUI

UI* Gtkmm2ext::UI::theGtkUI
staticprivate

Definition at line 173 of file gtk_ui.h.

◆ theMain

Gtk::Main* Gtkmm2ext::UI::theMain
private

Definition at line 176 of file gtk_ui.h.

◆ theme_changed

sigc::signal<void> Gtkmm2ext::UI::theme_changed

Definition at line 160 of file gtk_ui.h.

◆ tips

Gtk::Tooltips* Gtkmm2ext::UI::tips
private

Definition at line 178 of file gtk_ui.h.

◆ warning_mtag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::warning_mtag
private

Definition at line 186 of file gtk_ui.h.

◆ warning_ptag

Glib::RefPtr<Gtk::TextBuffer::Tag> Gtkmm2ext::UI::warning_ptag
private

Definition at line 185 of file gtk_ui.h.


The documentation for this class was generated from the following file: