Paul Licameli
b81c03c194
Change the menu labels in vertical rulers...
...
... and recompute popup menu tables that depend on preferences.
The code for labels in the rulers was unsatisfactory because
(1) rescanning and editing the post-translation strings is a hack to avoid, and
(2) separating the hints like "Shift-Left-Click" with a tab character made them
invisible on Mac. So instead, append strings like " (Shift-Left-Click)"
2020-05-23 13:58:22 -04:00
Paul Licameli
7fb4652c88
Remove some unused functions and forward declarations
2020-05-23 05:16:59 -04:00
Yuri Chornoivan
d1ada5f08c
Fix minor typos
2020-04-11 10:06:24 +01:00
Paul Licameli
87382d51d8
Demote convenience function that makes computed items to base class
2020-02-15 14:44:17 -05:00
Paul Licameli
4d7a9f00a1
Popup menu table for wave track has member function to get the track
2020-02-15 13:52:41 -05:00
Paul Licameli
cfd07af245
PopupMenuTable supports registration
2020-02-15 13:49:13 -05:00
Paul Licameli
46f958f376
Use computed registry items for conditionally shown popup menu items
2020-02-14 21:38:07 -05:00
Paul Licameli
db3543500c
Each popup menu item can carry a callback to check or disable it
2020-02-09 23:48:40 -05:00
Paul Licameli
00a419a280
Store a reference to a handler object in each PopupMenuItem
2020-02-09 23:48:40 -05:00
Paul Licameli
e1e0869e26
Replace some macros for popup menus with function calls
2020-02-09 23:48:40 -05:00
Paul Licameli
8f88aa106e
Bug2312: don't crash using Wave Color, Format, Rate sub-menus of TCP
2020-02-08 13:20:18 -05:00
Paul Licameli
540f2c5e67
Restore separators after "Move Track to Bottom" in TCP menus
2020-02-06 17:52:45 -05:00
Paul Licameli
23c7122985
Populate popup menus with a registry visitor
2020-02-06 00:52:54 -05:00
Paul Licameli
99e3dd5d3f
Require an identifier for each popup menu item
2020-02-06 00:52:54 -05:00
Paul Licameli
f68da05c1d
PopupMenuTable ctor requires an identifier
2020-02-06 00:52:54 -05:00
Paul Licameli
08b1be5514
Macros describe popup menus' sections, not their separators
2020-02-06 00:52:54 -05:00
Paul Licameli
3517b900b1
PopupMenuTable need not publicize its wxMenu subclass
2020-02-06 00:52:54 -05:00
Paul Licameli
9435e97fb8
Store popup sub-menu caption with its item table
2020-02-06 00:52:53 -05:00
Paul Licameli
1e37172e6d
Popup sub-menus don't require ids
2020-02-06 00:52:53 -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
646afe9559
comments
2020-02-02 17:16:11 -05:00
Paul Licameli
12bbafe013
Separate storing of user data from initialization of popup items
2020-01-01 21:54:45 -05:00
Paul Licameli
7bdb3491c7
Fix usage comment for PopupMenuTable
2019-12-29 00:08:31 -05:00
Paul Licameli
6b812791a6
TranslatableString in popup menu tables
2019-12-16 15:10:35 -05:00
Paul Licameli
2e05d2d884
Remove wx/{radiobut,ownerdrw,menuitem,menu,listbox}.h from *.h
2019-03-30 12:15:53 -04:00
Paul Licameli
c3aad2e026
Remove wx/event.h from headers
2019-03-27 04:36:51 -04:00
Paul Licameli
2f3604bdea
Rewrite many calls to Connect() with Bind()...
...
... it's the more modern way, and does better type checking, without the
dubious casts of pointers-to-member-functions.
2018-02-21 19:28:11 -05:00
Paul Licameli
d59592f862
Fix some Mac compilation warnings
2018-01-09 08:46:58 -05:00
Paul Licameli
cba51e1bf8
Define class PopupMenuTable to make it easy to attach and detach handlers...
...
... to the parent TrackPanel window
2017-06-15 08:20:59 -04:00