27 lines
615 B
C++
27 lines
615 B
C++
#pragma once
|
|
|
|
#include <Scenario/Document/Interval/IntervalModel.hpp>
|
|
#include <Process/Style/ScenarioStyle.hpp>
|
|
#include <base_widget.hpp>
|
|
|
|
namespace Hardware
|
|
{
|
|
struct IntervalWidget final : bugui::base_widget
|
|
{
|
|
explicit IntervalWidget(base_widget* parent,
|
|
Scenario::IntervalModel& interval);
|
|
|
|
void paint(bugui::painter& painter) const override;
|
|
|
|
int x() const override;
|
|
int y() const override;
|
|
int width() const override;
|
|
|
|
const Scenario::IntervalModel& get_model() const;
|
|
|
|
private:
|
|
Scenario::IntervalModel& model;
|
|
const Process::Style& skin;
|
|
};
|
|
|
|
} // namespace Hardware
|