FACT++  1.0
void Shell::ShowHide ( int  v)

This function gets the windows into the expected order which is:

Parameters
v
  • 0: Do not show the output panel
  • 1: Show the output panel
  • -1: Toggle the visibility of the output panel
  • -2: Just update the panels, do not change their visibility

Definition at line 207 of file Shell.cc.

References fIsVisible, fPanelFrame, fPanelIn, and fPanelOut.

Referenced by Process(), Refresh(), rl_proc_F1(), and Shell().

208 {
209  if (v>-2)
210  fIsVisible = v==-1 ? !fIsVisible : v;
211 
212  if (fIsVisible)
213  {
214  show_panel(fPanelIn);
215  show_panel(fPanelFrame);
216  show_panel(fPanelOut);
217  }
218  else
219  {
220  show_panel(fPanelIn);
221  hide_panel(fPanelFrame);
222  hide_panel(fPanelOut);
223  }
224 
225  update_panels();
226  doupdate();
227 }
int fIsVisible
Space between the bottom of the screen and the output panel.
Definition: Shell.h:26
PANEL * fPanelOut
Pointer to the panel for the frame around the output.
Definition: Shell.h:23
PANEL * fPanelFrame
Pointer to the panel for the input stream.
Definition: Shell.h:22
PANEL * fPanelIn
Definition: Shell.h:21

+ Here is the caller graph for this function: