blob: d9b5e9c77c46d588dfea7165805a36218c26f941 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/***************************************************************************
wqundo.h - description
-------------------
copyright : (C) 2004 by Peter Hedlund
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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 WQUNDO_H
#define WQUNDO_H
#include <tqtable.h>
#include "wqlreader.h"
/**
@author Peter Hedlund
*/
class WQUndo{
public:
TQFont font() const {return m_font;}
void setFont(const TQFont & font) {m_font = font;}
int colWidth0() {return m_colWidth0;}
void setColWidth0(int cw) {m_colWidth0 = cw;}
int colWidth1() {return m_colWidth1;}
void setColWidth1(int cw) {m_colWidth1 = cw;}
int colWidth2() {return m_colWidth2;}
void setColWidth2(int cw) {m_colWidth2 = cw;}
int numRows() {return m_numRows;}
void setNumRows(int n) {m_numRows = n;}
int currentRow() {return m_currentRow;}
void setCurrentRow(int r) {m_currentRow = r;}
int currentCol() {return m_currentCol;}
void setCurrentCol(int c) {m_currentCol = c;}
TQTableSelection selection() const {return m_selection;}
void setSelection(const TQTableSelection & sel) {m_selection = sel;}
KWqlDataItemList list() const {return m_list;}
void setList(const KWqlDataItemList & list) {m_list = list;}
TQString text() const {return m_text;}
void setText(const TQString & s) {m_text = s;}
private:
TQFont m_font;
int m_colWidth0;
int m_colWidth1;
int m_colWidth2;
int m_numRows;
int m_currentRow;
int m_currentCol;
TQTableSelection m_selection;
KWqlDataItemList m_list;
TQString m_text;
};
#endif
|