cardview.h
void contextMenuRequested(CardViewItem *, const TQPoint &)
Emitted when the context menu is requested in some way.
uint columnWidth() const
Returns the amounts of pixels required for one column.
Definition: cardview.cpp:830
void insertField(const TQString &label, const TQString &value)
Adds a field to the card.
Definition: cardview.cpp:378
void drawContents(TQPainter *p, int clipx, int clipy, int clipw, int cliph)
Determines which cards intersect that region and tells them to paint themselves.
Definition: cardview.cpp:837
CardViewItem * findItem(const TQString &text, const TQString &label, TQt::StringComparisonMode compare=TQt::BeginsWith) const
Attempts to find the first item matching the params.
Definition: cardview.cpp:807
void setItemWidth(int width)
Sets the width made available to card items.
Definition: cardview.cpp:1511
void removeField(const TQString &label)
Removes the field with label label from the card.
Definition: cardview.cpp:390
void setLayoutDirty(bool dirty)
Sets the layout to dirty and calls for a repaint.
Definition: cardview.cpp:1391
void setDrawCardBorder(bool enabled)
Sets if the border around a card should be draw.
Definition: cardview.cpp:1399
void setSelected(CardViewItem *item, bool selected)
Selects or deselects the given item.
Definition: cardview.cpp:737
void setDrawColSeparators(bool enabled)
Sets if the column separator should be drawn.
Definition: cardview.cpp:1412
void ensureItemVisible(const CardViewItem *item)
Ensures that the given item is in the viewable area of the widget.
Definition: cardview.cpp:689
void setMaxFieldLines(int howmany)
Sets the maximum number of lines to display pr field.
Definition: cardview.cpp:1557
virtual void paintCard(TQPainter *p, TQColorGroup &cg)
Paints the card using the given painter and color group.
Definition: cardview.cpp:225
void returnPressed(CardViewItem *)
Emitted when the return key is pressed in an item.
void calcLayout()
Does the math based on the bounding rect of the cards to properly lay the cards out on the screen.
Definition: cardview.cpp:894
void setShowEmptyFields(bool show)
Sets if fields with no value should be drawn (of cause the label only, but it allows for embedded edi...
Definition: cardview.cpp:1438
CardViewItem * itemAfter(const CardViewItem *item) const
Definition: cardview.cpp:954
void setCurrentItem(CardViewItem *item)
Sets the CardViewItem item to the current item in the view.
Definition: cardview.cpp:639
virtual void startDrag()
Overload this method to be told when a drag should be started.
Definition: cardview.cpp:1451
TQString fieldValue(const TQString &label) const
Definition: cardview.cpp:463
void doubleClicked(CardViewItem *)
Emitted whenever the user double clicks on an item.
void contentsWheelEvent(TQWheelEvent *)
Changes the direction the canvas scolls.
Definition: cardview.cpp:1386
CardViewItem(CardView *parent, const TQString &caption=TQString())
Constructor.
Definition: cardview.cpp:195
void showFullString(const TQPoint &pos, CardViewTip *tip)
Called by the parent card view when the mouse has been resting for a certain amount of time.
Definition: cardview.cpp:474
void setDrawFieldLabels(bool enabled)
Sets if the field labels should be drawn.
Definition: cardview.cpp:1425