Scribus
Open source desktop publishing at your fingertips
GuideManager Class Reference

GuideManager is the dialog for guides managing ;). It's scribus non-modal palette now. More...

#include <guidemanager.h>

Inheritance diagram for GuideManager:
Collaboration diagram for GuideManager:

Public Member Functions

 GuideManager (QWidget *parent)
 
void setDoc (ScribusDoc *doc)
 Set the doc fo the guidemanager to work on.
 
void setupPage (bool storeValues=true)
 Set the widgets on the page change. It has to be called on every page to page transition.
 
void setupGui ()
 
void clearRestoreHorizontalList ()
 Clear and reset the GUI horizontal list widget.
 
void clearRestoreVerticalList ()
 Clear and reset the GUI vertical list widget.
 
Guides selectedHorizontals ()
 Get selected standard guides from GUI list. Used in highlight painting. More...
 
Guides selectedVerticals ()
 Get selected standard guides from GUI list. Used in highlight painting. More...
 
int pageNr () const
 check the current page number to prevent drawing marks on the others pages. See GuideManagerCore::drawPage. More...
 
int currentIndex ()
 
void setGuideLock (bool guidesLocked)
 
virtual void changeEvent (QEvent *e)
 
- Public Member Functions inherited from ScrPaletteBase
 ScrPaletteBase (QWidget *parent=NULL, const QString &prefsContext=QString::null, bool modal=false, Qt::WindowFlags f=0)
 
virtual void hide ()
 Sample way to grab keystrokes, simply calls superclass at this point.
 
void startup ()
 

Additional Inherited Members

- Public Slots inherited from ScrPaletteBase
virtual void setPaletteShown (bool)
 
virtual void setFontSize ()
 
virtual int exec ()
 
int exec (QWidget *newParent)
 
- Signals inherited from ScrPaletteBase
void paletteShown (bool)
 Let the action for this palette know when something changes and it hasnt caused it.
 
- Protected Slots inherited from ScrPaletteBase
virtual void reject ()
 
- Protected Member Functions inherited from ScrPaletteBase
virtual void setPrefsContext (QString context)
 Set the Preferences context to be used for storage of startup visibility and position and size.
 
void storePosition ()
 
void storePosition (int newX, int newY)
 
void storeSize ()
 
void storeVisibility (bool)
 
virtual void showEvent (QShowEvent *showEvent)
 Restore the geometry of the window when showing it.
 
virtual void closeEvent (QCloseEvent *closeEvent)
 Captures the close event and changes it to hide.
 
virtual void hideEvent (QHideEvent *)
 Stores the geometry of the window when hiding.
 
- Protected Attributes inherited from ScrPaletteBase
PrefsContextpalettePrefs
 
QString prefsContextName
 
bool visibleOnStartup
 
QWidget * originalParent
 
QWidget * tempParent
 

Detailed Description

GuideManager is the dialog for guides managing ;). It's scribus non-modal palette now.

Warning
Be careful with UI file guidemanagerbase.ui it uses ScrPaletteBase as base class instead of QDialog. It should provide correct header file too.
Author
Petr vanek petr@.nosp@m.scri.nosp@m.bus.i.nosp@m.nfo
Alessandro Rimoldi
Franz Schmid

Member Function Documentation

int GuideManager::pageNr ( ) const
inline

check the current page number to prevent drawing marks on the others pages. See GuideManagerCore::drawPage.

Return values
intpage no
Guides GuideManager::selectedHorizontals ( )

Get selected standard guides from GUI list. Used in highlight painting.

Return values
Guidesa list with double values
Guides GuideManager::selectedVerticals ( )

Get selected standard guides from GUI list. Used in highlight painting.

Return values
Guidesa list with double values

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