~ubuntu-branches/ubuntu/maverick/ktechlab/maverick

« back to all changes in this revision

Viewing changes to src/electronics/components/variablecapacitor.h

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2009-02-09 00:28:49 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090209002849-9o8eqqiczqo4vat3
Tags: 0.3.6-4
modified debian/rules so it does not invoke make if there is no 
Makefile
Closes: #514552

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2006 by William Hillerby                                *
 
3
 *   william.hillerby@ntlworld.com                                         *
 
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 VARIABLECAPACITOR_H
 
12
#define VARIABLECAPACITOR_H
 
13
 
 
14
#include "component.h"
 
15
 
 
16
class Capacitance;
 
17
class QSlider;
 
18
 
 
19
/**
 
20
@short Variable Capacitor
 
21
@author William Hillerby
 
22
*/
 
23
 
 
24
class VariableCapacitor : public Component
 
25
{
 
26
        public:
 
27
        VariableCapacitor( ICNDocument* icnDocument, bool newItem, const QString& id = 0L );
 
28
        ~VariableCapacitor();
 
29
                
 
30
                static Item* construct( ItemDocument *itemDocument, bool newItem, const char *id );
 
31
                static LibraryItem *libraryItem();
 
32
        
 
33
                virtual void sliderValueChanged( const QString &id, int newValue );
 
34
                
 
35
        private:
 
36
                void dataChanged();
 
37
                virtual void drawShape( QPainter &p );
 
38
 
 
39
                Capacitance * m_pCapacitance;
 
40
                QSlider * m_pSlider;
 
41
                
 
42
                double m_minCapacitance;
 
43
                double m_maxCapacitance;
 
44
                double m_currCapacitance, m_tickValue;
 
45
};
 
46
 
 
47
#endif