kcachegrind
treemap.h
Go to the documentation of this file.
TreeMapItem * base() const
Returns the TreeMapItem filling out the widget space.
Definition: treemap.h:411
bool drawField(QPainter *, int f, DrawParams *dp=0)
Definition: treemap.cpp:468
void setFieldPosition(int, DrawParams::Position)
Set the field position in the area.
Definition: treemap.cpp:1442
TreeMapItem * item(int x, int y) const
Returns the area item at position x/y, independent from any maxSelectDepth setting.
Definition: treemap.cpp:1541
void setSplitMode(TreeMapItem::SplitMode m)
for setting/getting global split direction
Definition: treemap.cpp:1209
Definition: treemap.h:239
virtual QString tipString(TreeMapItem *i) const
Return tooltip string to show for a item (can be rich text) Default implementation gives lines with "...
Definition: treemap.cpp:1521
void addSplitDirectionItems(QMenu *)
Populate given menu with option items.
Definition: treemap.cpp:2848
virtual Position position(int) const =0
void setSelected(TreeMapItem *, bool selected=true)
Selects or unselects an item.
Definition: treemap.cpp:1626
virtual const QFont & font() const =0
TreeMapWidget(TreeMapItem *base, QWidget *parent=0)
Definition: treemap.cpp:1153
TreeMapItem(TreeMapItem *parent=0, double value=1.0)
Definition: treemap.cpp:836
SplitMode
Split direction for nested areas: AlwaysBest: Choose split direction for every subitem according to l...
Definition: treemap.h:236
Definition: treemap.h:236
TreeMapItem * visibleItem(TreeMapItem *) const
Returns the nearest item with a visible area; this can be the given item itself.
Definition: treemap.cpp:1607
Definition: treemap.h:402
DrawParams::Position fieldPosition(int) const
Definition: treemap.cpp:1453
void setFieldVisible(int, bool)
Should the text with number textNo be visible? This is only done if remaining space is enough to allo...
Definition: treemap.cpp:1404
Definition: treemap.h:402
void mouseDoubleClickEvent(QMouseEvent *)
Definition: treemap.cpp:1980
void setItemRect(const QRect &r)
Temporary rectangle used for drawing this item the last time.
Definition: treemap.h:292
Definition: treemap.h:69
Definition: treemap.h:68
virtual int sorting(bool *ascending) const
Returns the text number after that sorting is done or -1 for no sorting, -2 for value() sorting (defa...
Definition: treemap.cpp:1039
void returnPressed(TreeMapItem *)
Class for visualization of a metric of hierarchically nested items as 2D areas.
Definition: treemap.h:393
void setAllowRotation(bool)
Do we allow the texts to be rotated by 90 degrees for better fitting?
Definition: treemap.cpp:1281
void clicked(TreeMapItem *)
Definition: treemap.h:96
void currentChanged(TreeMapItem *, bool keyboard)
This signal is emitted if the current item changes.
Definition: treemap.h:237
void setMaxSelectDepth(int d)
Set the maximal depth a selected item can have.
Definition: treemap.h:487
void selectionChanged()
TreeMapItem * possibleSelection(TreeMapItem *) const
Returns the item possible for selection.
Definition: treemap.cpp:1593
void setField(int f, const QString &t, const QPixmap &pm=QPixmap(), Position p=Default, int maxLines=0)
Definition: treemap.cpp:135
Definition: treemap.h:68
Definition: treemap.h:70
void setVisibleWidth(int width, bool reuseSpace=false)
Items usually have a size proportional to their value().
Definition: treemap.cpp:1289
Definition: treemap.h:236
Definition: treemap.h:402
void contextMenuEvent(QContextMenuEvent *)
Definition: treemap.cpp:1820
virtual QString text(int) const =0
Definition: treemap.h:239
bool clearSelection(TreeMapItem *parent=0)
Clear selection of all selected items which are children of parent.
Definition: treemap.cpp:1705
Definition: treemap.h:236
Definition: treemap.h:237
void setSkipIncorrectBorder(bool enable=true)
If a children value() is almost the parents sum(), it can happen that the border to be drawn for visi...
Definition: treemap.cpp:1298
void setRangeSelection(TreeMapItem *i1, TreeMapItem *i2, bool selected)
Selects or unselects items in a range.
Definition: treemap.cpp:1764
Definition: treemap.h:402
void resort(bool recursive=true)
Resort according to the already set sorting.
Definition: treemap.cpp:1063
int index() const
Temporary child item index of the child that was current() recently.
Definition: treemap.h:309
Definition: treemap.h:70
void clearFreeRects()
Temporary rectangle list of free space of this item.
Definition: treemap.cpp:1103
void setMarked(int markNo=1, bool redraw=true)
Switches on the marking .
Definition: treemap.cpp:1647
Definition: treemap.h:69
void doubleClicked(TreeMapItem *)
Definition: treemap.h:68
QStringList path(int) const
Returns a list of text strings of specified text number, from root up to this item.
Definition: treemap.cpp:949
Definition: treemap.h:165
void setSorting(int textNo, bool ascending=true)
Set the sorting for child drawing.
Definition: treemap.cpp:1046
void rightButtonPressed(TreeMapItem *, const QPoint &)
const QFont & currentFont() const
Returns a reference to the current widget font.
Definition: treemap.cpp:1204
DrawParams::Position defaultFieldPosition(int) const
Definition: treemap.cpp:1342
QString fieldPositionString(int) const
Definition: treemap.cpp:1479
Definition: treemap.h:238
Definition: treemap.h:69
void setFieldForced(int, bool)
Should the drawing of the name into the rectangle be forced? This enables drawing of the name before ...
Definition: treemap.cpp:1423
virtual QPixmap pixmap(int) const =0
Definition: treemap.h:238
void contextMenuRequested(TreeMapItem *, const QPoint &)
Definition: treemap.h:202
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:03:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.