|
|
@ -78,7 +78,7 @@ public:
|
|
|
|
filterRange getVelocity();
|
|
|
|
filterRange getVelocity();
|
|
|
|
filterRange getDuration();
|
|
|
|
filterRange getDuration();
|
|
|
|
|
|
|
|
|
|
|
|
// returns TRUE if the property value falls with in the filterRange
|
|
|
|
// returns true if the property value falls with in the filterRange
|
|
|
|
bool eventInRange(filterRange foo, long property) {
|
|
|
|
bool eventInRange(filterRange foo, long property) {
|
|
|
|
if (foo.first > foo.second)
|
|
|
|
if (foo.first > foo.second)
|
|
|
|
return (property <= foo.second || property >= foo.first);
|
|
|
|
return (property <= foo.second || property >= foo.first);
|
|
|
@ -86,7 +86,7 @@ public:
|
|
|
|
return (property >= foo.first && property <= foo.second); }
|
|
|
|
return (property >= foo.first && property <= foo.second); }
|
|
|
|
|
|
|
|
|
|
|
|
// Used to do the work of deciding whether to keep or reject an event
|
|
|
|
// Used to do the work of deciding whether to keep or reject an event
|
|
|
|
// based on the state of the dialog's widgets. Returns TRUE if an event
|
|
|
|
// based on the state of the dialog's widgets. Returns true if an event
|
|
|
|
// should continue to be selected. This method is the heart of the
|
|
|
|
// should continue to be selected. This method is the heart of the
|
|
|
|
// EventFilterDialog's public interface.
|
|
|
|
// EventFilterDialog's public interface.
|
|
|
|
bool keepEvent(Event* const &e);
|
|
|
|
bool keepEvent(Event* const &e);
|
|
|
|