James Crook
8168dce551
Fix Big Time TimerToolBar, Stage I
...
- Update on idle (new idiom from Paul)
- Dock at x1 or x2 size
- Smooth resizing
- Take some account of width when resizing
- Promote Resizable docking code to ToolBar class
2020-02-05 14:24:59 +00:00
Paul Licameli
3b77af5dfc
Remove TranslatableStringArray.h
2020-02-02 18:02:32 -05:00
Paul Licameli
6e57428e47
PopupMenuTable does not need TranslatableArray...
...
... because the strings in it are TranslatableString, not translated
2020-02-02 17:32:23 -05:00
Paul Licameli
48b5988c7d
Be sure PopupMenuTable::DestroyMenu() gets called...
...
... though it didn't matter yet for any of the overrides
2020-02-02 17:16:11 -05:00
Paul Licameli
646afe9559
comments
2020-02-02 17:16:11 -05:00
David Bailes
46a6d21585
Bug 2299 - Keyboard preferences: names of commands contain &
...
Caused by this commit: 0021a98091a70b : Remove another unnecessary stripping of accelerators from labels
Unfortunately, the stripping was necessary.
Fix:
Reinstate stripping.
Derives from tag: Audacity-2.3.3 + 94 commits
2020-01-31 15:11:18 +00:00
Paul Licameli
68281fe0ee
Split up Ruler::Updater::Update
2020-01-23 13:53:54 -05:00
Paul Licameli
580ad8221e
Mutable cache for ruler updates, so Draw functions can be const
2020-01-23 13:51:12 -05:00
Paul Licameli
a2babc646f
Use the correct font to find lead size for custom fonts
2020-01-23 13:39:22 -05:00
Paul Licameli
99064d6dd5
Mutable cache for Ruler's chosen fonts
2020-01-23 13:35:32 -05:00
Paul Licameli
21306d6186
Remove indirection storing number scale in Ruler
2020-01-23 13:27:05 -05:00
Paul Licameli
fec3b11674
Demote more of the ruler updating procedure into Updater
2020-01-23 13:18:47 -05:00
Paul Licameli
fe4db0dd8e
Nix Ruler member vars used only for grid drawing; more const methods
2020-01-23 12:56:11 -05:00
Paul Licameli
537ace493e
Don't draw 0 at top of spectrogram scale (bug in 8cf7d0b)
2020-01-22 19:58:53 -05:00
Paul Licameli
ec723466ba
Invalidate Ruler, whenever anything the Updater uses is reassigned
2020-01-22 13:38:37 -05:00
Paul Licameli
edba1b5b28
Avoid unnecessary update before drawing ruler grid...
...
... which matters for some displays such as in Equalization, though not for
track vertical rulers
2020-01-22 13:38:36 -05:00
Paul Licameli
b0154f89e0
Move Tick and TickCustom methods to temporary worker structure...
...
... which forces us to be more explicit about just what parts of the Ruler
state are used in it (when we construct it) and be sure they don't modify it
2020-01-22 13:38:34 -05:00
Paul Licameli
8cf7d0b8e9
Make Ruler::Tick and TickCustom const member functions...
...
... on the way to making them not (direct) member functions of Ruler.
Hoist the choice of font and destination label array out of them, and
group other outputs into an argument.
2020-01-22 12:51:08 -05:00
Paul Licameli
2c0afdd77a
TickSizes::LabelString takes one less argument...
...
... so that Ruler::Tick uses major in one less place
2020-01-22 12:09:52 -05:00
Paul Licameli
80dd2fbec9
Further factoring of font size setting...
...
... and fix uninitialized lead size in case of user-supplied fonts (though
this capability isn't yet used anywhere)
2020-01-22 12:09:52 -05:00
Paul Licameli
e08543650b
Factor function to choose ruler fonts
2020-01-22 12:09:52 -05:00
Paul Licameli
3876031669
Group ruler fonts and lead into a structure
2020-01-22 12:09:52 -05:00
Paul Licameli
80f884b0b7
Don't need extra indirection handling wxFont, see documentation of it
2020-01-22 12:09:52 -05:00
Paul Licameli
05c80cfb4f
narrow scopes of loop indices
2020-01-22 12:09:52 -05:00
Paul Licameli
605a4056c9
Fix bug in 3a64b17...
...
... which make, for instance, excessive tick marks when in Mel spectrogram
scale
2020-01-22 12:08:37 -05:00
Paul Licameli
a14d5c348a
Eliminate Ruler::mDC
2020-01-21 19:58:05 -05:00
Paul Licameli
3a64b172c8
Demote duplicated code in Ruler into a static function
2020-01-21 19:36:02 -05:00
Paul Licameli
8729f3fb8e
Simplify Ruler with std::vector members
2020-01-21 16:07:27 -05:00
Paul Licameli
7682961f53
Remove unused members of Ruler
2020-01-21 15:17:51 -05:00
Paul Licameli
a84391b4a2
Eliminate some members from Ruler...
...
... Move some fields used only during formatting into a temporary structure.
(And fixing a minor problem with uninitialized variables in case of logarithmic
scale, which made it unpredictable how Plot Spectrum with logarithmic
frequencely axis formatted numbers.)
2020-01-21 12:53:33 -05:00
Paul Licameli
9cd7a5eaf3
Bug2277 partial: in dB ruler, always draw midline value if in range...
...
... and also draw the zeroes if in range, taking precedence over the extreme
values (which might be positive dB values when zoomed out or scrolled).
See comments 10 and 11 in the bug report.
2020-01-20 12:29:28 -05:00
Paul Licameli
2570b56176
Rename Maybe and its members more like std::optional of C++17
2020-01-19 11:38:12 -05:00
Paul Licameli
32d2d2390f
Eliminate GetActiveProject from MixerBoard, Snap, Meter
2020-01-07 17:06:23 -05:00
Paul Licameli
275797bbb4
Fewer uses of ::GetActiveProject()...
...
... where we have a window, ascend the chain of parent pointers instead to
find the project window.
2020-01-04 12:59:37 -05:00
Paul Licameli
12bbafe013
Separate storing of user data from initialization of popup items
2020-01-01 21:54:45 -05:00
Loss
e787694f07
Implementation of Timer Toolbar
...
PRL: Rebased onto recent master, fixed compilation and indentation, added new
files to the XCode project, added an EXPERIMENTAL flag
2019-12-31 17:42:54 -05:00
Paul Licameli
093ffbd2f1
MultiDialog uses ShuttleGui, and TranslatableString for title
2019-12-29 16:17:04 -05:00
Paul Licameli
c64b3cb31f
Rewrite FileDialogWrapper using FileNames::FileTypes...
...
... also removing some repeated code and using the config keys /DefaultOpenType
and /LastOpenType only in Import.cpp
2019-12-29 15:35:03 -05:00
James Crook
e6c370023c
Fix broken Windows build.
2019-12-29 17:38:44 +00:00
Paul Licameli
7bdb3491c7
Fix usage comment for PopupMenuTable
2019-12-29 00:08:31 -05:00
Paul Licameli
6e14d2e56c
RulerPanel uses TranslatableString for units string...
...
... also fixing missed translation of "k" in spectrum vertical ruler
2019-12-28 23:49:18 -05:00
Paul Licameli
956e0813c4
SliderAx uses TranslatableString
2019-12-28 23:49:17 -05:00
Paul Licameli
ccefe8da5f
Remove unused default arguments for FileDialogWrapper
2019-12-26 22:13:36 -05:00
Paul Licameli
747c35645a
TranslatableString for checkbox captions
2019-12-23 19:15:34 -05:00
Paul Licameli
c23451af9d
TranslatableString for prompts of radio buttons
2019-12-23 19:02:21 -05:00
Paul Licameli
13417b6d5b
ShuttleGui::AddFixedText takes TranslatableString
2019-12-23 19:02:19 -05:00
Paul Licameli
acd1158e1b
TranslatableString for titles, and spin control and combo prompts
2019-12-23 18:53:00 -05:00
Paul Licameli
5168d62e3d
TranslatableString for captions of text entry boxes
2019-12-23 18:53:00 -05:00
Paul Licameli
b404eb7800
TranslatableString for static text box captions
2019-12-23 18:52:37 -05:00
Paul Licameli
1944ac2040
TranslatableString for labels of ShuttleGui buttons
2019-12-23 15:35:48 -05:00