JG ROOT Tools libraries  version 5.0 - august 2014
RGPadPrintCommand Class Reference

#include <RGPadPrintCommand.hh>

Inheritance diagram for RGPadPrintCommand:

Public Member Functions

 RGPadPrintCommand (TGWindow *p, const UInt_t opts=0)
 
virtual ~RGPadPrintCommand ()
 
void Construct ()
 
virtual void MapSubwindows ()
 
TGTextEntry * GetPrintCommandWidget () const
 
TGNumberEntry * GetPrintSizeXWidget () const
 
TGNumberEntry * GetPrintSizeYWidget () const
 
TGComboBox * GetPrintOrientationWidget () const
 
string GetPrintCommand () const
 
Double_t GetPrintSizeX () const
 
Double_t GetPrintSizeY () const
 
Int_t GetPrintOrientation () const
 
string GetPrintOptions () const
 
string GetPrintCommand (const string &file_name) const
 
virtual void SetRootStyle () const
 
void SetPrintCommand (const string &cmd)
 
void SetPrintSizeX (const Double_t x)
 
void SetPrintSizeY (const Double_t y)
 
void SetPrintOrientation (const Int_t opt)
 
void Print (const string &file_name) const
 
virtual void CommandChanged (const char *txt)
 
virtual void SizeXChanged (Double_t s)
 
virtual void SizeYChanged (Double_t s)
 
virtual void OrientationSelected (Int_t opt)
 
virtual void PrintCommandTextChanged (const char *txt)
 
virtual void PrintSizeXChanged (const char *txt)
 
virtual void PrintSizeYChanged (const char *txt)
 
virtual void PrintOrientationSelected (Int_t opt)
 
 ClassDef (RGPadPrintCommand, 0)
 

Protected Attributes

UInt_t options
 Widget options.
 
TGHorizontalFrame * w_print_cmd_frame
 Frame for printing command.
 
TGTextEntry * w_print_cmd
 Printing command.
 
TGHorizontalFrame * w_print_format_frame
 Frame for format.
 
TGNumberEntry * w_print_size_x
 Paper X size.
 
TGNumberEntry * w_print_size_y
 Paper Y size.
 
TGComboBox * w_print_orient
 Page orientation.
 

Private Types

enum  PrintOptions { portrait = 0, landscape = 1 }
 ! Printing options
 

Private Member Functions

 GObject (RGPadPrintCommand)
 
 RGPadPrintCommand (const RGPadPrintCommand &original)
 

Detailed Description

Widget for printing command of a pad, with options:

  • command line
  • page format
  • paper orientation

