Ardour  9.0-pre0-582-g084a23a80d
ColorThemeManager Class Reference

#include <color_theme_manager.h>

Inheritance diagram for ColorThemeManager:
[legend]

Classes

struct  ColorAliasModelColumns
 
struct  ColorThemeModelColumns
 

Public Member Functions

 ColorThemeManager ()
 
 ~ColorThemeManager ()
 
void reset_canvas_colors ()
 
void on_color_theme_changed ()
 
void parameter_changed (std::string const &p)
 
void set_state_from_config ()
 
void set_note (std::string const &)
 
void add_to_page (OptionEditorPage *)
 
Gtk::Widgettip_widget ()
 
- Public Member Functions inherited from OptionEditorMiniPage
 OptionEditorMiniPage ()
 
Gtk::Widgettip_widget ()
 
- Public Member Functions inherited from OptionEditorComponent
 OptionEditorComponent ()
 
virtual ~OptionEditorComponent ()
 
void add_widget_to_page (OptionEditorPage *, Gtk::Widget *)
 
void add_widgets_to_page (OptionEditorPage *, Gtk::Widget *, Gtk::Widget *, bool expand=true)
 
void set_note (std::string const &)
 
virtual PBD::Configuration::Metadata const * get_metadata () const
 
void set_metadata (PBD::Configuration::Metadata const &)
 
void highlight ()
 
void end_highlight ()
 
- Public Member Functions inherited from OptionEditorPage
 OptionEditorPage (Gtk::Notebook &, std::string const &)
 
 OptionEditorPage ()
 

Private Member Functions

void palette_color_response (int, std::string)
 
ArdourCanvas::Containerinitialize_palette_canvas (ArdourCanvas::Canvas &canvas)
 
void build_palette_canvas (ArdourCanvas::Canvas &, ArdourCanvas::Container &, sigc::slot< bool, GdkEvent *, std::string > event_handler)
 
void palette_canvas_allocated (Gtk::Allocation &alloc, ArdourCanvas::Container *group, ArdourCanvas::Canvas *canvas, sigc::slot< bool, GdkEvent *, std::string > event_handler)
 
void palette_size_request (Gtk::Requisition *)
 
bool palette_event (GdkEvent *, std::string name)
 
void edit_palette_color (std::string)
 
bool alias_button_press_event (GdkEventButton *)
 
void choose_color_from_palette (std::string const &target_name)
 
bool alias_palette_event (GdkEvent *, std::string, std::string)
 
void alias_palette_response (int, std::string, std::string)
 
void setup_aliases ()
 
void setup_palette ()
 
void setup_modifiers ()
 
void modifier_edited (Gtk::Range *, std::string)
 
void colors_changed ()
 
void set_ui_to_state ()
 

Private Attributes

Gtk::Button reset_button
 
Gtk::Notebook notebook
 
Gtk::ScrolledWindow palette_scroller
 
ArdourCanvas::GtkCanvasViewport palette_viewport
 
ArdourCanvas::Containerpalette_group
 
ColorAliasModelColumns alias_columns
 
Gtk::TreeView alias_display
 
Glib::RefPtr< Gtk::TreeStorealias_list
 
Gtk::ScrolledWindow alias_scroller
 
ArdourDialogpalette_window
 
sigc::connection palette_response_connection
 
Gtk::ScrolledWindow modifier_scroller
 
Gtk::VBox modifier_vbox
 
Gtk::ColorSelectionDialog color_dialog
 
sigc::connection color_dialog_connection
 
ColorThemeModelColumns color_theme_columns
 
Glib::RefPtr< Gtk::TreeStoretheme_list
 
Gtk::Label color_theme_label
 
Gtk::ComboBox color_theme_dropdown
 

Additional Inherited Members

- Public Attributes inherited from OptionEditorPage
Gtk::VBox box
 
Gtk::Table table
 
std::list< OptionEditorComponent * > components
 
- Protected Member Functions inherited from OptionEditorComponent
void maybe_add_note (OptionEditorPage *, int)
 
- Protected Attributes inherited from OptionEditorComponent
std::string _note
 
ArdourWidgets::Frame_frame
 
PBD::Configuration::Metadata const * _metadata
 

Detailed Description

Definition at line 41 of file color_theme_manager.h.

Constructor & Destructor Documentation

◆ ColorThemeManager()

ColorThemeManager::ColorThemeManager ( )

◆ ~ColorThemeManager()

ColorThemeManager::~ColorThemeManager ( )

Member Function Documentation

◆ add_to_page()

void ColorThemeManager::add_to_page ( OptionEditorPage )
virtual

Called to instruct the object to add itself to an OptionEditorPage

Reimplemented from OptionEditorMiniPage.

◆ alias_button_press_event()

bool ColorThemeManager::alias_button_press_event ( GdkEventButton )
private

◆ alias_palette_event()

bool ColorThemeManager::alias_palette_event ( GdkEvent ,
std::string  ,
std::string   
)
private

◆ alias_palette_response()

void ColorThemeManager::alias_palette_response ( int  ,
std::string  ,
std::string   
)
private

◆ build_palette_canvas()

void ColorThemeManager::build_palette_canvas ( ArdourCanvas::Canvas ,
ArdourCanvas::Container ,
sigc::slot< bool, GdkEvent *, std::string >  event_handler 
)
private

