42 More::
More(const
unsigned int UI_MaxLines, const
unsigned int UI_MaxLineLength)
44 m_uiText(* new
Text(UI_MaxLines, UI_MaxLineLength)), m_puiTextIt(NULL),
50 :
UI(CLI_ParentContext),
51 m_uiText(* new
Text(UI_MaxLines, UI_MaxLineLength)), m_puiTextIt(NULL),
59 if (m_puiTextIt != NULL)
64 delete & m_cliMoreLine;
81 if (m_puiTextIt == NULL)
86 if (m_puiTextIt != NULL)
88 m_uiText.
Begin(*m_puiTextIt);
90 m_uiText.
PrintPage(*m_puiTextIt, cli_Out,
false);
100 if (m_puiTextIt == NULL) { Quit(); }
108 for (
bool b_LineDown =
true; b_LineDown; )
112 b_LineDown = m_uiText.
LineDown(*m_puiTextIt, & cli_Out);
125 m_uiText.
PageDown(*m_puiTextIt, & cli_Out);
155 void More::ShowMoreMessage(
void)
158 if (m_puiTextIt != NULL)
160 m_cliMoreLine.
Reset();
177 void More::HideMoreMessage(
void)
182 void More::Quit(
void)
Main namespace of the CLI library.
const tk::String GetString(const LANG E_Lang) const
Access to the string of a given language.
#define CLI_ASSERT(a)
CLI assertion macro.
void Begin(TextIterator &it) const
Retrieves a text head iterator.
const ResourceString::LANG GetLang(void) const
Language access.
String device definition.
const OutputDevice & GetText(void)
Text member accessor.
#define CLI_NS_END(__ns)
End a namespace definition.
Simple line user interface object.
void EndControl(const bool B_ExecResult)
Method to call by child classes in order to end the control execution.
const unsigned int GetSafeHeight(void) const
Safe screen height accessor.
void CleanAll(const OutputDevice &CLI_OutputDevice)
Line deletion.
More(const unsigned int UI_MaxLines, const unsigned int UI_MaxLineLength)
Top execution context constructor.
CmdLineEdition class definition.
void Beep(void)
Sends a beep signal.
CLI library default pre-compiled header.
virtual const ScreenInfo GetScreenInfo(void) const
Screen info accessor.
#define CLI_NS_BEGIN(__ns)
Begin a namespace definition.
const bool LineDown(TextIterator &it, const OutputDevice *const PCLI_Out) const
Moves iterator one line down.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
const unsigned int GetSafeWidth(void) const
Safe screen width accessor.
void Put(const OutputDevice &CLI_OutputDevice, const KEY E_Char)
Character addition.
virtual void ResetToDefault(void)
Handler called when default value is required to be restored.
ResourceString & SetString(const LANG E_Lang, const char *const STR_String)
Adds resource for a given language.
Command line edition objet.
virtual ~More(void)
Destructor.
virtual void Reset(void)
Handler called when data reset is required.
const bool PageDown(TextIterator &it, const OutputDevice *const PCLI_Out) const
Moves iterator one page down.
Generic user interface class.
void Reset(void)
Reset the object.
const OutputDevice & GetStream(const STREAM_TYPE E_StreamType) const
Output stream accessor.
const tk::String & GetString(void) const
String accessor.
Simple line user interface object.
void PrintPage(TextIterator &it, const OutputDevice &CLI_Out, const bool B_FillPageWithBlankLines) const
Print out a page of text.