ardour
Public Member Functions | Private Attributes | List of all members
WM::ProxyWithConstructor< T > Class Template Reference

#include <window_manager.h>

Inheritance diagram for WM::ProxyWithConstructor< T >:
WM::ProxyBase ARDOUR::SessionHandlePtr

Public Member Functions

 ProxyWithConstructor (const std::string &name, const std::string &menu_name, const boost::function< T *()> &c)
 
 ProxyWithConstructor (const std::string &name, const std::string &menu_name, const boost::function< T *()> &c, const XMLNode *node)
 
Gtk::Window * get (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 &)
 
virtual ~ProxyBase ()
 
void show ()
 
void show_all ()
 
void hide ()
 
void present ()
 
void maybe_show ()
 
bool 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::Action > action () const
 
void drop_window ()
 
void use_window (Gtk::Window &)
 
virtual void toggle ()
 
void set_state (const XMLNode &)
 
XMLNodeget_state () const
 
 operator bool () const
 
- Public Member Functions inherited from ARDOUR::SessionHandlePtr
 SessionHandlePtr (ARDOUR::Session *s)
 
 SessionHandlePtr ()
 
virtual ~SessionHandlePtr ()
 

Private Attributes

boost::function< T *()> creator
 

Additional Inherited Members

- Protected Member Functions inherited from WM::ProxyBase
void save_pos_and_size ()
 
bool delete_event_handler (GdkEventAny *ev)
 
void setup ()
 
- Protected Member Functions inherited from ARDOUR::SessionHandlePtr
virtual void session_going_away ()
 
- Protected Attributes inherited from WM::ProxyBase
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
 
- Protected Attributes inherited from ARDOUR::SessionHandlePtr
ARDOUR::Session_session
 
PBD::ScopedConnectionList _session_connections
 

Detailed Description

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

Definition at line 148 of file window_manager.h.

Constructor & Destructor Documentation

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

Definition at line 150 of file window_manager.h.

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

Definition at line 153 of file window_manager.h.

Member Function Documentation

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

Implements WM::ProxyBase.

Definition at line 156 of file window_manager.h.

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

Definition at line 172 of file window_manager.h.

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

Implements WM::ProxyBase.

Definition at line 176 of file window_manager.h.

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

Reimplemented from ARDOUR::SessionHandlePtr.

Definition at line 181 of file window_manager.h.

Member Data Documentation

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

Definition at line 191 of file window_manager.h.


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