Player UI: video menu and speed reset icon

+ rename private variables to follow usual style
This commit is contained in:
Bruno
2021-06-16 23:12:31 +02:00
parent e3578df8a0
commit 30f9fb50eb
3 changed files with 228 additions and 215 deletions

View File

@@ -106,26 +106,20 @@ public:
class SourceController
{
float _min_width;
float _h_space;
float _v_space;
float _buttons_width;
float _buttons_height;
float _timeline_height;
float _scrollbar;
float _mediaplayer_height;
float min_width_;
float h_space_;
float v_space_;
float buttons_width_;
float buttons_height_;
float timeline_height_;
float scrollbar_;
float mediaplayer_height_;
std::string active_label_;
int active_selection_;
InfoVisitor info_;
SourceList selection_;
bool _selection_context_menu;
MediaPlayer *_selection_mediaplayer;
double _selection_target_slower;
double _selection_target_faster;
void RenderSelectionContextMenu();
// re-usable ui parts
void DrawButtonBar(ImVec2 bottom, float width);
const char *SourcePlayIcon(Source *s);
@@ -133,13 +127,23 @@ class SourceController
// Render the sources dynamically selected
void RenderSelectedSources();
// Render a stored selection
bool selection_context_menu_;
MediaPlayer *selection_mediaplayer_;
double selection_target_slower_;
double selection_target_faster_;
void RenderSelectionContextMenu();
void RenderSelection(size_t i);
// Render a single source
void RenderSingleSource(Source *s);
// Render a single media player
bool media_playing_mode_;
bool slider_pressed_;
MediaPlayer *mediaplayer_active_;
bool mediaplayer_mode_;
bool mediaplayer_slider_pressed_;
float mediaplayer_timeline_zoom_;
void RenderMediaPlayer(MediaPlayer *mp);
public: