Ardour  8.7-15-gadf511264b
ArdourWidgets::Tabbable Class Reference

#include <tabbable.h>

Inheritance diagram for ArdourWidgets::Tabbable:
[legend]

Public Member Functions

 Tabbable (Gtk::Widget &, const std::string &user_visible_name, std::string const &untranslated_name, bool tabbed_by_default=true)
 
 ~Tabbable ()
 
void add_to_notebook (Gtk::Notebook &notebook)
 
void make_visible ()
 
void make_invisible ()
 
void change_visibility ()
 
void attach ()
 
void detach ()
 
Gtk::Widgetcontents () const
 
Gtk::Windowget (bool create=false)
 
Gtk::Windowown_window ()
 
virtual Gtk::Windowuse_own_window (bool and_pack_it)
 
void set_default_tabbed (bool yn)
 
virtual void show_window ()
 
bool window_visible () const
 
bool tabbed () const
 
bool tabbed_by_default () const
 
Gtk::Windowcurrent_toplevel () const
 
Gtk::Notebooktab_root_drop ()
 
int set_state (const XMLNode &, int version)
 
XMLNodeget_state () 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 &)
 
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 ()
 

Static Public Member Functions

static std::string xml_node_name ()
 
- Static Public Member Functions inherited from Gtkmm2ext::WindowProxy
static std::string xml_node_name ()
 

Public Attributes

sigc::signal1< void, Tabbable & > StateChange
 
- Public Attributes inherited from Gtkmm2ext::WindowProxy
sigc::signal0< void > signal_map
 
sigc::signal0< void > signal_unmap
 
- Public Attributes inherited from PBD::Stateful
PBD::Signal1< void, const PropertyChange & > PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal0< void > Destroyed
 
PBD::Signal0< void > DropReferences
 

Protected Member Functions

bool delete_event_handler (GdkEventAny *ev)
 
- Protected Member Functions inherited from Gtkmm2ext::WindowProxy
void save_pos_and_size ()
 
void set_pos_and_size ()
 
void set_pos ()
 
virtual bool configure_handler (GdkEventConfigure *)
 
void map_handler ()
 
void unmap_handler ()
 
virtual void setup ()
 
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

sigc::signal1< void, bool > signal_tabbed_changed
 
- 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
 

Private Member Functions

void show_tab ()
 
void hide_tab ()
 
bool tab_close_clicked (GdkEventButton *)
 
void show_own_window (bool and_pack_it)
 
void window_mapped ()
 
void window_unmapped ()
 

Private Attributes

Gtk::Widget_contents
 
Gtk::Notebook _own_notebook
 
Gtk::Notebook_parent_notebook
 
bool tab_requested_by_state
 

Additional Inherited Members

- Public Types inherited from Gtkmm2ext::WindowProxy
enum  StateMask { Position = 0x1 , Size = 0x2 }
 
- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 

Detailed Description

Definition at line 44 of file tabbable.h.

Constructor & Destructor Documentation

◆ Tabbable()

ArdourWidgets::Tabbable::Tabbable ( Gtk::Widget ,
const std::string &  user_visible_name,
std::string const &  untranslated_name,
bool  tabbed_by_default = true 
)

◆ ~Tabbable()

ArdourWidgets::Tabbable::~Tabbable ( )

Member Function Documentation

◆ add_to_notebook()

void ArdourWidgets::Tabbable::add_to_notebook ( Gtk::Notebook notebook)

◆ attach()

void ArdourWidgets::Tabbable::attach ( )

◆ change_visibility()

void ArdourWidgets::Tabbable::change_visibility ( )

◆ contents()

Gtk::Widget& ArdourWidgets::Tabbable::contents ( ) const
inline

Definition at line 57 of file tabbable.h.

◆ current_toplevel()

Gtk::Window* ArdourWidgets::Tabbable::current_toplevel ( ) const

◆ delete_event_handler()

bool ArdourWidgets::Tabbable::delete_event_handler ( GdkEventAny ev)
protectedvirtual

Reimplemented from Gtkmm2ext::WindowProxy.

◆ detach()

void ArdourWidgets::Tabbable::detach ( )

◆ get()

Gtk::Window* ArdourWidgets::Tabbable::get ( bool  create = false)
virtual

◆ get_state()

XMLNode& ArdourWidgets::Tabbable::get_state ( ) const
virtual

Reimplemented from Gtkmm2ext::WindowProxy.

◆ hide_tab()

void ArdourWidgets::Tabbable::hide_tab ( )
private

◆ make_invisible()

void ArdourWidgets::Tabbable::make_invisible ( )

◆ make_visible()

void ArdourWidgets::Tabbable::make_visible ( )

◆ own_window()

Gtk::Window* ArdourWidgets::Tabbable::own_window ( )
inline

Definition at line 60 of file tabbable.h.

◆ set_default_tabbed()

void ArdourWidgets::Tabbable::set_default_tabbed ( bool  yn)

◆ set_state()

int ArdourWidgets::Tabbable::set_state ( const XMLNode ,
int  version 
)
virtual

Reimplemented from Gtkmm2ext::WindowProxy.

◆ show_own_window()

void ArdourWidgets::Tabbable::show_own_window ( bool  and_pack_it)
private

◆ show_tab()

void ArdourWidgets::Tabbable::show_tab ( )
private

◆ show_window()

virtual void ArdourWidgets::Tabbable::show_window ( )
virtual

Reimplemented in Mixer_UI.

◆ tab_close_clicked()

bool ArdourWidgets::Tabbable::tab_close_clicked ( GdkEventButton )
private

◆ tab_root_drop()

Gtk::Notebook* ArdourWidgets::Tabbable::tab_root_drop ( )

◆ tabbed()

bool ArdourWidgets::Tabbable::tabbed ( ) const

◆ tabbed_by_default()

bool ArdourWidgets::Tabbable::tabbed_by_default ( ) const

◆ use_own_window()

virtual Gtk::Window* ArdourWidgets::Tabbable::use_own_window ( bool  and_pack_it)
virtual

◆ window_mapped()

void ArdourWidgets::Tabbable::window_mapped ( )
private

◆ window_unmapped()

void ArdourWidgets::Tabbable::window_unmapped ( )
private

◆ window_visible()

bool ArdourWidgets::Tabbable::window_visible ( ) const

◆ xml_node_name()

static std::string ArdourWidgets::Tabbable::xml_node_name ( )
static

Member Data Documentation

◆ _contents

Gtk::Widget& ArdourWidgets::Tabbable::_contents
private

Definition at line 89 of file tabbable.h.

◆ _own_notebook

Gtk::Notebook ArdourWidgets::Tabbable::_own_notebook
private

Definition at line 90 of file tabbable.h.

◆ _parent_notebook

Gtk::Notebook* ArdourWidgets::Tabbable::_parent_notebook
private

Definition at line 91 of file tabbable.h.

◆ signal_tabbed_changed

sigc::signal1<void, bool> ArdourWidgets::Tabbable::signal_tabbed_changed
protected

Definition at line 86 of file tabbable.h.

◆ StateChange

sigc::signal1<void,Tabbable&> ArdourWidgets::Tabbable::StateChange

Definition at line 81 of file tabbable.h.

◆ tab_requested_by_state

bool ArdourWidgets::Tabbable::tab_requested_by_state
private

Definition at line 92 of file tabbable.h.


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