◆ choose_color_from_palette()

void ColorThemeManager::choose_color_from_palette ( std::string const &  target_name)
private

◆ colors_changed()

void ColorThemeManager::colors_changed ( )
private

◆ edit_palette_color()

void ColorThemeManager::edit_palette_color ( std::string  )
private

◆ initialize_palette_canvas()

ArdourCanvas::Container* ColorThemeManager::initialize_palette_canvas ( ArdourCanvas::Canvas canvas)
private

◆ modifier_edited()

void ColorThemeManager::modifier_edited ( Gtk::Range ,
std::string   
)
private

◆ on_color_theme_changed()

void ColorThemeManager::on_color_theme_changed ( )

◆ palette_canvas_allocated()

void ColorThemeManager::palette_canvas_allocated ( Gtk::Allocation alloc,
ArdourCanvas::Container group,
ArdourCanvas::Canvas canvas,
sigc::slot< bool, GdkEvent *, std::string >  event_handler 
)
private

◆ palette_color_response()

void ColorThemeManager::palette_color_response ( int  ,
std::string   
)
private

◆ palette_event()

bool ColorThemeManager::palette_event ( GdkEvent ,
std::string  name 
)
private

◆ palette_size_request()

void ColorThemeManager::palette_size_request ( Gtk::Requisition )
private

◆ parameter_changed()

void ColorThemeManager::parameter_changed ( std::string const &  p)
virtual

Called when a configuration parameter's value has changed.

Parameters
pparameter name

Implements OptionEditorMiniPage.

◆ reset_canvas_colors()

void ColorThemeManager::reset_canvas_colors ( )

◆ set_note()

void ColorThemeManager::set_note ( std::string const &  )

◆ set_state_from_config()

void ColorThemeManager::set_state_from_config ( )
virtual

Called to instruct the object to set its UI state from the configuration

Implements OptionEditorMiniPage.

◆ set_ui_to_state()

void ColorThemeManager::set_ui_to_state ( )
private

◆ setup_aliases()

void ColorThemeManager::setup_aliases ( )
private

◆ setup_modifiers()

void ColorThemeManager::setup_modifiers ( )
private

◆ setup_palette()

void ColorThemeManager::setup_palette ( )
private

◆ tip_widget()

Gtk::Widget& ColorThemeManager::tip_widget ( )
virtual

Implements OptionEditorComponent.

Member Data Documentation

◆ alias_columns

ColorAliasModelColumns ColorThemeManager::alias_columns
private

Definition at line 117 of file color_theme_manager.h.

◆ alias_display

Gtk::TreeView ColorThemeManager::alias_display
private

Definition at line 118 of file color_theme_manager.h.

◆ alias_list

Glib::RefPtr<Gtk::TreeStore> ColorThemeManager::alias_list
private

Definition at line 119 of file color_theme_manager.h.

◆ alias_scroller

Gtk::ScrolledWindow ColorThemeManager::alias_scroller
private

Definition at line 120 of file color_theme_manager.h.

◆ color_dialog

Gtk::ColorSelectionDialog ColorThemeManager::color_dialog
private

Definition at line 141 of file color_theme_manager.h.

◆ color_dialog_connection

sigc::connection ColorThemeManager::color_dialog_connection
private

Definition at line 142 of file color_theme_manager.h.

◆ color_theme_columns

ColorThemeModelColumns ColorThemeManager::color_theme_columns
private

Definition at line 158 of file color_theme_manager.h.

◆ color_theme_dropdown

Gtk::ComboBox ColorThemeManager::color_theme_dropdown
private

Definition at line 162 of file color_theme_manager.h.

◆ color_theme_label

Gtk::Label ColorThemeManager::color_theme_label
private

Definition at line 161 of file color_theme_manager.h.

◆ modifier_scroller

Gtk::ScrolledWindow ColorThemeManager::modifier_scroller
private

Definition at line 135 of file color_theme_manager.h.

◆ modifier_vbox

Gtk::VBox ColorThemeManager::modifier_vbox
private

Definition at line 136 of file color_theme_manager.h.

◆ notebook

Gtk::Notebook ColorThemeManager::notebook
private

Definition at line 66 of file color_theme_manager.h.

◆ palette_group

ArdourCanvas::Container* ColorThemeManager::palette_group
private

Definition at line 75 of file color_theme_manager.h.

◆ palette_response_connection

sigc::connection ColorThemeManager::palette_response_connection
private

Definition at line 125 of file color_theme_manager.h.

◆ palette_scroller

Gtk::ScrolledWindow ColorThemeManager::palette_scroller
private

Definition at line 73 of file color_theme_manager.h.

◆ palette_viewport

ArdourCanvas::GtkCanvasViewport ColorThemeManager::palette_viewport
private

Definition at line 74 of file color_theme_manager.h.

◆ palette_window

ArdourDialog* ColorThemeManager::palette_window
private

Definition at line 124 of file color_theme_manager.h.

◆ reset_button

Gtk::Button ColorThemeManager::reset_button
private

Definition at line 65 of file color_theme_manager.h.

◆ theme_list

Glib::RefPtr<Gtk::TreeStore> ColorThemeManager::theme_list
private

Definition at line 159 of file color_theme_manager.h.


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