Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hk_kdesimplegrid Class Reference

KDE Widget to display data in a grid. More...

#include <hk_kdesimplegrid.h>

Inheritance diagram for hk_kdesimplegrid:

hk_dsvisible hk_visible hk_class List of all members.

Public Slots

void print_grid (void)
void show_gridcolumndialog (void)
void copy (void)
void paste (void)
void cut (void)

Signals

void signal_infocus (hk_kdegridpart *)
void signal_outfocus (hk_kdegridpart *, QFocusEvent *)

Public Member Functions

 hk_kdesimplegrid (hk_kdegrid *grid, QLabel *statusbar, hk_kdesimpleform *form=NULL)
virtual ~hk_kdesimplegrid (void)
virtual QTableItem * item (int row, int col) const
virtual void sortColumn (int col, bool ascending=true, bool wholeRows=false)
hk_columnactual_column (void)
QString text (int row, int col) const
hk_kdegridkdegrid () const

Protected Slots

void row_changed (int row, int column)
void set_columnwidth (int col, int, int newwidth)
void column_moved (int section, int from, int to)
void show_contextmenu (int row, int col, const QPoint &pos)
void selection_changed (void)
void slot_mouse_clicked (void)
void slot_mouse_doubleclicked (void)
void slot_verticalheader_resized (int, int, int)
void slot_verticalheader_mouserelease (void)
void widget_specific_rowheight_changes (void)
void slot_content_moving (int, int)

Protected Member Functions

virtual void focusInEvent (QFocusEvent *)
virtual void focusOutEvent (QFocusEvent *)
virtual void widget_specific_tooltip_changed (void)
virtual void adjustRow (int)
bool eventFilter (QObject *object, QEvent *event)
void widget_specific_enable_disable (void)
void widget_specific_row_added (void)
void widget_specific_row_deleted (void)
bool widget_specific_row_change (void)
void widget_specific_insert_mode (void)
void columns_created (void)
bool datasource_enable (void)
bool datasource_disable (void)
void activateNextCell (void)
void resizeData (int len)
void paintCell (QPainter *p, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg)
void paint_textcell (QPainter *p, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg)
void paint_boolcell (QPainter *p, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg)
void paint_combocell (QPainter *p, int row, int col, const QRect &cr, bool selected, const QColorGroup &cg)
void setCellContentFromEditor (int row, int col)
QDragObject * dragObject ()
void contentsDragEnterEvent (QDragEnterEvent *)
void contentsDropEvent (QDropEvent *)
QWidget * createEditor (int row, int col, bool initFromCell) const
void keyPressEvent (QKeyEvent *)
bool key_pressevent_navigation (QKeyEvent *)

Friends

class hk_kdegrid

Classes

class  sectionclass

Detailed Description

KDE Widget to display data in a grid.

Version:
Revision
1.53
Author:
Horst Knorr (hk_classes@knoda.org)


Constructor & Destructor Documentation

hk_kdesimplegrid::hk_kdesimplegrid hk_kdegrid grid,
QLabel *  statusbar,
hk_kdesimpleform form = NULL
 

virtual hk_kdesimplegrid::~hk_kdesimplegrid void   )  [virtual]
 


Member Function Documentation

void hk_kdesimplegrid::activateNextCell void   )  [protected]
 

hk_column* hk_kdesimplegrid::actual_column void   ) 
 

virtual void hk_kdesimplegrid::adjustRow int   )  [inline, protected, virtual]
 

void hk_kdesimplegrid::column_moved int  section,
int  from,
int  to
[protected, slot]
 

void hk_kdesimplegrid::columns_created void   )  [protected]
 

void hk_kdesimplegrid::contentsDragEnterEvent QDragEnterEvent *   )  [protected]
 

void hk_kdesimplegrid::contentsDropEvent QDropEvent *   )  [protected]
 

void hk_kdesimplegrid::copy void   )  [slot]
 

QWidget* hk_kdesimplegrid::createEditor int  row,
int  col,
bool  initFromCell
const [protected]
 

void hk_kdesimplegrid::cut void   )  [slot]
 

bool hk_kdesimplegrid::datasource_disable void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasources is disabling

Reimplemented from hk_dsvisible.

bool hk_kdesimplegrid::datasource_enable void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasources is enabling

Reimplemented from hk_dsvisible.

QDragObject* hk_kdesimplegrid::dragObject  )  [protected]
 

bool hk_kdesimplegrid::eventFilter QObject *  object,
QEvent *  event
[protected]
 

