Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
FigureEditor Class Referenceabstract

This class implements additional QCanvasView functionality. More...

#include <FigureEditor.h>

Inheritance diagram for FigureEditor:
Inheritance graph
[legend]
Collaboration diagram for FigureEditor:
Collaboration graph
[legend]

Classes

class  CanvasEvent
 An Qt event class which wraps a QCanvasItem to be processed by the event. More...
 

Public Member Functions

void add (QCanvasItem *item)
 Adds the item to the canvas. More...
 
void addPage ()
 Adds a page to the canvas. More...
 
void addSelectedItem (QCanvasItem *item)
 Add an item to the selected list. More...
 
 canvas () const
 
void clear ()
 Removes all items from canvas and destroy them. More...
 
 drawContents (QPainter *p, int cx, int cy, int cw, int ch)
 
void ensureVisible (const QCanvasItem *item)
 Scrolls the canvas, if needed, so the QCanvasItem item is visible. More...
 
void enterEvent (QEvent *)
 Grabs the event when mouse cursor enters the widget. More...
 
 FigureEditor (QCanvas *, QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
 The constructor. More...
 
const QStringgetAppKey () const
 Returns a reference the application's QSettings key. More...
 
const QStringgetRegistry () const
 Returns a reference to the application's registry. More...
 
QCanvasItemgetRightItem ()
 Get the QCanvasItem clicked by right mouse button. More...
 
std::vector< QCanvasItem * > & getSelectedItems ()
 Return the vector of selected items. More...
 
bool getZoomMode () const
 Returns the bool indicating whether zoom mode is enabled or not. More...
 
void hide (QCanvasItem *item)
 Removes the item from the canvas but not destroys it. More...
 
 inverseWorldMatrix () const
 
bool isSingleItemSelected () const
 Returns true if just one item is selected, else returns false. More...
 
void leaveEvent (QEvent *)
 Grabs the event when mouse cursor leaves the widget. More...
 
void paste (QCanvasItem *item)
 Adds the item to the canvas. More...
 
void placeGraph (QCanvasRectangle *)
 Moves the QCanvasRectangle object to place on the canvas where it will not collide with existing QCanvasItem object and not be off the usable page area. More...
 
virtual void print ()
 Prints the view to the printer. More...
 
virtual void print (const std::string &filename)
 Prints the view to Postscript file filename. More...
 
void remove (QCanvasItem *item)
 Removes the item from the canvas and destroys it. More...
 
void removeSelectedItem (QCanvasItem *item)
 Removes an item from the selection list. More...
 
void resizeEvent (QResizeEvent *e)
 Re-sizes the QCanvas in response to parent window receiving QResizeEvent. More...
 
void scaleBy (double factor)
 Scales the size of the images by factor. More...
 
QCanvasItemselectedItem () const
 Returns the selected QCanvasItem. More...
 
void setAllSelected (bool flag=true)
 Sets selection flag on all QCanvasItem objects. More...
 
 setCanvas (QCanvas *canvas)
 
void setLocked (bool flag)
 Sets the selected QCanvasItem to be locked in size and position. More...
 
void setPrinterSettings ()
 Set the default printer settings. More...
 
void setSelectedFlags ()
 Set the selected flags. More...
 
void setSelectedItem (QCanvasItem *)
 Set the selected QCanvasItem. More...
 
 setWorldMatrix (const QWMatrix &wm)
 
void setZoomMode (bool flag)
 Sets the zoom mode to flag. More...
 
void showPrinterMargins (bool on)
 Sets showing the printer margins on or off. More...
 
 sizeHint () const
 
virtual void viewShowPickTable ()=0
 Show the pick table. More...
 
void viewZoomIn ()
 Enlarges the view of the canvas. More...
 
void viewZoomOut ()
 Reduces the view of the canvas. More...
 
void viewZoomReset ()
 Returns the view to normal size. More...
 
 worldMatrix () const
 

Static Public Member Functions

static void setAppKey (const std::string &)
 Sets the QSettings application key. More...
 

Protected Types

enum  Location {
  none, invalid, upper_left, upper_middle,
  upper_right, middle_left, middle_right, lower_left,
  lower_middle, lower_right
}
 Possible locations where on a QCanvasItem the mouse cursor was when clicked. More...
 

Protected Member Functions

void addPageMargin (int x, int y)
 Adds page margin. More...
 
void addToItemList (QCanvasItem *item)
 
void calcPrinterMetrics (QPaintDevice *)
 Calculate the size of a page by using the printer metrics. More...
 
void clearSelectedList ()
 De-selects all items, making the selection list empty. More...
 
void contentsMouseMoveEvent (QMouseEvent *, double aspect)
 Moves or re-sizes the selected QCanvasItem object. More...
 
virtual void contentsMousePressEvent (QMouseEvent *)
 
void contentsMouseReleaseEvent (QMouseEvent *)
 Handles details of mouse release, right button. More...
 
virtual void controlMousePressEvent ()=0
 Handles details of mouse press event with shift key pressed. More...
 
void copySelectedToClipboard ()
 Adds selected items to system clipboard. More...
 
QImage createImage (const QRect &rectange) const
 Creates and returns a QImage from the area defined on the canvas. More...
 
QPixmapcreatePixmap (const QRect &rectangle) const
 Creates and returns a new QPixmap from the area defined on the canvas. More...
 
QRect getSelectedBounds () const
 Returns a QRect that enclosed the selected QCanvasItem objects. More...
 
void initPrinter ()
 Initializes the printer settings from the saved settings. More...
 
void makeVisible (const QCanvasItem *item)
 Scrolls the canvas, if needed, so the QCanvasItem item is visible. More...
 
double maximumZ () const
 Returns the largest Z value of all the items on the canvas. More...
 
void mouseMoveMultiItem (QMouseEvent *e)
 Move more than one items in the Canvas. More...
 
void movePlotterWithText (QCanvasItem *item, float dx, float dy)
 Move a plotter with all its targetted text plotters. More...
 
virtual void notifyObservers ()=0
 Notifies Observer objects, if any, that something has changed. More...
 
void placeGraphOnSelected (QCanvasRectangle *item)
 Adds the item on top of the currently selected item. More...
 
void print (QPrinter *printer)
 Prints the view to the printer. More...
 
void removeFromItemList (QCanvasItem *item)
 Removes the item from list of items on the canvas. More...
 
void resizeCanvasToFit (QCanvasItem *item)
 Re-sizes the canvas if necessary so that the item is on the canvas. More...
 
void saveAreaAsPixmap (const QRect &area, const std::string &filename)
 Saves the area area as pixmap to file filename. More...
 
void savePrinterSettings ()
 Saves the printer setting with QSettings. More...
 
void saveSelectedAsPixmap (const std::string &filename)
 Save the selected objects as Pixmap image file filename. More...
 
void setCollidingSelected (const QCanvasItem *target)
 Sets all QCanvasItems that collide with target to selected state. More...
 
void setSelectedItems (bool state)
 Sets the selected items to selection state state. More...
 
void setUnselectedVisible (bool yes)
 Sets the unselected items to visible or not. More...
 
void whereClicked ()
 Finds which knob on the selected item was clicked. More...
 

Protected Attributes

int m_apage_h
 The actual Page height in Postscript points. More...
 
int m_apage_w
 The actual Page width in Postscript points. More...
 
QCanvasm_canvas
 The canvas object. More...
 
bool m_ignore_margin
 a flag set to true if the printer margins should be ignored when adding a plot to the canvas. More...
 
bool m_isMouseDown
 The flag of mouse down or not, used when moving multiple plots. More...
 
std::vector< QCanvasItem * > m_items
 The list of view items on the canvas. More...
 
QPoint m_mouse_down
 The point of a mouse down, used when moving multiple plots. More...
 
QPoint m_moving_start
 The starting point of a mouse drag. More...
 
QCanvasItemm_preSelected
 The view item which is preselected when left mouse button down. More...
 
bool m_printer_bounds
 A flag to indicate if rectangle display usable printer boundary should be displayed or not. More...
 
QCanvasItemm_rightItem
 The view item which is clicked with right mouse button when contentsMousePressEvent() happens. More...
 
double m_scale_factor
 The scale factor. More...
 
std::vector< QCanvasItem * > m_selected_list
 The list of currently selected QCanvasItem objects. More...
 
int m_upage_h
 The usable Page height in Postscript points. More...
 
int m_upage_w
 The usable Page width in Postscript points. More...
 
Location m_whereClicked
 Location where the mouse cursor clicked the object. More...
 
bool m_zoom_mode
 Set to true if zoom Mode is enabled. More...
 
QPoint m_zoom_start
 The starting point of a mouse drag.for zoom. More...
 

Static Protected Attributes

static QString s_app_key
 The QSettings application key for searching for setting. More...
 
static QPrinters_printer = 0
 The single QPrinter instance. More...
 
static QString s_registry
 The QSettings Windows registry key. More...
 

Private Member Functions

virtual void customEvent (QCustomEvent *event)
 The receiver of Qt custom events. More...
 

Detailed Description

This class implements additional QCanvasView functionality.

Attention
This class knows about QCanvasItem objects. Any methods that need to know about classes derived from QCanvasItem that are not part of Qt should be implemented in a derived class.

The original source code was taken from $QTDIR/examples/canvas/canvas.h of version 3.0 of Qt.

Bug:
@@@ Mac OS X only, printer margins not showing in correct place on the Canvas, however printing is working fine.
Requests:
Move any attached text displays along with moved plotter display.
Requests:
@@@ For plots using pixmap, do not draw plot when resizing until mouse is release.
Todo:
Need ability to group and un-group items.
Todo:
add page by adding another standard size page (either A4 or US Letter depending on preferences set somewhere.
Author
Kaustuv kaust.nosp@m.uv@s.nosp@m.tanfo.nosp@m.rd.e.nosp@m.du
Paul F. Kunz Paul_.nosp@m.Kunz.nosp@m.@slac.nosp@m..sta.nosp@m.nford.nosp@m..edu
Sanket B. Malde sanke.nosp@m.t@st.nosp@m.anfor.nosp@m.d.ed.nosp@m.u
Engineers at Trolltech who wrote examples/canvas

Definition at line 73 of file FigureEditor.h.

Member Enumeration Documentation

enum Location
protected

Possible locations where on a QCanvasItem the mouse cursor was when clicked.

Enumerator
none 
invalid 
upper_left 
upper_middle 
upper_right 
middle_left 
middle_right 
lower_left 
lower_middle 
lower_right 

Definition at line 309 of file FigureEditor.h.

Constructor & Destructor Documentation

FigureEditor ( QCanvas c,
QWidget parent = 0,
const char *  name = 0,
Qt::WFlags  f = 0 
)

The constructor.

Definition at line 114 of file FigureEditor.cxx.

References QSettings::insertSearchPath(), QSettings::readNumEntry(), and yes.

Member Function Documentation

void add ( QCanvasItem item)

Adds the item to the canvas.

Expands the canvas' size if necessary.

Referenced by CanvasView::addView(), CanvasView::groupView(), CanvasView::initFrom(), and CanvasView::ungroupView().

void addPage ( )

Adds a page to the canvas.

Referenced by CanvasWindow::viewAddPage().

void addPageMargin ( int  x,
int  y 
)
protected

Adds page margin.

Adds an indication of the page's margin. Only the contents inside the margin is printable.

Definition at line 256 of file FigureEditor.cxx.

References FigureEditor::m_apage_h, FigureEditor::m_apage_w, FigureEditor::m_canvas, FigureEditor::m_printer_bounds, FigureEditor::m_upage_h, and FigureEditor::m_upage_w.

Referenced by FigureEditor::showPrinterMargins().

void addSelectedItem ( QCanvasItem item)

Add an item to the selected list.

Referenced by CanvasView::groupView(), CanvasView::pasteViews(), and CanvasView::ungroupView().

void addToItemList ( QCanvasItem item)
protected
void calcPrinterMetrics ( QPaintDevice device)
protected

Calculate the size of a page by using the printer metrics.

The size of a printable page is calculated on the basis that one pixel will become one Postscript point. A QPaintDeviceMetrics object is created to find the actual and usable size of a page in millimeters which is then converted to Postscript Points.

Bug:
@@@ Talking the default printer at start-up causes large delays if printer is not available on the network.

Definition at line 286 of file FigureEditor.cxx.

References QSize::height(), QString::isNull(), FigureEditor::m_apage_h, FigureEditor::m_apage_w, FigureEditor::m_upage_h, FigureEditor::m_upage_w, QPrinter::printerName(), FigureEditor::s_printer, and QSize::width().

void clear ( )

Removes all items from canvas and destroy them.

Referenced by CanvasView::clear().

void clearSelectedList ( )
protected

De-selects all items, making the selection list empty.

Referenced by CanvasView::groupView(), CanvasView::pasteViews(), and CanvasView::ungroupView().

void contentsMouseMoveEvent ( QMouseEvent ,
double  aspect 
)
protected

Moves or re-sizes the selected QCanvasItem object.

The is moved if one of its knobs was selected, otherwise, it is re-sized. If aspect is non zero, then keeps its aspect ratio is kept while resizing.

Referenced by CanvasView::contentsMouseMoveEvent().

virtual void contentsMousePressEvent ( QMouseEvent )
protectedvirtual

Reimplemented in CanvasView.

Referenced by CanvasView::contentsMousePressEvent().

void contentsMouseReleaseEvent ( QMouseEvent )
protected

Handles details of mouse release, right button.

Referenced by CanvasView::contentsMouseReleaseEvent().

virtual void controlMousePressEvent ( )
protectedpure virtual

Handles details of mouse press event with shift key pressed.

Implemented in CanvasView.

void copySelectedToClipboard ( )
protected

Adds selected items to system clipboard.

Referenced by CanvasView::copySelectedToPasteboard().

QImage createImage ( const QRect rectange) const
protected

Creates and returns a QImage from the area defined on the canvas.

QPixmap* createPixmap ( const QRect rectangle) const
protected

Creates and returns a new QPixmap from the area defined on the canvas.

virtual void customEvent ( QCustomEvent event)
privatevirtual

The receiver of Qt custom events.

void ensureVisible ( const QCanvasItem item)

Scrolls the canvas, if needed, so the QCanvasItem item is visible.

Referenced by CanvasView::addView().

void enterEvent ( QEvent )

Grabs the event when mouse cursor enters the widget.

const QString& getAppKey ( ) const

Returns a reference the application's QSettings key.

const QString& getRegistry ( ) const

Returns a reference to the application's registry.

QCanvasItem* getRightItem ( )
QRect getSelectedBounds ( ) const
protected

Returns a QRect that enclosed the selected QCanvasItem objects.

Referenced by CanvasView::saveSelectedAsEps().

std::vector< QCanvasItem * > & getSelectedItems ( )

Return the vector of selected items.

Definition at line 360 of file FigureEditor.cxx.

References FigureEditor::m_selected_list.

Referenced by CanvasView::saveSelectedImages().

bool getZoomMode ( ) const

Returns the bool indicating whether zoom mode is enabled or not.

Referenced by CanvasView::contentsMouseMoveEvent(), and CanvasView::setPlotZoom().

void hide ( QCanvasItem item)

Removes the item from the canvas but not destroys it.

Used in grouping several items together.

Todo:
This function has a side effect of clearing the selection list, probably should not do that.

Referenced by CanvasView::hideSelected().

void initPrinter ( )
protected
bool isSingleItemSelected ( ) const

Returns true if just one item is selected, else returns false.

Definition at line 331 of file FigureEditor.cxx.

References FigureEditor::m_selected_list.

Referenced by CanvasView::contentsMouseMoveEvent(), FigureEditor::selectedItem(), and CanvasView::viewShowPickTable().

void leaveEvent ( QEvent )

Grabs the event when mouse cursor leaves the widget.

void makeVisible ( const QCanvasItem item)
protected

Scrolls the canvas, if needed, so the QCanvasItem item is visible.

double maximumZ ( ) const
protected

Returns the largest Z value of all the items on the canvas.

If the item is a text plotter, take z()-100 instead of z(). This is to keep all text plotters on top of XyPlotters.

Referenced by CanvasView::addTextDisplay().

void mouseMoveMultiItem ( QMouseEvent e)
protected

Move more than one items in the Canvas.

Referenced by CanvasView::contentsMouseMoveEvent().

void movePlotterWithText ( QCanvasItem item,
float  dx,
float  dy 
)
protected

Move a plotter with all its targetted text plotters.

virtual void notifyObservers ( )
protectedpure virtual

Notifies Observer objects, if any, that something has changed.

Implemented in CanvasView.

void paste ( QCanvasItem item)

Adds the item to the canvas.

This method differs from add in that it displaces the item by a fixed amount before adding.

Referenced by CanvasView::pasteViews().

void placeGraph ( QCanvasRectangle )

Moves the QCanvasRectangle object to place on the canvas where it will not collide with existing QCanvasItem object and not be off the usable page area.

Referenced by CanvasView::addFromPasteboard(), and CanvasView::sizeAndPlace().

void placeGraphOnSelected ( QCanvasRectangle item)
protected

Adds the item on top of the currently selected item.

void print ( QPrinter printer)
protected

Prints the view to the printer.

virtual void print ( )
virtual

Prints the view to the printer.

Presents the Print dialog to user and then prints the view to the selected printer.

Reimplemented in CanvasView.

Referenced by CanvasView::print().

virtual void print ( const std::string &  filename)
virtual

Prints the view to Postscript file filename.

Reimplemented in CanvasView.

void remove ( QCanvasItem item)

Removes the item from the canvas and destroys it.

Todo:
This function has a side effect of clearing the selection list, probably should not do that.
void removeFromItemList ( QCanvasItem item)
protected

Removes the item from list of items on the canvas.

Referenced by CanvasView::groupView(), and CanvasView::reTilePage().

void removeSelectedItem ( QCanvasItem item)

Removes an item from the selection list.

void resizeCanvasToFit ( QCanvasItem item)
protected

Re-sizes the canvas if necessary so that the item is on the canvas.

Changes the height by one page size while keeping the width constant.

void resizeEvent ( QResizeEvent e)

Re-sizes the QCanvas in response to parent window receiving QResizeEvent.

The QCanvas may grow in size, but is never made smaller by this method.

Referenced by CanvasWindow::resizeEvent().

void saveAreaAsPixmap ( const QRect area,
const std::string &  filename 
)
protected

Saves the area area as pixmap to file filename.

Referenced by CanvasView::savePlotAsImage().

void savePrinterSettings ( )
protected

Saves the printer setting with QSettings.

void saveSelectedAsPixmap ( const std::string &  filename)
protected

Save the selected objects as Pixmap image file filename.

Referenced by CanvasView::saveSelectedImages().

void scaleBy ( double  factor)

Scales the size of the images by factor.

The factor might be modified to ensure we see at least a page in single glance of the canvas.

QCanvasItem * selectedItem ( ) const
void setAllSelected ( bool  flag = true)

Sets selection flag on all QCanvasItem objects.

Referenced by CanvasWindow::editSelectAll(), and CanvasWindow::setAllSelected().

void setAppKey ( const std::string &  appkey)
static

Sets the QSettings application key.

Definition at line 185 of file FigureEditor.cxx.

References FigureEditor::s_app_key.

void setCollidingSelected ( const QCanvasItem target)
protected

Sets all QCanvasItems that collide with target to selected state.

Referenced by CanvasView::saveSelectedImages().

void setLocked ( bool  flag)

Sets the selected QCanvasItem to be locked in size and position.

Referenced by CanvasWindow::viewLock(), and CanvasWindow::viewUnlock().

void setPrinterSettings ( )

Set the default printer settings.

void setSelectedFlags ( )

Set the selected flags.

Referenced by CanvasView::saveSelectedImages().

void setSelectedItem ( QCanvasItem )

Set the selected QCanvasItem.

This is called only when just one item is selected.

Referenced by CanvasView::addView(), and CanvasWindow::setSelected().

void setSelectedItems ( bool  state)
protected

Sets the selected items to selection state state.

For each QCanvasItem in the selection list, set their selection state to state. Does not alter the selection list.

void setUnselectedVisible ( bool  yes)
protected

Sets the unselected items to visible or not.

Referenced by CanvasView::saveSelectedImages().

void setZoomMode ( bool  flag)

Sets the zoom mode to flag.

void showPrinterMargins ( bool  on)

Sets showing the printer margins on or off.

Definition at line 192 of file FigureEditor.cxx.

References FigureEditor::addPageMargin(), item, FigureEditor::m_apage_h, FigureEditor::m_canvas, and FigureEditor::m_printer_bounds.

Referenced by CanvasView::setup(), and CanvasView::swapOrientation().

virtual void viewShowPickTable ( )
pure virtual

Show the pick table.

Implemented in CanvasView.

void viewZoomIn ( )

Enlarges the view of the canvas.

Referenced by CanvasWindow::viewZoomIn().

void viewZoomOut ( )

Reduces the view of the canvas.

Referenced by CanvasWindow::viewZoomOut().

void viewZoomReset ( )

Returns the view to normal size.

void whereClicked ( )
protected

Finds which knob on the selected item was clicked.

Member Data Documentation

int m_apage_h
protected
int m_apage_w
protected

The actual Page width in Postscript points.

Definition at line 127 of file FigureEditor.h.

Referenced by FigureEditor::addPageMargin(), FigureEditor::calcPrinterMetrics(), CanvasView::reTilePage(), and CanvasView::swapOrientation().

QCanvas* m_canvas
protected

The canvas object.

Although one can always retrieve the canvas object by calling the canvas() member function, it is convenient to have this as a data member.

Definition at line 283 of file FigureEditor.h.

Referenced by FigureEditor::addPageMargin(), CanvasView::reTilePage(), CanvasView::setVisibleNonViews(), FigureEditor::showPrinterMargins(), and CanvasView::views().

bool m_ignore_margin
protected

a flag set to true if the printer margins should be ignored when adding a plot to the canvas.

Definition at line 153 of file FigureEditor.h.

Referenced by CanvasView::initSettings(), CanvasView::saveSettings(), and CanvasView::setup().

bool m_isMouseDown
protected

The flag of mouse down or not, used when moving multiple plots.

Definition at line 305 of file FigureEditor.h.

std::vector< QCanvasItem * > m_items
protected

The list of view items on the canvas.

This list is a subset of the one kept by the QCanvas object,That one doesn't seem to maintain the order that items were inserted while this one does. Also, only application items are added to this list, not page decorations.

Attention
All methods that add or remove items from the canvas should maintain this list. That means QCanvasItem::setCanvas and QCanvasItem::~QCanvasItem.

Definition at line 238 of file FigureEditor.h.

Referenced by CanvasView::reTile().

QPoint m_mouse_down
protected

The point of a mouse down, used when moving multiple plots.

Definition at line 302 of file FigureEditor.h.

QPoint m_moving_start
protected

The starting point of a mouse drag.

Definition at line 296 of file FigureEditor.h.

QCanvasItem* m_preSelected
protected

The view item which is preselected when left mouse button down.

Useful only when multiple items are selected and one of them is pressed. Need to decide whether to select or to move all plots.

Definition at line 263 of file FigureEditor.h.

bool m_printer_bounds
protected

A flag to indicate if rectangle display usable printer boundary should be displayed or not.

Definition at line 148 of file FigureEditor.h.

Referenced by FigureEditor::addPageMargin(), CanvasView::saveSettings(), CanvasView::setup(), and FigureEditor::showPrinterMargins().

QCanvasItem* m_rightItem
protected

The view item which is clicked with right mouse button when contentsMousePressEvent() happens.

When contentsMoveMouseEvent() happens, get to this member, get the position of the cursor. When contentsReleaseMouseEvent() happens, reset the mouse cursor to arrow.

Definition at line 252 of file FigureEditor.h.

double m_scale_factor
protected

The scale factor.

The factor by which drawing has been reduced so that a canvas page fits in the window. This factor should be applied in inverse before printing.

Definition at line 136 of file FigureEditor.h.

std::vector< QCanvasItem * > m_selected_list
protected
int m_upage_h
protected

The usable Page height in Postscript points.

Definition at line 225 of file FigureEditor.h.

Referenced by FigureEditor::addPageMargin(), CanvasView::calcDefaultSize(), FigureEditor::calcPrinterMetrics(), and CanvasView::swapOrientation().

int m_upage_w
protected
Location m_whereClicked
protected

Location where the mouse cursor clicked the object.

Definition at line 315 of file FigureEditor.h.

Referenced by CanvasView::contentsMouseReleaseEvent().

bool m_zoom_mode
protected

Set to true if zoom Mode is enabled.

Definition at line 140 of file FigureEditor.h.

QPoint m_zoom_start
protected

The starting point of a mouse drag.for zoom.

Definition at line 299 of file FigureEditor.h.

Referenced by CanvasView::contentsMouseMoveEvent().

QString s_app_key
staticprotected

The QSettings application key for searching for setting.

The initial value is "HippoDraw", but may be changed by Starkey.

Definition at line 272 of file FigureEditor.h.

Referenced by for(), CanvasView::initFitterDefault(), FigureEditor::initPrinter(), CanvasView::initRecentFiles(), CanvasView::initSettings(), CanvasView::saveSettings(), FigureEditor::setAppKey(), and CanvasView::setFitterDefault().

QPrinter * s_printer = 0
staticprotected
QString s_registry
staticprotected

The QSettings Windows registry key.

The key is the same as used for by Trolltech for their Qt applications

Definition at line 277 of file FigureEditor.h.

Referenced by CanvasView::initFitterDefault(), FigureEditor::initPrinter(), CanvasView::initRecentFiles(), CanvasView::initSettings(), CanvasView::saveSettings(), and CanvasView::setFitterDefault().


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

Generated for HippoDraw Class Library by doxygen