summaryrefslogtreecommitdiffstats
path: root/quanta/components/csseditor/colorslider.h
blob: 33c75c30e21f160a9109d6d10fd740c839154487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/***************************************************************************
                          colorslider.h  -  description
                             -------------------
    begin                : lun  ago 9 2004
    copyright            : (C) 2004 by gulmini luciano
    email                : gulmini.luciano@student.unife.it
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef COLORSLIDER_H
#define COLORSLIDER_H

#include <tqslider.h>

#include "minieditor.h"



/**
  *@author gulmini luciano
  */

class colorSlider : public miniEditor  {
     Q_OBJECT
  
   private :
    TQString m_functionName;  
   protected:
     TQSlider *m_leftValue,
                  *m_centerValue,
                  *m_rightValue;
   public:
           colorSlider(const TQString& functionName,const TQString& l=TQString(),const TQString& c=TQString(),const TQString& r=TQString(),TQWidget *parent=0, const char *name=0);
           virtual ~colorSlider();
           virtual void connectToPropertySetter(propertySetter* p);
  
   private slots: 
     void convertLeftValue(int i);  
     void convertCenterValue(int i);
     void convertRightValue(int i);  
              
   signals:
     void valueChanged(const TQString&);
};  

class RGBcolorSlider : public colorSlider  {
     Q_OBJECT
  
   public:
           RGBcolorSlider(TQWidget *parent=0, const char *name=0);
           ~RGBcolorSlider(){}         
};

//FOR CSS3
/*class HSLcolorSlider : public colorSlider  {
     Q_OBJECT
  
   public:
           HSLcolorSlider(TQWidget *parent=0, const char *name=0);
           ~HSLcolorSlider();             
};*/
  

#endif