virtual void hk_kdesimplegrid::focusInEvent QFocusEvent *   )  [protected, virtual]
 

virtual void hk_kdesimplegrid::focusOutEvent QFocusEvent *   )  [protected, virtual]
 

virtual QTableItem* hk_kdesimplegrid::item int  row,
int  col
const [virtual]
 

hk_kdegrid* hk_kdesimplegrid::kdegrid  )  const
 

bool hk_kdesimplegrid::key_pressevent_navigation QKeyEvent *   )  [protected]
 

void hk_kdesimplegrid::keyPressEvent QKeyEvent *   )  [protected]
 

void hk_kdesimplegrid::paint_boolcell QPainter *  p,
int  row,
int  col,
const QRect &  cr,
bool  selected,
const QColorGroup &  cg
[protected]
 

void hk_kdesimplegrid::paint_combocell QPainter *  p,
int  row,
int  col,
const QRect &  cr,
bool  selected,
const QColorGroup &  cg
[protected]
 

void hk_kdesimplegrid::paint_textcell QPainter *  p,
int  row,
int  col,
const QRect &  cr,
bool  selected,
const QColorGroup &  cg
[protected]
 

void hk_kdesimplegrid::paintCell QPainter *  p,
int  row,
int  col,
const QRect &  cr,
bool  selected,
const QColorGroup &  cg
[protected]
 

void hk_kdesimplegrid::paste void   )  [slot]
 

void hk_kdesimplegrid::print_grid void   )  [slot]
 

prints the whole grid using KPrinter

void hk_kdesimplegrid::resizeData int  len  )  [protected]
 

void hk_kdesimplegrid::row_changed int  row,
int  column
[protected, slot]
 

void hk_kdesimplegrid::selection_changed void   )  [protected, slot]
 

void hk_kdesimplegrid::set_columnwidth int  col,
int  ,
int  newwidth
[protected, slot]
 

void hk_kdesimplegrid::setCellContentFromEditor int  row,
int  col
[protected]
 

void hk_kdesimplegrid::show_contextmenu int  row,
int  col,
const QPoint &  pos
[protected, slot]
 

void hk_kdesimplegrid::show_gridcolumndialog void   )  [slot]
 

void hk_kdesimplegrid::signal_infocus hk_kdegridpart *   )  [signal]
 

void hk_kdesimplegrid::signal_outfocus hk_kdegridpart *  ,
QFocusEvent * 
[signal]
 

void hk_kdesimplegrid::slot_content_moving int  ,
int 
[protected, slot]
 

void hk_kdesimplegrid::slot_mouse_clicked void   )  [protected, slot]
 

void hk_kdesimplegrid::slot_mouse_doubleclicked void   )  [protected, slot]
 

void hk_kdesimplegrid::slot_verticalheader_mouserelease void   )  [protected, slot]
 

void hk_kdesimplegrid::slot_verticalheader_resized int  ,
int  ,
int 
[protected, slot]
 

virtual void hk_kdesimplegrid::sortColumn int  col,
bool  ascending = true,
bool  wholeRows = false
[virtual]
 

QString hk_kdesimplegrid::text int  row,
int  col
const
 

void hk_kdesimplegrid::widget_specific_enable_disable void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: defines whether the widget should be enabled or disabled. Has to be rewritten for a new widget

Reimplemented from hk_dsvisible.

void hk_kdesimplegrid::widget_specific_insert_mode void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasource will be set to insert_mode. Has to be rewritten for a new widget

See also:
before_row_change.

Reimplemented from hk_dsvisible.

void hk_kdesimplegrid::widget_specific_row_added void   )  [protected, virtual]
 

Reimplemented from hk_dsvisible.

bool hk_kdesimplegrid::widget_specific_row_change void   )  [protected, virtual]
 

FOR WIDGET DEVELOPERS ONLY: will be automatically called when the datasource has changed the row. Has to be rewritten for a new widget

See also:
before_row_change.

Reimplemented from hk_dsvisible.

void hk_kdesimplegrid::widget_specific_row_deleted void   )  [protected, virtual]
 

Reimplemented from hk_dsvisible.

void hk_kdesimplegrid::widget_specific_rowheight_changes void   )  [protected, slot]
 

virtual void hk_kdesimplegrid::widget_specific_tooltip_changed void   )  [protected, virtual]
 

Reimplemented from hk_visible.


Friends And Related Function Documentation

friend class hk_kdegrid [friend]
 


The documentation for this class was generated from the following file:
Generated on Thu Mar 9 18:40:42 2006 for hk_classes by  doxygen 1.4.1