• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

kvttableview.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003                              kvttableview
00004 
00005     -----------------------------------------------------------------------
00006 
00007     copyright     : (C) 2006, 2007 Peter Hedlund <peter.hedlund@kdemail.net>
00008 
00009     -----------------------------------------------------------------------
00010 
00011  ***************************************************************************/
00012 
00013 /***************************************************************************
00014  *                                                                         *
00015  *   This program is free software; you can redistribute it and/or modify  *
00016  *   it under the terms of the GNU General Public License as published by  *
00017  *   the Free Software Foundation; either version 2 of the License, or     *
00018  *   (at your option) any later version.                                   *
00019  *                                                                         *
00020  ***************************************************************************/
00021 
00022 #ifndef KVTTABLEVIEW_H
00023 #define KVTTABLEVIEW_H
00024 
00025 #include <QTableView>
00026 #include <QtGui/QPrinter>
00027 
00028 #include <kvtsortfiltermodel.h>
00029 #include <kvttabledelegate.h>
00030 
00034 class KVTTableView : public QTableView
00035 {
00036     Q_OBJECT
00037 public:
00038     KVTTableView(QWidget *parent = 0);
00039 
00040     void setModel(KVTSortFilterModel * model);
00041     void print(QPrinter *pPrinter);
00042     void adjustContent();
00043 
00044 public slots:
00045     void slotModelReset();
00046 
00047 signals:
00048     void appendEntry();
00049 
00050 private slots:
00051     void verticalHeaderResized(int, int, int);
00052     void horizontalHeaderResized(int, int, int);
00053     void slotCurrentColumnChanged(const QModelIndex & current, const QModelIndex & previous);
00057     void slotShowLessonColumn(bool show);
00058     void slotShowActiveColumn(bool show);
00059 
00060 protected:
00062     void resizeEvent(QResizeEvent *);
00063     void showEvent(QShowEvent *);
00064     void keyPressEvent(QKeyEvent*);
00065 
00066 private:
00067     void newPage(QPainter &, int, int, int);
00068     void endOfPage(QPainter &, int, int);
00069 
00070     KVTTableDelegate * m_delegate;
00071 };
00072 
00073 #endif

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal