Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Defines | Enumerations | Functions
hruler.cpp File Reference
#include "hruler.h"
#include "hruler.moc"
#include "page.h"
#include <qcursor.h>
#include <qcolor.h>
#include <qrect.h>
#include <qpointarray.h>
#include "scribusview.h"
#include "scribusdoc.h"
#include "scribus.h"
#include "selection.h"
#include "units.h"
#include "prefsmanager.h"

Go to the source code of this file.

Defines

#define SPLITHC   SplitHCursor
#define topline   3

Enumerations

enum  ruler_code {
  rc_none = 0, rc_leftFrameDist = 1, rc_rightFrameDist = 2, rc_indentFirst = 3,
  rc_leftMargin = 4, rc_tab = 5, rc_rightMargin = 6
}

Functions

QPixmap loadIcon (QString nam)

Define Documentation

#define SPLITHC   SplitHCursor

Definition at line 41 of file hruler.cpp.

#define topline   3

Definition at line 50 of file hruler.cpp.


Enumeration Type Documentation

enum ruler_code
Enumerator:
rc_none 
rc_leftFrameDist 
rc_rightFrameDist 
rc_indentFirst 
rc_leftMargin 
rc_tab 
rc_rightMargin 

Definition at line 53 of file hruler.cpp.


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;
}