~oluseyi-deactivatedaccount/pencil/trunk

« back to all changes in this revision

Viewing changes to src/graphics/vector/colourref.h

  • Committer: oluseyi
  • Date: 2010-12-29 06:45:56 UTC
  • Revision ID: svn-v4:f509e8e7-a431-0410-8952-ba4f3f4fc37f:trunk:256
eol-style: native, repo-wide

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 
3
 
Pencil - Traditional Animation Software
4
 
Copyright (C) 2006-2009 Pascal Naidon
5
 
 
6
 
This program is free software; you can redistribute it and/or
7
 
modify it under the terms of the GNU General Public License
8
 
as published by the Free Software Foundation;
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
 
*/
16
 
#ifndef COLOURREF_H
17
 
#define COLOURREF_H
18
 
 
19
 
#include <QColor>
20
 
#include <QString>
21
 
 
22
 
class ColourRef
23
 
{
24
 
public:
25
 
        ColourRef();
26
 
        ColourRef(QColor theColour, QString theName);
27
 
        bool operator==(ColourRef colourRef1);
28
 
        bool operator!=(ColourRef colourRef1); 
29
 
        
30
 
        QColor colour;
31
 
        QString name;
32
 
};
33
 
 
34
 
#endif
 
1
/*
 
2
 
 
3
Pencil - Traditional Animation Software
 
4
Copyright (C) 2006-2009 Pascal Naidon
 
5
 
 
6
This program is free software; you can redistribute it and/or
 
7
modify it under the terms of the GNU General Public License
 
8
as published by the Free Software Foundation;
 
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
*/
 
16
#ifndef COLOURREF_H
 
17
#define COLOURREF_H
 
18
 
 
19
#include <QColor>
 
20
#include <QString>
 
21
 
 
22
class ColourRef
 
23
{
 
24
public:
 
25
        ColourRef();
 
26
        ColourRef(QColor theColour, QString theName);
 
27
        bool operator==(ColourRef colourRef1);
 
28
        bool operator!=(ColourRef colourRef1); 
 
29
        
 
30
        QColor colour;
 
31
        QString name;
 
32
};
 
33
 
 
34
#endif