The macro defined namespaces confused the hell out of lupdate and more or less broke translations permanently. Looks like the only way we can do it is to have a hardcoded namespace, which goes against my instinct, but honestly how likely is it that we'll change the namespace anyway (I guess forks might want to do it, but that's their problem ;) )
32 lines
552 B
C++
32 lines
552 B
C++
#ifndef SNAPSERVICE_H
|
|
#define SNAPSERVICE_H
|
|
|
|
#include "common/rational.h"
|
|
|
|
namespace olive {
|
|
|
|
class SnapService
|
|
{
|
|
public:
|
|
SnapService() = default;
|
|
|
|
enum SnapPoints {
|
|
kSnapToClips = 0x1,
|
|
kSnapToPlayhead = 0x2,
|
|
kSnapToMarkers = 0x4,
|
|
kSnapAll = 0xFF
|
|
};
|
|
|
|
/**
|
|
* @brief Snaps point `start_point` that is moving by `movement` to currently existing clips
|
|
*/
|
|
virtual bool SnapPoint(QList<rational> start_times, rational *movement, int snap_points = kSnapAll) = 0;
|
|
|
|
virtual void HideSnaps() = 0;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif // SNAPSERVICE_H
|