Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

processpanel Class Reference

Panel containing a text area for process output and some process controls. More...

#include <processpanel.h>

List of all members.

Public Member Functions

 processpanel (wxWindow *parent, wxWindowID id, wxFont font=wxSystemSettings::GetFont(wxSYS_OEM_FIXED_FONT))
 Panel handles output and system exec.
 ~processpanel ()
 Destruct.
void append (const wxString &text)
 Append text to the output window.
void clear ()
 Clear the output of text.
void execute (const wxString &cmd)
 Execute a system command and show out in the output window.
bool executelast ()
 Execute the last command we got.

Protected Member Functions

void onIdle (wxIdleEvent &evt)
 We get a time slice so try and output anything.
void onProcessEnded (wxProcessEvent &evt)
 The process ended so clean things up.
void onClear (wxCommandEvent &evt)
 User wants to clear the window.
void onKill (wxCommandEvent &evt)
 User wants to kill the currently running command.
void onSave (wxCommandEvent &evt)
 User wants to save the output.
void onErrNext (wxCommandEvent &evt)
 User wants to save the output.
void onErrPrev (wxCommandEvent &evt)
 User wants to save the output.


Detailed Description

Panel containing a text area for process output and some process controls.


Constructor & Destructor Documentation

processpanel::processpanel wxWindow *  parent,
wxWindowID  id,
wxFont  font = wxSystemSettings::GetFont( wxSYS_OEM_FIXED_FONT )
 

Panel handles output and system exec.

Multiple exec commands can be sent by separating them with ';' e.g. -> 'cd /tmp; ls -la'

Parameters:
parent the window parent
id our id
font the font to use

processpanel::~processpanel  ) 
 

Destruct.


Member Function Documentation

void processpanel::append const wxString &  text  ) 
 

Append text to the output window.

Parameters:
text the text to append

void processpanel::clear  ) 
 

Clear the output of text.

void processpanel::execute const wxString &  cmd  ) 
 

Execute a system command and show out in the output window.

Parameters:
cmd the system command to execute

bool processpanel::executelast  ) 
 

Execute the last command we got.

Returns:
true if we had a command to execute

void processpanel::onClear wxCommandEvent &  evt  )  [protected]
 

User wants to clear the window.

Parameters:
evt 

void processpanel::onErrNext wxCommandEvent &  evt  )  [protected]
 

User wants to save the output.

Parameters:
evt 

void processpanel::onErrPrev wxCommandEvent &  evt  )  [protected]
 

User wants to save the output.

Parameters:
evt 

void processpanel::onIdle wxIdleEvent &  evt  )  [protected]
 

We get a time slice so try and output anything.

Parameters:
evt 

void processpanel::onKill wxCommandEvent &  evt  )  [protected]
 

User wants to kill the currently running command.

Parameters:
evt 

void processpanel::onProcessEnded wxProcessEvent &  evt  )  [protected]
 

The process ended so clean things up.

Parameters:
evt 

void processpanel::onSave wxCommandEvent &  evt  )  [protected]
 

User wants to save the output.

Parameters:
evt 


The documentation for this class was generated from the following files:
Generated on Fri Mar 10 12:32:03 2006 for MonkeyFish by  doxygen 1.4.4