1
/***************************************************************************
2
* Copyright (C) 2006 by William Hillerby *
3
* william.hillerby@ntlworld.com *
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 VARIABLECAPACITOR_H
12
#define VARIABLECAPACITOR_H
14
#include "component.h"
20
@short Variable Capacitor
21
@author William Hillerby
24
class VariableCapacitor : public Component
27
VariableCapacitor( ICNDocument* icnDocument, bool newItem, const QString& id = 0L );
30
static Item* construct( ItemDocument *itemDocument, bool newItem, const char *id );
31
static LibraryItem *libraryItem();
33
virtual void sliderValueChanged( const QString &id, int newValue );
37
virtual void drawShape( QPainter &p );
39
Capacitance * m_pCapacitance;
42
double m_minCapacitance;
43
double m_maxCapacitance;
44
double m_currCapacitance, m_tickValue;