Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Private Attributes
StyleViewItem Class Reference

#include <stylemanager.h>

List of all members.

Public Member Functions

 StyleViewItem (QListView *view, const QString &text)
 StyleViewItem (QListViewItem *parent, const QString &text, const QString &rootName)
 ~StyleViewItem ()
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
bool isRoot ()
QString parentName ()
QString rootName ()
void setDirty (bool isDirty)
bool isDirty ()

Private Attributes

bool isRoot_
bool isDirty_
QString parentName_
QString rootName_

Detailed Description

Definition at line 163 of file stylemanager.h.


Constructor & Destructor Documentation

StyleViewItem::StyleViewItem ( QListView *  view,
const QString &  text 
)

Definition at line 1435 of file stylemanager.cpp.

                                                                 : QListViewItem(view, text),
isRoot_(true), isDirty_(false), parentName_(QString::null), rootName_(QString::null)
{
       setSelectable(false);
}
StyleViewItem::StyleViewItem ( QListViewItem *  parent,
const QString &  text,
const QString &  rootName 
)

Definition at line 1441 of file stylemanager.cpp.

: QListViewItem(parent, text),
  isRoot_(false), isDirty_(false), parentName_(parent->text(0)), rootName_(rootName)
{

}

Definition at line 1485 of file stylemanager.cpp.

{

}

Member Function Documentation

Definition at line 1465 of file stylemanager.cpp.

{
       return isDirty_;
}

Here is the caller graph for this function:

Definition at line 1470 of file stylemanager.cpp.

{
       return isRoot_;
}
void StyleViewItem::paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  align 
)

Definition at line 1448 of file stylemanager.cpp.

{
       if (column == 0)
       {
              QFont f(p->font());
              f.setBold(isDirty_);
              p->setFont(f);
       }

       QListViewItem::paintCell(p, cg, column, width, align);
}

Definition at line 1475 of file stylemanager.cpp.

{
       return parentName_;
}

Definition at line 1480 of file stylemanager.cpp.

{
       return rootName_;
}
void StyleViewItem::setDirty ( bool  isDirty)

Definition at line 1460 of file stylemanager.cpp.

Here is the call graph for this function:


Member Data Documentation

Definition at line 180 of file stylemanager.h.

Definition at line 179 of file stylemanager.h.

QString StyleViewItem::parentName_ [private]

Definition at line 181 of file stylemanager.h.

QString StyleViewItem::rootName_ [private]

Definition at line 182 of file stylemanager.h.


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