namespace pv {
namespace view {
-const float LogicSignal::Margin = 10.0f;
const float LogicSignal::Oversampling = 2.0f;
const QColor LogicSignal::EdgeColour(0x80, 0x80, 0x80);
assert(scale > 0);
assert(_data);
- const float high_offset = rect.top() + Margin + 0.5f;
- const float low_offset = rect.bottom() - Margin + 0.5f;
+ const float high_offset = rect.top() + 0.5f;
+ const float low_offset = rect.bottom() + 0.5f;
const deque< shared_ptr<pv::LogicDataSnapshot> > &snapshots =
_data->get_snapshots();
int LogicSignal::get_nominal_offset(const QRect &rect) const
{
- return rect.bottom() - Margin;
+ return rect.bottom();
}
} // namespace view
class LogicSignal : public Signal
{
private:
- static const float Margin;
static const float Oversampling;
static const QColor EdgeColour;
const int View::MaxScrollValue = INT_MAX / 2;
-const int View::SignalHeight = 50;
+const int View::SignalHeight = 30;
+const int View::SignalMargin = 10;
const int View::SignalSnapGridSize = 10;
const QColor View::CursorAreaColour(220, 231, 243);
void View::reset_signal_layout()
{
- int offset = 0;
+ int offset = SignalMargin;
vector< shared_ptr<Signal> > &sigs = _session.get_signals();
BOOST_FOREACH(shared_ptr<Signal> s, sigs) {
s->set_v_offset(offset);
- offset += SignalHeight;
+ offset += SignalHeight + 2 * SignalMargin;
}
}
public:
static const int SignalHeight;
+ static const int SignalMargin;
static const int SignalSnapGridSize;
static const QColor CursorAreaColour;