Scribus
Open source desktop publishing at your fingertips
GuideManagerCore Class Reference

Core manipulation with the guides. Basic idea: More...

#include <guidemanagercore.h>

Public Types

enum  GuideType { Standard, Auto }
 

Public Member Functions

 GuideManagerCore (ScPage *parentPage)
 
void addHorizontal (double value, GuideType type)
 
void addHorizontals (Guides values, GuideType type)
 
void addVertical (double value, GuideType type)
 
void addVerticals (Guides values, GuideType type)
 
void deleteHorizontal (double value, GuideType type)
 
void deleteVertical (double value, GuideType type)
 
void moveHorizontal (double from, double to, GuideType type)
 
void moveVertical (double from, double to, GuideType type)
 
Guides horizontals (GuideType type)
 
Guides verticals (GuideType type)
 
double horizontal (uint ix, GuideType type)
 
double vertical (uint ix, GuideType type)
 
Guides getAutoHorizontals (ScPage *page=NULL)
 
Guides getAutoVerticals (ScPage *page=NULL)
 
void clearHorizontals (GuideType type)
 
void clearVerticals (GuideType type)
 
void copy (GuideManagerCore *target)
 
void copy (GuideManagerCore *target, GuideType type)
 
void drawPage (ScPainter *p, ScribusDoc *doc, double lineWidth)
 
int isMouseOnHorizontal (double low, double high, GuideType type)
 
int isMouseOnVertical (double low, double high, GuideType type)
 
void setPage (ScPage *p)
 
QPair< double, double > topLeft (double x, double y)
 
QPair< double, double > topRight (double x, double y)
 
QPair< double, double > bottomLeft (double x, double y)
 
QPair< double, double > bottomRight (double x, double y)
 
int horizontalAutoCount ()
 Properties for Auto guides remembrance. See GuideManager.
 
void setHorizontalAutoCount (int val)
 Properties for Auto guides remembrance. See GuideManager.
 
int verticalAutoCount ()
 Properties for Auto guides remembrance. See GuideManager.
 
void setVerticalAutoCount (int val)
 Properties for Auto guides remembrance. See GuideManager.
 
double horizontalAutoGap ()
 Properties for Auto guides remembrance. See GuideManager.
 
double verticalAutoGap ()
 Properties for Auto guides remembrance. See GuideManager.
 
void setHorizontalAutoGap (double gap)
 Properties for Auto guides remembrance. See GuideManager.
 
void setVerticalAutoGap (double gap)
 Properties for Auto guides remembrance. See GuideManager.
 
int horizontalAutoRefer ()
 Properties for Auto guides remembrance. See GuideManager.
 
void setHorizontalAutoRefer (int val)
 Properties for Auto guides remembrance. See GuideManager.
 
int verticalAutoRefer ()
 Properties for Auto guides remembrance. See GuideManager.
 
void setVerticalAutoRefer (int val)
 Properties for Auto guides remembrance. See GuideManager.
 

Public Attributes

double gx
 Selection/group coordinates It's used to simulate the original selection "freezed in time" for parent page.
 
double gy
 
double gw
 
double gh
 

Detailed Description

Core manipulation with the guides. Basic idea:

  • guides are handled "on the fly", no by modal dialog.
  • 2 types of guides: Standard = created one by one. Auto = created by automatic division algorithms. Automatic guides are kept by 2 ways: 1st its parameters (m_horizontalAutoCount etc.) to setup the GUI and compute guides itself. 2nd the horizontalAutoG etc. set with precomputed values from GUI actions for drawing.
  • user can move only Stnadard ones
  • Auto guides can be deleted only in manipulation dialog
  • Auto guides are painted in different color / (probably) with diff. line.
    Author
    Petr vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo

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