Widget option bits:

  • rgPadPrintNoFormat: ignore paper format (it is used only for files (creation from a pad).

Constructor & Destructor Documentation

RGPadPrintCommand::RGPadPrintCommand ( TGWindow *  p,
const UInt_t  opts = 0 
)

Constructor.

Parameters
pparent widget
optswidget options

References Construct(), and options.

RGPadPrintCommand::RGPadPrintCommand ( const RGPadPrintCommand original)
private

Copy constructor, not implemented.

Parameters
originalobject to copy
RGPadPrintCommand::~RGPadPrintCommand ( )
virtual

Destructor.

Member Function Documentation

RGPadPrintCommand::GObject ( RGPadPrintCommand  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
void RGPadPrintCommand::MapSubwindows ( )
virtual

Overload of TGFrame function to select display according to options.

References options, and w_print_format_frame.

TGTextEntry * RGPadPrintCommand::GetPrintCommandWidget ( ) const
inline

Get command line widget pointer.

References w_print_cmd.

TGNumberEntry * RGPadPrintCommand::GetPrintSizeXWidget ( ) const
inline

Get paper X size widget pointer.

References w_print_size_x.

TGNumberEntry * RGPadPrintCommand::GetPrintSizeYWidget ( ) const
inline

Get paper Y size widget pointer.

References w_print_size_y.

TGComboBox * RGPadPrintCommand::GetPrintOrientationWidget ( ) const
inline

Get paper orientation widget pointer.

References w_print_orient.

string RGPadPrintCommand::GetPrintCommand ( ) const
inline

Get the printing command (without filename).

References w_print_cmd.

Referenced by RGPrintRequester::Button(), and Print().

Double_t RGPadPrintCommand::GetPrintSizeX ( ) const
inline

Get paper size X (cm).

References w_print_size_x.

Referenced by RGPrintRequester::Button().

Double_t RGPadPrintCommand::GetPrintSizeY ( ) const
inline

Get paper size Y (cm).

References w_print_size_y.

Referenced by RGPrintRequester::Button().

Int_t RGPadPrintCommand::GetPrintOrientation ( ) const
inline

Get paper orientation.

References w_print_orient.

Referenced by RGPrintRequester::Button().

string RGPadPrintCommand::GetPrintOptions ( ) const

Set printing options for file generation from a ROOT pad.

References w_print_orient.

string RGPadPrintCommand::GetPrintCommand ( const string &  file_name) const

Get the printing command with file name. The file name is place where 'f' format is found, or at the end if not specified.

Parameters
file_namename of file to print

References w_print_cmd.

void RGPadPrintCommand::SetRootStyle ( ) const
virtual

Function setting ROOT global style (gStyle pointer).

References w_print_size_x, and w_print_size_y.

Referenced by Print().

void RGPadPrintCommand::SetPrintCommand ( const string &  cmd)
inline

Set print command line.

Parameters
cmdcommand line

References w_print_cmd.

Referenced by RGPrintRequester::Construct().

void RGPadPrintCommand::SetPrintSizeX ( const Double_t  x)
inline

Set paper size X (cm).

Parameters
xsize

References w_print_size_x.

Referenced by RGPrintRequester::Construct().

void RGPadPrintCommand::SetPrintSizeY ( const Double_t  y)
inline

Set paper size Y (cm).

Parameters
ysize

References w_print_size_y.

Referenced by RGPrintRequester::Construct().

void RGPadPrintCommand::SetPrintOrientation ( const Int_t  opt)
inline

Set paper orientation (portrait/landscape).

Parameters
optorientation

References w_print_orient.

Referenced by RGPrintRequester::Construct().

void RGPadPrintCommand::Print ( const string &  file_name) const

Execute the file printing command.

Parameters
file_namename of file to print

References GetPrintCommand(), and SetRootStyle().

void RGPadPrintCommand::CommandChanged ( const char *  txt)
inlinevirtual

Signal sent when command line is changed.

Referenced by PrintCommandTextChanged().

void RGPadPrintCommand::SizeXChanged ( Double_t  s)
inlinevirtual

Signal sent when paper size X is changed.

Referenced by PrintSizeXChanged().

void RGPadPrintCommand::SizeYChanged ( Double_t  s)
inlinevirtual

Signal sent when paper size Y is changed.

Referenced by PrintSizeYChanged().

void RGPadPrintCommand::OrientationSelected ( Int_t  opt)
inlinevirtual

Signal sent when paper orientation is changed.

Referenced by PrintOrientationSelected().

void RGPadPrintCommand::PrintCommandTextChanged ( const char *  txt)
virtual

Slot called when command line text is changed.

Parameters
txtwidget text

References CommandChanged().

void RGPadPrintCommand::PrintSizeXChanged ( const char *  txt)
virtual

Slot called when paper X size is changed.

Parameters
txtwidget text

References SizeXChanged(), and w_print_size_x.

void RGPadPrintCommand::PrintSizeYChanged ( const char *  txt)
virtual

Slot called when paper Y size is changed.

Parameters
txtwidget text

References SizeYChanged(), and w_print_size_y.

void RGPadPrintCommand::PrintOrientationSelected ( Int_t  opt)
virtual

Slot called when paper orientation is changed.

Parameters
optselected element

References OrientationSelected().

RGPadPrintCommand::ClassDef ( RGPadPrintCommand  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: