#include <scim_lookup_table.h>
Inheritance diagram for scim::LookupTable:
Public Member Functions | |
LookupTable (int page_size, const KeyEvent &page_up_key, const KeyEvent &page_down_key, const std::vector< KeyEvent > &page_index_keys) | |
Constructor. | |
virtual | ~LookupTable () |
Virtual destructor. | |
void | set_page_index_keys (const std::vector< KeyEvent > &page_index_keys) |
Set the key events of page indexes. | |
void | set_page_updown_keys (const KeyEvent &page_up, const KeyEvent &page_down) |
Set the key events of page up and down. | |
void | set_page_size (int page_size) |
Set the maximum page size. | |
int | get_page_size () const |
Get the maximum page size. | |
int | get_current_page_size () const |
Get current page size,. | |
int | get_current_page_start () const |
Get the start index of current page. | |
int | get_cursor_pos () const |
Get current cursor position. | |
int | get_cursor_pos_in_page () const |
Get the cursor position in current page. | |
bool | page_up () |
Flip to the previous page. | |
bool | page_down () |
Flip to the next page. | |
bool | cursor_up () |
Move cursor position to the previous entry. | |
bool | cursor_down () |
Move cursor position to the next entry. | |
void | show_cursor (bool show=true) |
Set the cursor visibility. | |
bool | is_cursor_visible () const |
Check if the cursor is visible. | |
KeyEvent | get_page_index_key (int page_index) const |
Get the key event of a page index. | |
KeyEvent | get_page_up_key () const |
Get the key event of page up. | |
KeyEvent | get_page_down_key () const |
Get key event of page down. | |
WideString | get_content_in_page (int page_index) const |
Get the content of an entry in current page. | |
Pure Virtual functions. | |
These functions should be implemented in derivation classes. | |
virtual WideString | get_content (int index) const=0 |
Get the content of an entry. | |
virtual uint32 | number_of_entries () const=0 |
Return the number of entries in this table. | |
virtual void | clear ()=0 |
Clear the table. |
This is abstract class and cannot store data. Server should use its derivation class. This class is the interface that uses within FrontEnd class.
Definition at line 49 of file scim_lookup_table.h.
|
Constructor.
|
|
Virtual destructor.
|
|
Set the key events of page indexes.
|
|
Set the key events of page up and down.
|
|
Set the maximum page size.
|
|
Get the maximum page size.
|
|
Get current page size,.
|
|
Get the start index of current page.
|
|
Get current cursor position.
|
|
Get the cursor position in current page.
|
|
Flip to the previous page.
|
|
Flip to the next page.
|
|
Move cursor position to the previous entry.
|
|
Move cursor position to the next entry.
|
|
Set the cursor visibility.
|
|
Check if the cursor is visible.
|
|
Get the key event of a page index.
|
|
Get the key event of page up.
|
|
Get key event of page down.
|
|
Get the content of an entry in current page.
|
|
Get the content of an entry.
Implemented in scim::CommonLookupTable. |
|
Return the number of entries in this table.
Implemented in scim::CommonLookupTable. |
|
Clear the table.
Implemented in scim::CommonLookupTable. |