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
***************************************************************************/
11
#ifndef __CALIBRATEDIALOG_H
12
#define __CALIBRATEDIALOG_H
17
#include "calibratedlg.h"
19
class FlossListBoxItem;
21
/** Wrapper class to manage the calibration of floss colors
22
@author Stephen P Allewell
24
class CalibrateDialog : public CalibrateDlg
28
CalibrateDialog(QWidget *);
29
virtual ~CalibrateDialog();
32
virtual void accept();
34
void schemeChanged(int);
35
void selectionChanged(QListBoxItem *);
37
void greenChanged(int);
38
void blueChanged(int);
42
void fillSchemeList();
45
void updateName(bool);
50
FlossListBoxItem* m_item;
53
typedef QMap<QString,QColor> ChangedColors; // <colorName,color>
54
QMap<QString,ChangedColors> m_calibratedColors; // <schemeName,<colorName,color>>