Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
timecode-widget.cpp File Reference

Widget for timecode display and input. More...

Go to the source code of this file.

Description

Widget for timecode display and input.

Ported and adapted from the Ardour DAW

Todo:
2025 this code is here for later referral, but currently not used; a complete re-engineering is required to bring this code to current standards
  • magic constants all over the place
  • hard coded wiring instead of using an adapter layer
  • way to much pointer usage and pointer magic
  • direct handling of low-level keyboard events
  • repetitive code with switch-case fan

Definition in file timecode-widget.cpp.

#include "stage/widget/timecode-widget.hpp"
#include "lib/time/timevalue.hpp"
#include <boost/lexical_cast.hpp>
#include <cmath>
#include <stdint.h>
#include <cstdio>
#include <cstdlib>
#include <locale>
#include <string>

Namespaces

namespace  stage
 Lumiera GTK UI implementation root.
 
namespace  stage::widget
 Lumiera custom widgets.
 
namespace  stage::widget::anonymous_namespace{timecode-widget.cpp}
 

Functions

int getSecs (Time tpoint)
 
int getMins (Time tpoint)
 
int getHours (Time tpoint)
 

Variables

const float framerate = 25