Ardour  9.0-pre0-582-g084a23a80d
ArdourWidgets::Tabbable Class Reference

#include <tabbable.h>

Inheritance diagram for ArdourWidgets::Tabbable:
[legend]

Public Types

enum  PaneLayout {
  NoPanes = 0x00 , PaneLeft = 0x01 , PaneRight = 0x02 , PaneBottom = 0x04 ,
  AttLeft = 0x08 , AttBottom = 0x10
}
 
- Public Types inherited from Gtkmm2ext::WindowProxy
enum  StateMask { Position = 0x1 , Size = 0x2 }
 

Public Member Functions

 Tabbable (const std::string &user_visible_name, std::string const &untranslated_name, Gtk::Widget *top=NULL, bool tabbed_by_default=true, PaneLayout pl=PaneRight)
 
 ~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::EventBoxtab_btn_box ()
 
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
 
void att_left_button_toggled ()
 
void att_right_button_toggled ()
 
void att_bottom_button_toggled ()
 
- 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::Signal< void(const PropertyChange &)> PropertyChanged
 
- Public Attributes inherited from PBD::Destructible
PBD::Signal< void()> Destroyed
 
PBD::Signal< void()> DropReferences
 

Protected Member Functions

virtual void showhide_att_left (bool yn)
 
virtual void showhide_att_right (bool yn)
 
virtual void showhide_att_bottom (bool yn)
 
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

Gtk::HBox content_header_hbox
 
EventBoxExt content_app_bar
 
Gtk::EventBox content_attachments
 
Gtk::HBox content_attachment_hbox
 
EventBoxExt content_tabbables
 
HPane content_left_pane
 
Gtk::HBox content_hbox
 
EventBoxExt content_att_left
 
VPane content_midlevel_vpane
 
Gtk::VBox content_midlevel_vbox
 
HPane content_right_pane
 
Gtk::VBox content_inner_vbox
 
EventBoxExt content_main_top
 
EventBoxExt content_main
 
Gtk::VBox content_right_vbox
 
EventBoxExt content_att_right
 
EventBoxExt content_att_bottom
 
ArdourWidgets::ArdourButton left_attachment_button
 
ArdourWidgets::ArdourButton right_attachment_button
 
ArdourWidgets::ArdourButton bottom_attachment_button
 
- 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 default_layout ()
 
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::VBox _content_vbox
 
Gtk::Widget_contents
 
Gtk::Notebook _own_notebook
 
Gtk::Notebook_parent_notebook
 
bool tab_requested_by_state
 
PaneLayout _panelayout
 

Additional Inherited Members

- Static Public Attributes inherited from PBD::Stateful
static int current_state_version
 
static int loading_state_version
 

Detailed Description

Definition at line 48 of file tabbable.h.

Member Enumeration Documentation

◆ PaneLayout

Enumerator
NoPanes 

disable all attachment buttons, do not pack any panes or attachments

PaneLeft 

left side attachment is a resizable pane

PaneRight 

pack a resizable Pane on the right-side

PaneBottom 

bottom Ebox is a resizable Pane

AttLeft 

if PaneLeft is not set, pack a fixed size Ebox on the left (Editor-Mixer)

AttBottom 

bottom is a fixed size EBox attachment

Definition at line 51 of file tabbable.h.

Constructor & Destructor Documentation

◆ Tabbable()

ArdourWidgets::Tabbable::Tabbable ( const std::string &  user_visible_name,
std::string const &  untranslated_name,
Gtk::Widget top = NULL,
bool  tabbed_by_default = true,
PaneLayout  pl = PaneRight 
)

◆ ~Tabbable()

ArdourWidgets::Tabbable::~Tabbable ( )

Member Function Documentation

◆ add_to_notebook()

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

◆ att_bottom_button_toggled()

void ArdourWidgets::Tabbable::att_bottom_button_toggled ( )

◆ att_left_button_toggled()

void ArdourWidgets::Tabbable::att_left_button_toggled ( )

◆ att_right_button_toggled()

void ArdourWidgets::Tabbable::att_right_button_toggled ( )

◆ attach()

void ArdourWidgets::Tabbable::attach ( )

◆ change_visibility()

void ArdourWidgets::Tabbable::change_visibility ( )

◆ contents()

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

Definition at line 70 of file tabbable.h.

◆ current_toplevel()

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

◆ default_layout()

void ArdourWidgets::Tabbable::default_layout ( )
private

◆ 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 79 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.

◆ showhide_att_bottom()

