Tidied TimelineLayoutHelper
This commit is contained in:
parent
8debd21363
commit
2a9f1764c8
3 changed files with 7 additions and 10 deletions
|
|
@ -308,6 +308,7 @@ public:
|
|||
protected:
|
||||
static const int TrackPadding;
|
||||
static const int HeaderWidth;
|
||||
static const int HeaderIndentWidth;
|
||||
static const double ZoomIncrement;
|
||||
|
||||
friend class timeline::TimelineViewWindow;
|
||||
|
|
|
|||
|
|
@ -133,24 +133,20 @@ TimelineLayoutHelper::get_total_height() const
|
|||
void
|
||||
TimelineLayoutHelper::update_layout()
|
||||
{
|
||||
// Make sure the style are loaded
|
||||
//read_styles();
|
||||
int offset = 0;
|
||||
|
||||
// Clear previously cached layout
|
||||
headerBoxes.clear();
|
||||
|
||||
// Start at minus-the-scroll offset
|
||||
int offset = 0;//-timelineWidget->get_y_scroll_offset();
|
||||
|
||||
//const Allocation container_allocation = get_allocation();
|
||||
const int header_width = 150;//container_allocation.get_width();
|
||||
const int indent_width = 10;
|
||||
|
||||
// Do the layout
|
||||
const int header_width = TimelineWidget::HeaderWidth;
|
||||
const int indent_width = TimelineWidget::HeaderIndentWidth;
|
||||
layout_headers_recursive(layoutTree.begin(),
|
||||
offset, header_width, indent_width, 0, true);
|
||||
|
||||
totalHeight = offset;
|
||||
|
||||
// Signal that the layout has changed
|
||||
timelineWidget.on_layout_changed();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ protected:
|
|||
/**
|
||||
* Recursively lays out all the controls in the header widget.
|
||||
|
||||
* /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
* /!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [in,out]
|
||||
*
|
||||
*
|
||||
* * @param track The parent track object which will be recursed into.
|
||||
|
|
|
|||
Loading…
Reference in a new issue