1
/***************************************************************************
2
* Copyright (C) 2003 by Stephen Allewell *
3
* stephen@mirramar.fsnet.co.uk *
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
***************************************************************************/
18
/** FlossScheme details a set of flosses attributed to a specific palette.
19
This may be a floss manufacturers scheme, eg DMC, Anchor, etc,
20
or a user can create their own schemes which can
21
then be used as a basis for new patterns or
23
@author Stephen P Allewell
32
/** Get the name of this scheme.
33
@return The name of the scheme.
37
/** Set the scheme name.
38
@param name The name to use.
40
void setSchemeName(QString name);
41
/** Add a floss to this scheme.
42
@param floss Pointer to the floss to be added.
44
void addFloss(Floss *floss);
45
/** Find a floss by name.
46
@return A pointer to the floss. Returns NULL if no floss found by that name.
47
@param name The name of the floss required.
49
Floss *find(QString name);
50
/** Get an iterator to the list of flosses.
51
@return A QListIterator for the Floss class.
53
QPtrListIterator<Floss> flossIterator();
54
/** Clear the contents of the scheme
60
QPtrList<Floss> m_flosses;