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

CanvasSettings Class Reference

#include <CanvasSettings.h>

Inheritance diagram for CanvasSettings:

Inheritance graph
[legend]
Collaboration diagram for CanvasSettings:

Collaboration graph
[legend]
List of all members.

Detailed Description

This class manages the CanvasView settings dialog.

This class manages the CanvasView settings dialog. It looks like this ...

canvaswindowsettingsdialog.png

The canvas settings dialog.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 34 of file CanvasSettings.h.

Public Types

enum  Type { Accepted, Rejected, AcceptedAndRetile, Retile }
 Return codes from running the CanvasSettings dialog. More...

Public Member Functions

 CanvasSettings (QWidget *parent=0, const char *name=0, bool modal=false, Qt::WFlags fl=0)
 The constructor.
bool getAddSelected () const
 Returns true if added plots should be selected.
int getHeightNumber () const
 Returns the number of new plots vertically.
int getWidthNumber () const
 Returns the number of new plots horizontally.
QPrinter::Orientation orientation ()
 Gets the orientation of the canvas which can be Portrait or Landscape.
bool printerBounds ()
 Sets the if the printer margin/bounds should be visible on the canvas or not.
void setHeightNumber (int number)
 Sets the number of new plots vertically.
void setOrientation (QPrinter::Orientation orientation)
 Sets the orientation of the canvas which can be Portrait or Landscape.
void setPrinterBounds (bool flag)
 Gets the flag if the printer margin/bounds should be visible on the canvas or not.
void setWidthNumber (int number)
 Sets the number of new plots horizontally.

Protected Member Functions

virtual void cancel ()
 Responds to Cancel button.
virtual void on_portraitRadioButton_toggled (bool)
 Responds portrait is clicked.
virtual void on_retile_clicked ()
 Responds to re-tile button clicked.
virtual void saveRetile ()
 Responds to Save & Retile button.

Private Member Functions

void orientationChanged ()
 Changes the plot matrix orientation.


Member Enumeration Documentation

enum CanvasSettings::Type
 

Return codes from running the CanvasSettings dialog.

Enumerator:
Accepted  Accept new setting for new plots.
Rejected  Reject changes.
AcceptedAndRetile  Accept new setting and retile.
Retile  Retile only.

Definition at line 46 of file CanvasSettings.h.


Constructor & Destructor Documentation

CanvasSettings::CanvasSettings QWidget parent = 0,
const char *  name = 0,
bool  modal = false,
Qt::WFlags  fl = 0
 

The constructor.

Definition at line 19 of file CanvasSettings.cxx.

References cancel().


Member Function Documentation

void CanvasSettings::cancel  )  [protected, virtual]
 

Responds to Cancel button.

Definition at line 36 of file CanvasSettings.cxx.

References Rejected.

Referenced by CanvasSettings().

bool CanvasSettings::getAddSelected  )  const
 

Returns true if added plots should be selected.

Definition at line 140 of file CanvasSettings.cxx.

int CanvasSettings::getHeightNumber  )  const
 

Returns the number of new plots vertically.

Definition at line 71 of file CanvasSettings.cxx.

Referenced by orientationChanged().

int CanvasSettings::getWidthNumber  )  const
 

Returns the number of new plots horizontally.

Definition at line 57 of file CanvasSettings.cxx.

Referenced by orientationChanged().

void CanvasSettings::on_portraitRadioButton_toggled bool   )  [protected, virtual]
 

Responds portrait is clicked.

Definition at line 85 of file CanvasSettings.cxx.

References orientationChanged().

void CanvasSettings::on_retile_clicked  )  [protected, virtual]
 

Responds to re-tile button clicked.

Definition at line 50 of file CanvasSettings.cxx.

References Retile.

QPrinter::Orientation CanvasSettings::orientation  ) 
 

Gets the orientation of the canvas which can be Portrait or Landscape.

Definition at line 103 of file CanvasSettings.cxx.

void CanvasSettings::orientationChanged  )  [private]
 

Changes the plot matrix orientation.

Definition at line 92 of file CanvasSettings.cxx.

References getHeightNumber(), getWidthNumber(), setHeightNumber(), and setWidthNumber().

Referenced by on_portraitRadioButton_toggled().

bool CanvasSettings::printerBounds  ) 
 

Sets the if the printer margin/bounds should be visible on the canvas or not.

Definition at line 125 of file CanvasSettings.cxx.

void CanvasSettings::saveRetile  )  [protected, virtual]
 

Responds to Save & Retile button.

Definition at line 43 of file CanvasSettings.cxx.

References AcceptedAndRetile.

void CanvasSettings::setHeightNumber int  number  ) 
 

Sets the number of new plots vertically.

Definition at line 78 of file CanvasSettings.cxx.

Referenced by orientationChanged().

void CanvasSettings::setOrientation QPrinter::Orientation  orientation  ) 
 

Sets the orientation of the canvas which can be Portrait or Landscape.

Definition at line 115 of file CanvasSettings.cxx.

void CanvasSettings::setPrinterBounds bool  flag  ) 
 

Gets the flag if the printer margin/bounds should be visible on the canvas or not.

Definition at line 130 of file CanvasSettings.cxx.

void CanvasSettings::setWidthNumber int  number  ) 
 

Sets the number of new plots horizontally.

Definition at line 64 of file CanvasSettings.cxx.

Referenced by orientationChanged().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3