Ardour  9.0-pre0-1320-gf48fe3f740
Gtkmm2ext::StringCompletion Class Reference

#include <string_completion.h>

Inheritance diagram for Gtkmm2ext::StringCompletion:
[legend]

Classes

class  CompletionRecord
 

Public Member Functions

 StringCompletion ()
 
 StringCompletion (std::vector< Glib::ustring > strVector, bool norepeat=true)
 
virtual ~StringCompletion ()
 
void add_string (Glib::ustring str, bool norepeat=true)
 
void clear_strings ()
 
void delete_string (Glib::ustring str)
 
void insert_vector (std::vector< Glib::ustring > strVector, bool norepeat=true)
 
void set_match_anywhere ()
 
void set_case_fold (bool)
 
- Public Member Functions inherited from Gtk::EntryCompletion
virtual ~EntryCompletion ()
 
GtkEntryCompletiongobj ()
 Provides access to the underlying C GObject. More...
 
const GtkEntryCompletiongobj () const
 Provides access to the underlying C GObject. More...
 
GtkEntryCompletiongobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
 
Entryget_entry ()
 
const Entryget_entry () const
 
void set_model (const Glib::RefPtr< TreeModel > &model)
 
Glib::RefPtr< TreeModelget_model ()
 
Glib::RefPtr< const TreeModelget_model () const
 
void unset_model ()
 
void set_match_func (const SlotMatch &slot)
 
void set_minimum_key_length (int length)
 
int get_minimum_key_length () const
 
void complete ()
 
void insert_prefix ()
 
void insert_action_text (const Glib::ustring &text, int index)
 
void prepend_action_text (const Glib::ustring &text)
 
void insert_action_markup (const Glib::ustring &markup, int index)
 
void prepend_action_markup (const Glib::ustring &markup)
 
void delete_action (int index=0)
 
void set_inline_completion (bool inline_completion=true)
 
bool get_inline_completion () const
 
void set_inline_selection (bool inline_selection=true)
 
bool get_inline_selection () const
 
void set_popup_completion (bool popup_completion=true)
 
bool get_popup_completion () const
 
void set_popup_set_width (bool popup_set_width=true)
 
bool get_popup_set_width () const
 
void set_popup_single_width (bool popup_single_match=true)
 
void set_popup_single_match (bool popup_single_match=true)
 
bool get_popup_single_match () const
 
Glib::ustring get_completion_prefix () const
 
void set_text_column (const TreeModelColumnBase &column)
 
void set_text_column (int column)
 
int get_text_column ()
 
int get_text_column () const
 
Glib::SignalProxy1< void, int > signal_action_activated ()
 
Glib::SignalProxy1< bool, const TreeModel::iterator & > signal_match_selected ()
 
Glib::SignalProxy1< bool, const TreeModel::iterator & > signal_cursor_on_match ()
 
Glib::SignalProxy1< bool, const Glib::ustring & > signal_insert_prefix ()
 
Glib::PropertyProxy< Glib::RefPtr< Gtk::TreeModel > > property_model ()
 
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Gtk::TreeModel > > property_model () const
 
Glib::PropertyProxy< int > property_minimum_key_length ()
 
Glib::PropertyProxy_ReadOnly< int > property_minimum_key_length () const
 
Glib::PropertyProxy< int > property_text_column ()
 
Glib::PropertyProxy_ReadOnly< int > property_text_column () const
 
Glib::PropertyProxy< bool > property_inline_completion ()
 
Glib::PropertyProxy_ReadOnly< bool > property_inline_completion () const
 
Glib::PropertyProxy< bool > property_popup_completion ()
 
Glib::PropertyProxy_ReadOnly< bool > property_popup_completion () const
 
Glib::PropertyProxy< bool > property_popup_set_width ()
 
Glib::PropertyProxy_ReadOnly< bool > property_popup_set_width () const
 
Glib::PropertyProxy< bool > property_popup_single_match ()
 
Glib::PropertyProxy_ReadOnly< bool > property_popup_single_match () const
 
Glib::PropertyProxy< bool > property_inline_selection ()
 
Glib::PropertyProxy_ReadOnly< bool > property_inline_selection () const
 

