Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Atributos públicos
Referencia de la Clase WorkspaceItem

#include <workspace.h>

Diagrama de herencias de WorkspaceItem
QListViewItem Qt Qt

Lista de todos los miembros.

Tipos públicos

enum  Type {
  ProjectType, FormFileType, FormSourceType, SourceFileType,
  ObjectType
}

Métodos públicos

 WorkspaceItem (QListView *parent, Project *p)
 WorkspaceItem (QListViewItem *parent, SourceFile *sf)
 WorkspaceItem (QListViewItem *parent, FormFile *ff, Type t=FormFileType)
 WorkspaceItem (QListViewItem *parent, QObject *o, Project *p)
void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)
Type type () const
bool isModified () const
QString text (int) const
void fillCompletionList (QStringList &completion)
bool checkCompletion (const QString &completion)
QString key (int, bool) const
void setOpen (bool)
void setAutoOpen (bool)
bool isAutoOpen () const

Atributos públicos

Projectproject
SourceFilesourceFile
FormFileformFile
QObjectobject
bool useOddColor

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
ProjectType 
FormFileType 
FormSourceType 
SourceFileType 
ObjectType 

Documentación del constructor y destructor

WorkspaceItem::WorkspaceItem ( QListView parent,
Project p 
)
WorkspaceItem::WorkspaceItem ( QListViewItem parent,
SourceFile sf 
)
WorkspaceItem::WorkspaceItem ( QListViewItem parent,
FormFile ff,
Type  t = FormFileType 
)
WorkspaceItem::WorkspaceItem ( QListViewItem parent,
QObject o,
Project p 
)

Documentación de las funciones miembro

bool WorkspaceItem::checkCompletion ( const QString completion)
void WorkspaceItem::fillCompletionList ( QStringList completion)
bool WorkspaceItem::isAutoOpen ( ) const [inline]
bool WorkspaceItem::isModified ( ) const
QString WorkspaceItem::key ( int  column,
bool  ascending 
) const [virtual]

Returns a key that can be used for sorting by column column. The default implementation returns text(). Derived classes may also incorporate the order indicated by ascending into this key, although this is not recommended.

If you want to sort on non-alphabetical data, e.g. dates, numbers, etc., it is more efficient to reimplement compare().

Ver también:
compare(), sortChildItems()

Reimplementado de QListViewItem.

void WorkspaceItem::paintCell ( QPainter p,
const QColorGroup cg,
int  column,
int  width,
int  align 
) [virtual]

This virtual function paints the contents of one column of an item and aligns it as described by align.

p is a QPainter open on the relevant paint device. p is translated so (0, 0) is the top-left pixel in the cell and width-1, height()-1 is the bottom-right pixel in the cell. The other properties of p (pen, brush, etc) are undefined. cg is the color group to use. column is the logical column number within the item that is to be painted; 0 is the column which may contain a tree.

This function may use QListView::itemMargin() for readability spacing on the left and right sides of data such as text, and should honor isSelected() and QListView::allColumnsShowFocus().

If you reimplement this function, you should also reimplement width().

The rectangle to be painted is in an undefined state when this function is called, so you must draw on all the pixels. The painter p has the right font on entry.

Ver también:
paintBranches(), QListView::drawContentsOffset()

Reimplementado de QListViewItem.

void WorkspaceItem::setAutoOpen ( bool  b)
void WorkspaceItem::setOpen ( bool  o) [virtual]

Opens or closes an item, i.e. shows or hides an item's children.

If o is TRUE all child items are shown initially. The user can hide them by clicking the - icon to the left of the item. If o is FALSE, the children of this item are initially hidden. The user can show them by clicking the + icon to the left of the item.

Ver también:
height() totalHeight() isOpen()

Reimplementado de QListViewItem.

QString WorkspaceItem::text ( int  column) const [virtual]

Returns the text in column column, or QString::null if there is no text in that column.

Ver también:
key() paintCell()

Reimplementado de QListViewItem.

Type WorkspaceItem::type ( ) const [inline]

Documentación de los datos miembro


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'