Changeset 15 in flair-src for trunk/tools/FlairGCS/src/Scrollbar.h


Ignore:
Timestamp:
Apr 8, 2016, 3:40:57 PM (5 years ago)
Author:
Bayard Gildas
Message:

sources reformatted with flair-format-dir script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/Scrollbar.h

    r10 r15  
    88#include <qscrollbar.h>
    99
    10 class ScrollBar: public QScrollBar
    11 {
    12     Q_OBJECT
     10class ScrollBar : public QScrollBar {
     11  Q_OBJECT
    1312
    1413public:
    15     ScrollBar(QWidget *parent = NULL);
    16     ScrollBar(Qt::Orientation, QWidget *parent = NULL);
    17     ScrollBar(float minBase, float maxBase,
    18         Qt::Orientation o, QWidget *parent = NULL);
     14  ScrollBar(QWidget *parent = NULL);
     15  ScrollBar(Qt::Orientation, QWidget *parent = NULL);
     16  ScrollBar(float minBase, float maxBase, Qt::Orientation o,
     17            QWidget *parent = NULL);
    1918
    20     void setInverted(bool);
    21     bool isInverted(void) const;
     19  void setInverted(bool);
     20  bool isInverted(void) const;
    2221
    23     float minBaseValue(void) const;
    24     float maxBaseValue(void) const;
     22  float minBaseValue(void) const;
     23  float maxBaseValue(void) const;
    2524
    26     float minSliderValue(void) const;
    27     float maxSliderValue(void) const;
     25  float minSliderValue(void) const;
     26  float maxSliderValue(void) const;
    2827
    29     int extent(void) const;
     28  int extent(void) const;
    3029
    3130Q_SIGNALS:
    32     void sliderMoved(Qt::Orientation, float, float);
    33     void valueChanged(Qt::Orientation, float, float);
     31  void sliderMoved(Qt::Orientation, float, float);
     32  void valueChanged(Qt::Orientation, float, float);
    3433
    3534public Q_SLOTS:
    36     virtual void setBase(float min, float max);
    37     virtual void moveSlider(float min, float max);
     35  virtual void setBase(float min, float max);
     36  virtual void moveSlider(float min, float max);
    3837
    3938protected:
    40     void sliderRange(int value, float &min, float &max) const;
    41     int mapToTick(float) const;
    42     float mapFromTick(int) const;
     39  void sliderRange(int value, float &min, float &max) const;
     40  int mapToTick(float) const;
     41  float mapFromTick(int) const;
    4342
    4443private Q_SLOTS:
    45     void catchValueChanged(int value);
    46     void catchSliderMoved(int value);
     44  void catchValueChanged(int value);
     45  void catchSliderMoved(int value);
    4746
    4847private:
    49     void init(void);
     48  void init(void);
    5049
    51     bool d_inverted;
    52     float d_minBase;
    53     float d_maxBase;
    54     int d_baseTicks;
     50  bool d_inverted;
     51  float d_minBase;
     52  float d_maxBase;
     53  int d_baseTicks;
    5554};
    5655
Note: See TracChangeset for help on using the changeset viewer.