Colour Manager: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(New page: Category:Scribus_development == The Colour Manager == * The colour manager is defined by <tt>colorm.cpp</tt> * It's called by <tt>scribus.cpp</tt> as follows: <pre>ColorManager* di...)
 
No edit summary
Line 10: Line 10:
** <tt>ColorList EditColors = doco = edc = (HaveDoc ? doc->PageColors : prefsManager->colorSet())</tt>
** <tt>ColorList EditColors = doco = edc = (HaveDoc ? doc->PageColors : prefsManager->colorSet())</tt>
** <tt>ScribusDoc* m_Doc = doc</tt>
** <tt>ScribusDoc* m_Doc = doc</tt>
** <tt>QString* docColSet = prefsManager->colorSetName()</tt>
** <tt>QString* docColSet = prefsManager->colorSetName()</tt> (cannot be used outside of the constructor)
** <tt>QStringList customColSet = custColSet = prefsManager->appPrefs.CustomColorSets</tt>
** <tt>QStringList customColSet = custColSet = prefsManager->appPrefs.CustomColorSets</tt>

Revision as of 16:28, 25 August 2007


The Colour Manager

  • The colour manager is defined by colorm.cpp
  • It's called by scribus.cpp as follows:
ColorManager* dia = new ColorManager(this, edc, doc, prefsManager->colorSetName(), prefsManager->appPrefs.CustomColorSets);
  • The constructors parameters are named as:
    • QWidget* parent = this (cannot be used outside of the constructor)
    • ColorList EditColors = doco = edc = (HaveDoc ? doc->PageColors : prefsManager->colorSet())
    • ScribusDoc* m_Doc = doc
    • QString* docColSet = prefsManager->colorSetName() (cannot be used outside of the constructor)
    • QStringList customColSet = custColSet = prefsManager->appPrefs.CustomColorSets