Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Functions | Variables
scribusdoc.cpp File Reference
#include "scribusdoc.moc"
#include "scribus.h"
#include "scribuscore.h"
#include "scribusdoc.h"
#include "scribusview.h"
#include "scribuswin.h"
#include "guidemanager.h"
#include "seiten.h"
#include <utility>
#include <qeventloop.h>
#include <qfile.h>
#include <qpainter.h>
#include <qprogressbar.h>
#include "fileloader.h"
#include "filewatcher.h"
#include "hruler.h"
#include "hyphenator.h"
#include "layers.h"
#include "page.h"
#include "pageitem.h"
#include "pageitem_imageframe.h"
#include "pageitem_line.h"
#include "pageitem_pathtext.h"
#include "pageitem_polygon.h"
#include "pageitem_polyline.h"
#include "pageitem_textframe.h"
#include "pagestructs.h"
#include "prefsfile.h"
#include "prefsmanager.h"
#include "resourcecollection.h"
#include "scmessagebox.h"
#include "scpainter.h"
#include "scraction.h"
#include "scribusXml.h"
#include "selection.h"
#include "story.h"
#include "undomanager.h"
#include "undostate.h"
#include "units.h"
#include "util.h"
#include "commonstrings.h"
#include "sccolorengine.h"
#include "text/nlsconfig.h"
#include "cmsutil.h"
#include "cmserrorhandling.h"

Go to the source code of this file.

Functions

QPixmap loadIcon (QString nam)

Variables

static const bool FRAMESELECTION_EDITS_DEFAULTSTYLE = false

Function Documentation

QPixmap loadIcon ( QString  nam)

Definition at line 224 of file util.cpp.

{
       static ScPixmapCache<QString> pxCache;
       if (pxCache.contains(nam))
              return *pxCache[nam];

       QString iconFilePath(QString("%1%2").arg(ScPaths::instance().iconDir()).arg(nam));
       QPixmap *pm = new QPixmap();
       
       if (!QFile::exists(iconFilePath))
              qWarning("Unable to load icon %s: File not found", iconFilePath.ascii());
       else
       {
              pm->load(iconFilePath);
              if (pm->isNull())
                     qWarning("Unable to load icon %s: Got null pixmap", iconFilePath.ascii());
       }
       pxCache.insert(nam, pm);
       return *pm;
}

Variable Documentation

const bool FRAMESELECTION_EDITS_DEFAULTSTYLE = false [static]

Definition at line 78 of file scribusdoc.cpp.