virtual void ArdourWidgets::Tabbable::showhide_att_bottom ( bool  yn)
protectedvirtual

Reimplemented in TriggerPage.

◆ showhide_att_left()

virtual void ArdourWidgets::Tabbable::showhide_att_left ( bool  yn)
protectedvirtual

Reimplemented in Editor.

◆ showhide_att_right()

virtual void ArdourWidgets::Tabbable::showhide_att_right ( bool  yn)
protectedvirtual

◆ tab_btn_box()

Gtk::EventBox& ArdourWidgets::Tabbable::tab_btn_box ( )
inline

Definition at line 76 of file tabbable.h.

◆ 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

◆ _content_vbox

Gtk::VBox ArdourWidgets::Tabbable::_content_vbox
private

Definition at line 199 of file tabbable.h.

◆ _contents

Gtk::Widget* ArdourWidgets::Tabbable::_contents
private

Definition at line 200 of file tabbable.h.

◆ _own_notebook

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

Definition at line 201 of file tabbable.h.

◆ _panelayout

PaneLayout ArdourWidgets::Tabbable::_panelayout
private

Definition at line 204 of file tabbable.h.

◆ _parent_notebook

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

Definition at line 202 of file tabbable.h.

◆ bottom_attachment_button

ArdourWidgets::ArdourButton ArdourWidgets::Tabbable::bottom_attachment_button
protected

Definition at line 188 of file tabbable.h.

◆ content_app_bar

EventBoxExt ArdourWidgets::Tabbable::content_app_bar
protected

Definition at line 167 of file tabbable.h.

◆ content_att_bottom

EventBoxExt ArdourWidgets::Tabbable::content_att_bottom
protected

Definition at line 182 of file tabbable.h.

◆ content_att_left

EventBoxExt ArdourWidgets::Tabbable::content_att_left
protected

Definition at line 173 of file tabbable.h.

◆ content_att_right

EventBoxExt ArdourWidgets::Tabbable::content_att_right
protected

Definition at line 181 of file tabbable.h.

◆ content_attachment_hbox

Gtk::HBox ArdourWidgets::Tabbable::content_attachment_hbox
protected

Definition at line 169 of file tabbable.h.

◆ content_attachments

Gtk::EventBox ArdourWidgets::Tabbable::content_attachments
protected

Definition at line 168 of file tabbable.h.

◆ content_hbox

Gtk::HBox ArdourWidgets::Tabbable::content_hbox
protected

Definition at line 172 of file tabbable.h.

◆ content_header_hbox

Gtk::HBox ArdourWidgets::Tabbable::content_header_hbox
protected

Definition at line 166 of file tabbable.h.

◆ content_inner_vbox

Gtk::VBox ArdourWidgets::Tabbable::content_inner_vbox
protected

Definition at line 177 of file tabbable.h.

◆ content_left_pane

HPane ArdourWidgets::Tabbable::content_left_pane
protected

Definition at line 171 of file tabbable.h.

◆ content_main

EventBoxExt ArdourWidgets::Tabbable::content_main
protected

Definition at line 179 of file tabbable.h.

◆ content_main_top

EventBoxExt ArdourWidgets::Tabbable::content_main_top
protected

Definition at line 178 of file tabbable.h.

◆ content_midlevel_vbox

Gtk::VBox ArdourWidgets::Tabbable::content_midlevel_vbox
protected

Definition at line 175 of file tabbable.h.

◆ content_midlevel_vpane

VPane ArdourWidgets::Tabbable::content_midlevel_vpane
protected

Definition at line 174 of file tabbable.h.

◆ content_right_pane

HPane ArdourWidgets::Tabbable::content_right_pane
protected

Definition at line 176 of file tabbable.h.

◆ content_right_vbox

Gtk::VBox ArdourWidgets::Tabbable::content_right_vbox
protected

Definition at line 180 of file tabbable.h.

◆ content_tabbables

EventBoxExt ArdourWidgets::Tabbable::content_tabbables
protected

Definition at line 170 of file tabbable.h.

◆ left_attachment_button

ArdourWidgets::ArdourButton ArdourWidgets::Tabbable::left_attachment_button
protected

Definition at line 186 of file tabbable.h.

◆ right_attachment_button

ArdourWidgets::ArdourButton ArdourWidgets::Tabbable::right_attachment_button
protected

Definition at line 187 of file tabbable.h.

◆ StateChange

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

Definition at line 99 of file tabbable.h.

◆ tab_requested_by_state

bool ArdourWidgets::Tabbable::tab_requested_by_state
private

Definition at line 203 of file tabbable.h.


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