~kulthauskante/nsynth/devel

« back to all changes in this revision

Viewing changes to Gui/Base/Widget.cpp

  • Committer: Karsten Krispin
  • Date: 2011-04-26 15:34:14 UTC
  • Revision ID: karsten@nonlimited.org-20110426153414-c4bsiry51d0s099n
- added SampleWidget (specialized version for SampleTangible )
- added DurationTab (which lets you select a duration in fractions to the main beat )
- Sequencers Step Duration is now selectable by DurationTab
- Sequencer now heads to the right sink
- replaced QList<qreal> by Delay in Tangible/Trigger History-Buffer (List were causing segfaults sometimes)
- Distorion now does "real" distorion
- Cleaned up TabContainerWidget (some polishing in display as well)

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        
45
45
}
46
46
 
47
 
int Widget::fingerEvent(const FingerEvent & parentEvent)
 
47
int Widget::widgetGestureRecognition(FingerEvent &event)
48
48
{
49
49
 
50
 
        /* we are hidden so we don't need to process anything */
51
 
        if(this->hidden())
52
 
                return 0;
53
 
 
54
 
        FingerEvent event = this->mapFromParent(parentEvent);
55
 
 
56
 
        SurfaceObject::fingerEvent(event);
57
 
 
58
50
        if(!this->isInWidget(event.pos()))
59
51
                event.setPosInvalid();
60
52
 
148
140
                        return 0;
149
141
        } // switch
150
142
 
 
143
}
 
144
 
 
145
int Widget::fingerEvent(const FingerEvent & parentEvent)
 
146
{
 
147
        FingerEvent event = this->mapFromParent(parentEvent);
 
148
        /* we are hidden so we don't need to process anything */
 
149
        if(this->hidden())
 
150
                return 0;
 
151
 
 
152
        int cnt = SurfaceObject::fingerEvent(event);
 
153
 
 
154
        return this->widgetGestureRecognition(event)+cnt;
 
155
 
 
156
 
151
157
 
152
158
}
153
159