59 if (first == last)
return QString();
61 sample_index_t d_left = (first < ofs) ? (ofs - first) : (first - ofs);
62 sample_index_t d_right = (last < ofs) ? (ofs - last) : (last - ofs);
65 if (d_left <= d_right) {
66 which = i18n(
"Selection, left border");
69 which = i18n(
"Selection, right border");
74 return _(
"%1\n%2\n%3").arg(which).arg(ofs).arg(hms);
80 return Qt::SizeHorCursor;
void selectRange(sample_index_t offset, sample_index_t length)
virtual void moveTo(const QPoint &mouse_pos) Q_DECL_OVERRIDE
sample_index_t first() const
void set(sample_index_t l, sample_index_t r)
SelectionBorderItem(SignalView &view, Kwave::SignalManager &signal_manager, sample_index_t pos)
sample_index_t right() const
sample_index_t last() const
Kwave::MouseMark m_selection
QString Q_DECL_EXPORT ms2hms(double ms)
Kwave::Selection & selection()
void grep(sample_index_t x)
sample_index_t offset() const
Kwave::SignalManager & m_signal_manager
Kwave::SignalView & m_view
double samples2ms(sample_index_t samples)
virtual Kwave::ViewItem::Flags flags() const Q_DECL_OVERRIDE
virtual QCursor mouseCursor() const Q_DECL_OVERRIDE
virtual QString toolTip(sample_index_t &ofs) Q_DECL_OVERRIDE
void update(sample_index_t x)
sample_index_t pixels2samples(int pixels) const
sample_index_t length() const
virtual ~SelectionBorderItem() Q_DECL_OVERRIDE
sample_index_t left() const