#include <glui.h>
Inherits GLUI_EditText.
Public Types | |
enum | { HIST_SIZE = 100 } |
typedef GLUI_EditText | Super |
Public Member Functions | |
int | key_handler (unsigned char key, int modifiers) |
int | special_handler (int key, int modifiers) |
void | deactivate (void) |
virtual const char * | get_history (int command_number) const |
virtual GLUI_String & | get_history_str (int command_number) |
virtual const GLUI_String & | get_history_str (int command_number) const |
virtual void | recall_history (int history_number) |
virtual void | scroll_history (int direction) |
virtual void | add_to_history (const char *text) |
virtual void | reset_history (void) |
void | dump (FILE *out, const char *text) |
GLUI_CommandLine (GLUI_Node *parent, const char *name, void *live_var=NULL, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_CommandLine (void) | |
Public Attributes | |
std::vector< GLUI_String > | hist_list |
int | curr_hist |
int | oldest_hist |
int | newest_hist |
bool | commit_flag |
Protected Member Functions | |
void | common_init () |
typedef GLUI_EditText GLUI_CommandLine::Super |
GLUI_CommandLine::GLUI_CommandLine | ( | GLUI_Node * | parent, | |
const char * | name, | |||
void * | live_var = NULL , |
|||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_CommandLine::GLUI_CommandLine | ( | void | ) | [inline] |
virtual void GLUI_CommandLine::add_to_history | ( | const char * | text | ) | [virtual] |
void GLUI_CommandLine::common_init | ( | void | ) | [inline, protected] |
Reimplemented from GLUI_EditText.
void GLUI_CommandLine::deactivate | ( | void | ) | [virtual] |
Reimplemented from GLUI_EditText.
void GLUI_CommandLine::dump | ( | FILE * | out, | |
const char * | text | |||
) |
Reimplemented from GLUI_EditText.
virtual const char* GLUI_CommandLine::get_history | ( | int | command_number | ) | const [inline, virtual] |
virtual const GLUI_String& GLUI_CommandLine::get_history_str | ( | int | command_number | ) | const [inline, virtual] |
virtual GLUI_String& GLUI_CommandLine::get_history_str | ( | int | command_number | ) | [inline, virtual] |
int GLUI_CommandLine::key_handler | ( | unsigned char | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_EditText.
virtual void GLUI_CommandLine::recall_history | ( | int | history_number | ) | [virtual] |
virtual void GLUI_CommandLine::reset_history | ( | void | ) | [virtual] |
virtual void GLUI_CommandLine::scroll_history | ( | int | direction | ) | [virtual] |
int GLUI_CommandLine::special_handler | ( | int | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_EditText.
std::vector<GLUI_String> GLUI_CommandLine::hist_list |