Skip to content

Commit

Permalink
Move constants from Track.h to TrackView.h
Browse files Browse the repository at this point in the history
  • Loading branch information
M374LX committed Nov 27, 2020
1 parent 1cc0bc2 commit f7f152d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 0 additions & 9 deletions include/Track.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ class TrackContentObject;
class TrackView;


const int DEFAULT_SETTINGS_WIDGET_WIDTH = 224;
const int TRACK_OP_WIDTH = 78;
// This shaves 150-ish pixels off track buttons,
// ruled from config: ui.compacttrackbuttons
const int DEFAULT_SETTINGS_WIDGET_WIDTH_COMPACT = 96;
const int TRACK_OP_WIDTH_COMPACT = 62;

/*! The minimum track height in pixels
*
* Tracks can be resized by shift-dragging anywhere inside the track
Expand All @@ -60,8 +53,6 @@ const int TRACK_OP_WIDTH_COMPACT = 62;
const int MINIMAL_TRACK_HEIGHT = 32;
const int DEFAULT_TRACK_HEIGHT = 32;

const int TCO_BORDER_WIDTH = 2;

char const *const FILENAME_FILTER = "[\\0000-\x1f\"*/:<>?\\\\|\x7f]";


Expand Down
10 changes: 10 additions & 0 deletions include/TrackView.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
class FadeButton;


const int DEFAULT_SETTINGS_WIDGET_WIDTH = 224;
const int TRACK_OP_WIDTH = 78;
// This shaves 150-ish pixels off track buttons,
// ruled from config: ui.compacttrackbuttons
const int DEFAULT_SETTINGS_WIDGET_WIDTH_COMPACT = 96;
const int TRACK_OP_WIDTH_COMPACT = 62;

const int TCO_BORDER_WIDTH = 2;


class TrackView : public QWidget, public ModelView, public JournallingObject
{
Q_OBJECT
Expand Down

0 comments on commit f7f152d

Please sign in to comment.