Subversion Repositories Scribus

Rev

Rev 1111 | Rev 4430 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1111 tsoots 1
/***************************************************************************
2
 *   Copyright (C) 2005 by Riku Leino                                      *
3
 *   tsoots@gmail.com                                                      *
4
 *                                                                         *
5
 *   This program is free software; you can redistribute it and/or modify  *
6
 *   it under the terms of the GNU General Public License as published by  *
7
 *   the Free Software Foundation; either version 2 of the License, or     *
8
 *   (at your option) any later version.                                   *
9
 *                                                                         *
10
 *   This program is distributed in the hope that it will be useful,       *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13
 *   GNU General Public License for more details.                          *
14
 *                                                                         *
15
 *   You should have received a copy of the GNU General Public License     *
16
 *   along with this program; if not, write to the                         *
17
 *   Free Software Foundation, Inc.,                                       *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19
 ***************************************************************************/
20
 
21
#include "undoobject.h"
22
 
23
ulong UndoObject::nextId = 1;
24
 
25
 
26
UndoObject::UndoObject()
27
{
28
        _id = nextId;
29
        ++nextId;
30
        uname = "";
1250 tsoots 31
        upixmap = NULL;
1111 tsoots 32
}
33
 
1250 tsoots 34
UndoObject::UndoObject(const QString &objectName, QPixmap *objectIcon)
1111 tsoots 35
{
36
        _id = nextId;
37
        ++nextId;
38
        uname = objectName;
1250 tsoots 39
        upixmap = objectIcon;
1111 tsoots 40
}
41
 
42
ulong UndoObject::getUId()
43
{
44
        return _id;
45
}
46
 
47
QString UndoObject::getUName()
48
{
49
        return uname;  
50
}
51
 
52
void UndoObject::setUName(QString newUName)
53
{
54
        uname = newUName;
55
}
1250 tsoots 56
 
57
QPixmap* UndoObject::getUPixmap()
58
{
59
        return upixmap;
60
}
61
 
62
void UndoObject::setUPixmap(QPixmap *newUPixmap)
63
{
64
        upixmap = newUPixmap;
65
}