moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kwordquiz / src / wqundo.h
blob97a83b7a5d401b36f28e2ef50abb95e6c0d44de2
1 /***************************************************************************
2 wqundo.h - description
3 -------------------
4 copyright : (C) 2004 by Peter Hedlund
5 email : peter@peterandlinda.com
6 ***************************************************************************/
8 /***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16 #ifndef WQUNDO_H
17 #define WQUNDO_H
19 #include <qtable.h>
21 #include "wqlreader.h"
23 /**
24 @author Peter Hedlund
26 class WQUndo{
27 public:
28 QFont font() const {return m_font;};
29 void setFont(const QFont & font) {m_font = font;};
31 int colWidth0() {return m_colWidth0;};
32 void setColWidth0(int cw) {m_colWidth0 = cw;};
33 int colWidth1() {return m_colWidth1;};
34 void setColWidth1(int cw) {m_colWidth1 = cw;};
35 int colWidth2() {return m_colWidth2;};
36 void setColWidth2(int cw) {m_colWidth2 = cw;};
37 int numRows() {return m_numRows;};
38 void setNumRows(int n) {m_numRows = n;};
40 int currentRow() {return m_currentRow;};
41 void setCurrentRow(int r) {m_currentRow = r;};
42 int currentCol() {return m_currentCol;};
43 void setCurrentCol(int c) {m_currentCol = c;};
44 QTableSelection selection() const {return m_selection;};
45 void setSelection(const QTableSelection & sel) {m_selection = sel;};
47 KWqlDataItemList list() const {return m_list;};
48 void setList(const KWqlDataItemList & list) {m_list = list;};
50 QString text() const {return m_text;};
51 void setText(const QString & s) {m_text = s;};
53 private:
54 QFont m_font;
55 int m_colWidth0;
56 int m_colWidth1;
57 int m_colWidth2;
58 int m_numRows;
59 int m_currentRow;
60 int m_currentCol;
61 QTableSelection m_selection;
62 KWqlDataItemList m_list;
64 QString m_text;
67 #endif