42 Less::
Less(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_cliLessLine;
80 if (m_puiTextIt == NULL)
86 if (m_puiTextIt != NULL) { m_uiText.
Begin(*m_puiTextIt); }
94 if (m_puiTextIt == NULL) { Quit(); }
99 m_uiText.
Begin(*m_puiTextIt);
103 if (m_uiText.
PageUp(*m_puiTextIt)) PrintScreen();
107 if (m_uiText.
LineUp(*m_puiTextIt)) PrintScreen();
112 if (m_uiText.
LineDown(*m_puiTextIt, NULL)) PrintScreen();
117 if (m_uiText.
PageDown(*m_puiTextIt, NULL)) PrintScreen();
121 m_uiText.
End(*m_puiTextIt, NULL);
141 void Less::PrintScreen(
void)
148 if (m_puiTextIt != NULL) { m_uiText.
PrintPage(*m_puiTextIt, cli_Out,
true); }
151 m_cliLessLine.
Reset();
157 void Less::Quit(
void)
Main namespace of the CLI library.
Less(const unsigned int UI_MaxLines, const unsigned int UI_MaxLineLength)
Top execution context constructor.
#define CLI_ASSERT(a)
CLI assertion macro.
void Begin(TextIterator &it) const
Retrieves a text head iterator.
virtual void ResetToDefault(void)
Handler called when default value is required to be restored.
String device definition.
#define CLI_NS_END(__ns)
End a namespace definition.
virtual ~Less(void)
Destructor.
void EndControl(const bool B_ExecResult)
Method to call by child classes in order to end the control execution.
const bool PageUp(TextIterator &it) const
Moves iterator one page up.
const unsigned int GetSafeHeight(void) const
Safe screen height accessor.
void CleanAll(const OutputDevice &CLI_OutputDevice)
Line deletion.
CmdLineEdition class definition.
void Beep(void)
Sends a beep signal.
CLI library default pre-compiled header.
virtual void CleanScreen(void) const
Clean screen.
virtual const ScreenInfo GetScreenInfo(void) const
Screen info accessor.
void End(TextIterator &it, const OutputDevice *const PCLI_Out) const
Retrieves a text end iterator.
#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.
Simple line user interface object.
const bool LineUp(TextIterator &it) const
Moves iterator one line up.
const unsigned int GetSafeWidth(void) const
Safe screen width accessor.
void Put(const OutputDevice &CLI_OutputDevice, const KEY E_Char)
Character addition.
Command line edition objet.
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.
virtual void OnKey(const KEY E_KeyCode)
Handler called on character input.
const OutputDevice & GetText(void)
Text member 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.