You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeedu/kvoctrain/kvoctrain/kvoctrainview.h

89 lines
2.5 KiB

/***************************************************************************
view to kvoctrain parts
-----------------------------------------------------------------------
begin : Thu Mar 11 20:50:53 MET 1999
copyright : (C) 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
(C) 2001 The KDE-EDU team
(C) 2004-2005 Peter Hedlund <peter.hedlund@kdemail.net>
-----------------------------------------------------------------------
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KVOCTRAINVIEW_H
#define KVOCTRAINVIEW_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
class TQGridLayout;
class TQFrame;
class TDEApplication;
class KPrinter;
class kvoctrainExpr;
class KVocTrainTable;
class kvoctrainApp;
class kvoctrainDoc;
class GradeCols;
class LangSet;
#include "kvoctraindoc.h"
/**
* This class provides an incomplete base for your application view.
*/
class kvoctrainView : public TQWidget
{
Q_OBJECT
public:
/** Constructor for the main view */
kvoctrainView(kvoctrainDoc* doc, const LangSet &ls, kvoctrainApp *parent = 0);
/** Destructor for the main view */
~kvoctrainView();
/** sets view to another vocabulary */
void setView(kvoctrainDoc *doc, const LangSet &ls);
KVocTrainTable* getTable() { return m_table; }
void setHeaderProp(int id, const TQString &name, const TQString &pixfile=TQString());
void adjustContent();
void print(KPrinter *pPrinter);
private:
void newPage(TQPainter &, int, int, int);
void endOfPage(TQPainter &, int, int);
protected:
KVocTrainTable * m_table;
bool autoResize;
kvoctrainDoc * m_doc;
TQGridLayout * list_layout;
kvoctrainApp * parent;
/** resizes table when frame is resized */
virtual void resizeEvent(TQResizeEvent *);
void showEvent(TQShowEvent * s_ev);
};
#endif // KVOCTRAINVIEW_H