Ardour  9.0-pre0-350-gf17a656217
WM::ProxyWithConstructor< T > Class Template Reference

#include <window_manager.h>

Inheritance diagram for WM::ProxyWithConstructor< T >:
[legend]

Public Member Functions

 ProxyWithConstructor (const std::string &name, const std::string &menu_name, const std::function< T *()> &c)
 
 ProxyWithConstructor (const std::string &name, const std::string &menu_name, const std::function< T *()> &c, const XMLNode *node)
 
Gtk::Windowget (bool create=false)
 
T * operator-> ()
 
ARDOUR::SessionHandlePtrsession_handle ()
 
void set_session (ARDOUR::Session *s)
 
- Public Member Functions inherited from WM::ProxyBase
 ProxyBase (const std::string &name, const std::string &menu_name)
 
 ProxyBase (const std::string &name, const std::string &menu_name, const XMLNode &)
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 
virtual ARDOUR::Sessionsession () const
 
- Public Member Functions inherited from Gtkmm2ext::WindowProxy
 WindowProxy (const std::string &name, const std::string &menu_name)
 
 WindowProxy (const std::string &name, const std::string &menu_name, const XMLNode &)
 
virtual ~WindowProxy ()
 
void show ()
 
void show_all ()
 
void hide ()
 
void present ()
 
void maybe_show ()
 
virtual bool visible () const
 
virtual bool fully_visible () const
 
const std::string & name () const
 
const std::string & menu_name () const
 
std::string action_name () const
 
void set_action (Glib::RefPtr< Gtk::Action >)
 
Glib::RefPtr< Gtk::Actionaction () const
 
void drop_window ()
 
void use_window (Gtk::Window &)
 
void set_transient_for (Gtk::Window &)
 
virtual int set_state (const XMLNode &, int version)
 
virtual XMLNodeget_state () const
 
void set_state_mask (StateMask)
 
StateMask state_mask () const
 
 operator bool () const
 
- Public Member Functions inherited from PBD::Stateful
 Stateful ()
 
virtual ~Stateful ()
 
virtual bool apply_change (PropertyBase const &)
 
PropertyChange apply_changes (PropertyList const &)
 
const OwnedPropertyListproperties () const
 
void add_property (PropertyBase &s)
 
void add_extra_xml (XMLNode &)
 
XMLNodeextra_xml (const std::string &str, bool add_if_missing=false)
 
void save_extra_xml (const XMLNode &)
 
const PBD::IDid () const
 
bool set_id (const XMLNode &)
 
void set_id (const std::string &)
 
void reset_id ()
 
void clear_changes ()
 
virtual void clear_owned_changes ()
 
PropertyListget_changes_as_properties (PBD::Command *) const
 
virtual void rdiff (std::vector< PBD::Command * > &) const
 
bool changed () const
 
virtual PropertyListproperty_factory (const XMLNode &) const
 
virtual void suspend_property_changes ()
 
virtual void resume_property_changes ()
 
bool property_changes_suspended () const
 
- Public Member Functions inherited from PBD::Destructible
virtual ~Destructible ()
 
virtual void drop_references ()
 

Private Attributes

std::function< T *()> creator
 

Additional Inherited Members

- Public Types inherited from Gtkmm2ext::WindowProxy
enum  StateMask { Position = 0x1 , Size = 0x2 }
 
- Static Public Member Functions inherited from Gtkmm2ext::WindowProxy
static std::string xml_node_name ()
 
- Public Attributes inherited from Gtkmm2ext::WindowProxy
sigc::signal0< void > signal_map
 
sigc::signal0< void > signal_unmap
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal< void(const PropertyChange &)> PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 
- Protected Member Functions inherited from WM::ProxyBase
void setup ()
 
- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 
- Protected Member Functions inherited from Gtkmm2ext::WindowProxy
void save_pos_and_size ()
 
void set_pos_and_size ()
 
void set_pos ()
 
virtual bool delete_event_handler (GdkEventAny *ev)
 
virtual bool configure_handler (GdkEventConfigure *)
 
void map_handler ()
 
void unmap_handler ()
 
void toggle ()
 
- Protected Member Functions inherited from PBD::Stateful
void add_instant_xml (XMLNode &, const std::string &directory_path)
 
XMLNodeinstant_xml (const std::string &str, const std::string &directory_path)
 
void add_properties (XMLNode &) const
 
PropertyChange set_values (XMLNode const &)
 
virtual void post_set (const PropertyChange &)
 
virtual void send_change (const PropertyChange &)
 
virtual void mid_thaw (const PropertyChange &)
 
bool regenerate_xml_or_string_ids () const
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 
- Protected Attributes inherited from Gtkmm2ext::WindowProxy
std::string _name
 
std::string _menu_name
 
Glib::RefPtr< Gtk::Action_action
 
Gtk::Window_window
 
bool _visible
 true if the window should be visible on startup More...
 
int _x_off
 x position More...
 
int _y_off
 y position More...
 
int _width
 width More...
 
int _height
 height More...
 
Gtkmm2ext::VisibilityTrackervistracker
 
StateMask _state_mask
 
sigc::connection delete_connection
 
sigc::connection configure_connection
 
sigc::connection map_connection
 
sigc::connection unmap_connection
 
- Protected Attributes inherited from PBD::Stateful
XMLNode_extra_xml
 
XMLNode_instant_xml
 
PBD::PropertyChange _pending_changed
 
Glib::Threads::Mutex _lock
 
std::string _xml_node_name
 name of node to use for this object in XML More...
 
OwnedPropertyList_properties
 

Detailed Description

template<typename T>
class WM::ProxyWithConstructor< T >

Definition at line 120 of file window_manager.h.

Constructor & Destructor Documentation

◆ ProxyWithConstructor() [1/2]

template<typename T >
WM::ProxyWithConstructor< T >::ProxyWithConstructor ( const std::string &  name,
const std::string &  menu_name,
const std::function< T *()> &  c 
)
inline

Definition at line 123 of file window_manager.h.

◆ ProxyWithConstructor() [2/2]

template<typename T >
WM::ProxyWithConstructor< T >::ProxyWithConstructor ( const std::string &  name,
const std::string &  menu_name,
const std::function< T *()> &  c,
const XMLNode node 
)
inline

Definition at line 126 of file window_manager.h.

Member Function Documentation

◆ get()

template<typename T >
Gtk::Window* WM::ProxyWithConstructor< T >::get ( bool  create = false)
inlinevirtual

Implements Gtkmm2ext::WindowProxy.

Definition at line 129 of file window_manager.h.

◆ operator->()

template<typename T >
T* WM::ProxyWithConstructor< T >::operator-> ( )
inline

Definition at line 145 of file window_manager.h.

◆ session_handle()

template<typename T >
ARDOUR::SessionHandlePtr* WM::ProxyWithConstructor< T >::session_handle ( )
inlinevirtual

Implements WM::ProxyBase.

Definition at line 149 of file window_manager.h.

◆ set_session()

template<typename T >
void WM::ProxyWithConstructor< T >::set_session ( ARDOUR::Session s)
inlinevirtual

Reimplemented from ARDOUR::SessionHandlePtr.

Definition at line 154 of file window_manager.h.

Member Data Documentation

◆ creator

template<typename T >
std::function<T*()> WM::ProxyWithConstructor< T >::creator
private

Definition at line 169 of file window_manager.h.


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