1
#ifndef __AUTO_COMPLETABLE_H__
2
#define __AUTO_COMPLETABLE_H__
5
#include <glibmm/refptr.h>
6
#include "text_list_columns_model.h"
12
class EntryCompletion;
16
//! \addtogroup linuxutils Linux utils
20
//==============================================================================
21
//! AutoCompletion adds ability to have a history in the entry and to auto-complete
22
//! curretly typed text. Usage is simple: create AutoCompletable instance
23
//! and pass entry either to constructor or using method add_to_entry later.
24
//! Add each item which should appear in completion or list via add_completion_text
28
AutoCompletable(Gtk::Entry* entry = 0);
29
void add_completion_text(const std::string& s);
30
void add_to_entry(Gtk::Entry* entry);
31
void set_popup_enabled(const bool enabled);
34
TextListColumnsModel _completion_columns;
35
Glib::RefPtr<Gtk::ListStore> _completion_model;
36
Glib::RefPtr<Gtk::EntryCompletion> _completion;