~ubuntu-branches/debian/sid/kxstitch/sid

« back to all changes in this revision

Viewing changes to kxstitch/floss.h

  • Committer: Bazaar Package Importer
  • Author(s): eric pareja
  • Date: 2005-02-19 12:37:22 UTC
  • Revision ID: james.westby@ubuntu.com-20050219123722-kt3ru1nqvllietee
Tags: upstream-0.6
ImportĀ upstreamĀ versionĀ 0.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2003 by Stephen Allewell                                *
 
3
 *   stephen@mirramar.fsnet.co.uk                                          *
 
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
 
 
11
#ifndef FLOSS_H
 
12
#define FLOSS_H
 
13
 
 
14
#include <qstring.h>
 
15
#include <qcolor.h>
 
16
 
 
17
/** Stores the details of a particular floss color derived from the currently selected palette.
 
18
    It can be added directly to the floss palette for the pattern, and is used as a base for a
 
19
    QListBoxItem that can be added to the color selection dialog.
 
20
    @author Stephen Allewell
 
21
  */
 
22
class Floss {
 
23
public:
 
24
  /** Constructor
 
25
      @param n QString name of the color
 
26
      @param d QString description of the color
 
27
      @param c QColor color
 
28
    */
 
29
  Floss(QString n, QString d, QColor c) : name(n),description(d),color(c) {};
 
30
 
 
31
  QString name;
 
32
  QString description;
 
33
  QColor  color;
 
34
};
 
35
 
 
36
#endif