Static Public Member Functions

static Glib::RefPtr< StringCompletioncreate ()
 
static Glib::RefPtr< StringCompletioncreate (std::vector< Glib::ustring > strVector, bool norepeat=true)
 
- Static Public Member Functions inherited from Gtk::EntryCompletion
static GType get_type () G_GNUC_CONST
 
static Glib::RefPtr< EntryCompletioncreate ()
 

Protected Member Functions

bool _delete_string (const Gtk::TreeModel::iterator &iter, const Glib::ustring &str)
 
bool _string_exists (const Glib::ustring &str)
 
bool match_anywhere (Glib::ustring const &str, Gtk::TreeModel::const_iterator const &iter)
 
void init ()
 
- Protected Member Functions inherited from Gtk::EntryCompletion
 EntryCompletion ()
 
virtual bool on_match_selected (const TreeModel::iterator &iter)
 
virtual void on_action_activated (int index)
 This is a default handler for the signal signal_action_activated(). More...
 

Protected Attributes

Glib::RefPtr< Gtk::ListStorem_refCompletionModel
 
bool case_fold
 
CompletionRecord m_completionRecord
 

Additional Inherited Members

- Public Types inherited from Gtk::EntryCompletion
typedef sigc::slot< bool, const Glib::ustring &, const TreeModel::const_iterator & > SlotMatch
 For example, bool on_match(const Glib::ustring& key, const TreeModel::const_iterator& iter);. More...
 

Detailed Description

Definition at line 28 of file string_completion.h.

Constructor & Destructor Documentation

◆ StringCompletion() [1/2]

Gtkmm2ext::StringCompletion::StringCompletion ( )

◆ StringCompletion() [2/2]

Gtkmm2ext::StringCompletion::StringCompletion ( std::vector< Glib::ustring >  strVector,
bool  norepeat = true 
)

◆ ~StringCompletion()

virtual Gtkmm2ext::StringCompletion::~StringCompletion ( )
virtual

Member Function Documentation

◆ _delete_string()

bool Gtkmm2ext::StringCompletion::_delete_string ( const Gtk::TreeModel::iterator iter,
const Glib::ustring &  str 
)
protected

◆ _string_exists()

bool Gtkmm2ext::StringCompletion::_string_exists ( const Glib::ustring &  str)
protected

◆ add_string()

void Gtkmm2ext::StringCompletion::add_string ( Glib::ustring  str,
bool  norepeat = true 
)

◆ clear_strings()

void Gtkmm2ext::StringCompletion::clear_strings ( )

◆ create() [1/2]

static Glib::RefPtr<StringCompletion> Gtkmm2ext::StringCompletion::create ( )
static

◆ create() [2/2]

static Glib::RefPtr<StringCompletion> Gtkmm2ext::StringCompletion::create ( std::vector< Glib::ustring >  strVector,
bool  norepeat = true 
)
static

◆ delete_string()

void Gtkmm2ext::StringCompletion::delete_string ( Glib::ustring  str)

◆ init()

void Gtkmm2ext::StringCompletion::init ( )
protected

◆ insert_vector()

void Gtkmm2ext::StringCompletion::insert_vector ( std::vector< Glib::ustring >  strVector,
bool  norepeat = true 
)

◆ match_anywhere()

bool Gtkmm2ext::StringCompletion::match_anywhere ( Glib::ustring const &  str,
Gtk::TreeModel::const_iterator const &  iter 
)
protected

◆ set_case_fold()

void Gtkmm2ext::StringCompletion::set_case_fold ( bool  )

◆ set_match_anywhere()

void Gtkmm2ext::StringCompletion::set_match_anywhere ( )

Member Data Documentation

◆ case_fold

bool Gtkmm2ext::StringCompletion::case_fold
protected

Definition at line 49 of file string_completion.h.

◆ m_completionRecord

CompletionRecord Gtkmm2ext::StringCompletion::m_completionRecord
protected

Definition at line 61 of file string_completion.h.

◆ m_refCompletionModel

Glib::RefPtr<Gtk::ListStore> Gtkmm2ext::StringCompletion::m_refCompletionModel
protected

Definition at line 48 of file string_completion.h.


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