~ubuntu-branches/ubuntu/karmic/kst/karmic

« back to all changes in this revision

Viewing changes to kst/src/libkstapp/kstchoosecolordialog_i.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-28 15:16:16 UTC
  • mfrom: (1.2.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080628151616-9hvxg0nmnlkmyz4y
Tags: 1.6.0-1
* New upstream release.
* Change B-D to libnetcdf-dev.
* Add dh_icons call.  Closes: #457853.
* Bump Standards-Version to 3.8.0.
* Bump debhelper dependency for dh_icons.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#ifndef KSTCHOOSECOLORDIALOGI_H
19
19
#define KSTCHOOSECOLORDIALOGI_H
20
20
 
 
21
#include <qcolor.h>
21
22
#include <qlineedit.h>
 
23
#include <qmap.h>
 
24
#include <qstring.h>
 
25
#include <qvaluelist.h>
22
26
 
23
27
#include <kcolorcombo.h>
24
28
 
25
29
#include "choosecolordialog.h"
 
30
#include "kstvcurve.h"
26
31
 
27
32
class KstChooseColorDialogI : public KstChooseColorDialog {
28
 
  Q_OBJECT
29
 
  public:
30
 
    KstChooseColorDialogI(QWidget* parent = 0,
31
 
                         const char* name = 0,
32
 
                         bool modal = FALSE, WFlags fl = 0 );
33
 
    virtual ~KstChooseColorDialogI();
34
 
    
35
 
    void updateChooseColorDialog();
36
 
    void showChooseColorDialog();
37
 
    
38
 
  public slots:
39
 
    void applyColors();
40
 
    
41
 
  private:
42
 
    QGridLayout* grid;
43
 
    
44
 
    // list of the current textfields and colorcombos
45
 
    QValueList<QLineEdit*> lineEdits;
46
 
    QValueList<KColorCombo*> colorCombos;
47
 
    QColor getColorForFile(const QString &fileName);
48
 
    
49
 
    void cleanColorGroup();
 
33
Q_OBJECT
 
34
public:
 
35
  KstChooseColorDialogI(QWidget* parent = 0,
 
36
                        const char* name = 0,
 
37
                        bool modal = FALSE, WFlags fl = 0 );
 
38
  virtual ~KstChooseColorDialogI();
 
39
 
 
40
  void updateChooseColorDialog();
 
41
  void showChooseColorDialog();
 
42
  QColor getColorForCurve(const KstVCurvePtr curve);
 
43
  QColor getColorForCurve(const KstVectorPtr xVector, const KstVectorPtr yVector);
 
44
  bool override();
 
45
 
 
46
public slots:
 
47
  void applyColors();
 
48
 
 
49
private:
 
50
  QColor getColorForFile(const QString &fileName);
 
51
  void cleanColorGroup();
 
52
 
 
53
  QGridLayout* _grid;
 
54
  QValueList<QLineEdit*> _lineEdits;
 
55
  QValueList<KColorCombo*> _colorCombos;
 
56
  QMap<QString, QColor> _fileColors;
 
57
  bool _xSelected;
 
58
  bool _override;
50
59
};
51
60
 
52
61
#endif
53
 
// vim: ts=2 sw=2 et
 
62