#include <qsplotview.h>
Public Types | |
enum | ScrollBarType { HorizontalBar = 0, VerticalBar = 1 } |
enum | SliderType { HorizontalSlider = 0, VerticalSlider = 1, AdditionalSlider = 2 } |
Public Slots | |
void | setCurrentPage (int index) |
void | updateCanvas () |
Signals | |
void | message (const QString &msg) |
void | sigActiveObjectChanged () |
void | sigActiveAxesChanged () |
void | sigActiveAxesDatasetsChanged () |
void | sigCurrentPageChanged () |
void | sigCurrentPageTitleChanged (const QString &newTitle) |
void | sigCurrentPageObjectListChanged () |
void | sigPageBarClicked () |
void | sigSliderPressed () |
void | sigSliderReleased () |
void | sigScrollBarPressed () |
void | sigScrollBarReleased () |
Public Methods | |
QSPlotView (QWidget *parent=0, const char *name=0) | |
virtual | ~QSPlotView () |
void | setWorkbook (QSWorkbook *workbook) |
QSWorkbook * | workbook () const |
QSPage * | currentPage () const |
QSSelection * | selection () const |
void | setPixmapBuffering (bool enabled) |
bool | pixmapBuffering () const |
void | setTool (QSTool *t) |
void | setFullPage (bool enabled) |
void | setZoom (double zoom) |
void | setGridSpacing (int x_mm, int y_mm) |
void | setGridVisible (bool visible) |
void | setRulersVisible (bool visible) |
void | setSlidersVisible (bool visible) |
void | setPageMarginsVisible (bool visible) |
QSCObject * | activeObject () const |
QSAxes * | activeAxes () const |
QSCObjectCollection * | activeCollection () const |
int | gridSpacingX () const |
int | gridSpacingY () const |
bool | gridVisible () const |
bool | rulersVisible () const |
bool | slidersVisible () const |
bool | pageMarginsVisible () const |
bool | fullPage () const |
double | zoom () const |
double | dpi () const |
void | bindScrollBar (ScrollBarType t, QSAxis::AxisType axisType) |
void | bindSlider (SliderType t, const char *property, int min, int max) |
QSAxis::AxisType | scrollBarAxis (ScrollBarType t) const |
QCString | sliderProperty (SliderType t) const |
int | sliderMin (SliderType t) const |
int | sliderMax (SliderType t) const |
QSTool * | tool () const |
QWidget * | canvasWidget () const |
QSCObject * | objectAt (const QPoint &pos, bool recursive=true) |
void | showUserMessage (const QString &msg) |
bool | eventFilter (QObject *, QEvent *) |
Just call setWorkbook(). View updates itself automatically when workbook changes. It also manages canvas tools, see setTool(). Some object in the workbook can be selected, see selection().
demo2d.cpp, and demo3d.cpp.
|
See bindScrollBar() |
|
See bindSlider() |
|
Constructor. |
|
Destructor. |
|
Returns the active axes or NULL.( active means a parent axes of the selected object ). |
|
Default parent collection for newly created objects. If QSGroup s selected this is QSCGroup, if not this is QSPage or NULL. |
|
Returns the currently active object. If selection contains only one object - it becames active object, active object is NULL if selection contains more than a one object. |
|
Designates a scrollbar to set a range on the given axis. This applies only to the active axes object. Only bounded scrollbars are visible. To unbind call this function with axis = UnknownAxisType. Those settings are valid even after plot object has changed. |
|
Designates a slider to set a given property of an active axes. To unbind call this function with 'property' set to QSCString::null. |
|
Returns a canvas. |
|
Returns pointer to the current page. See slot setCurrentPage(). |
|
Current dpi of the canvas. It is calculated as follows: zoom*72.0 |
|
Reimplemented |
|
Returns a full page setting. |
|
Returns a grid spacing |
|
Returns a grid spacing |
|
Is grid visible. |
|
Status messages. Emmited mainly by tools during their work. |
|
Returns object at position 'pos' or NULL. if 'recursive' is true it digs through all QSCGroups. |
|
Is page margin visible. |
|
Returns if pixmap buffering is on |
|
Are rulers visible. |
|
A bumber of axis or UnknownAxisType. |
|
Returns selection |
|
Sets the current ( displayed ) page |
|
Turns on/off the full page mode. |
|
Sets grid spacing |
|
Shows/hides grid |
|
Shows/hides page margin |
|
Enables/disables pixmap buffering. |
|
Shows/hides rulers |
|
Shows/hides sliders and scrollbars |
|
Sets a new tool. |
|
Sets a workbook. |
|
Sets a zoom value. Currently accepts values between 0.1 and 5.0. |
|
Shows a user message. Emits message() signal. |
|
Emitted when an active object changes, Notice that an active axes can change in this case too. |
|
Added removed reordered. |
|
Emitted when a selected object changes. |
|
Current page was changed - see: setCurrentPage() . |
|
Current page object list was changed. |
|
Current page title has changed |
|
Mouse right-button click over page bar. |
|
Scrollbar pressed |
|
Scrollbar released |
|
Slider pressed |
|
Slider released |
|
Returns a max value or 0. |
|
Returns a min value or 0. |
|
Returns a property name or null. |
|
Returns the current 'slider' state. |
|
Returns the currently selected tool |
|
Updates canvas. There should be no need to call this directly. It is always called when the current page changes. |
|
Returns a default workbook. |
|
Return zoom value |