1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 07:43:54 +02:00

Automatic setting size hints in all choice controls in ShuttleGui...

... excpet in a few places that populate the choice control late and then
do it explicitly
This commit is contained in:
Paul Licameli
2018-03-20 14:30:10 -04:00
parent 56bca74272
commit f7f721b52d
10 changed files with 9 additions and 54 deletions

View File

@@ -288,6 +288,12 @@ protected:
long Style( long Style );
private:
void SetSizeHints( const wxArrayString & items );
public:
static void SetSizeHints( wxWindow *window, const wxArrayString & items );
protected:
wxWindow * mpLastWind;
wxWindow * mpDlg;
wxSizer * pSizerStack[ nMaxNestedSizers ];
@@ -389,12 +395,6 @@ public:
wxSizerItem * AddSpace( int width, int height );
wxSizerItem * AddSpace( int size ) { return AddSpace( size, size ); };
void SetSizeHints( int minX = -1, int minY = -1 );
void SetSizeHints( const wxArrayString & items );
void SetSizeHints( const std::vector<int> & items );
static void SetSizeHints( wxWindow *window, const wxArrayString & items );
static void SetSizeHints( wxWindow *window, const std::vector<int> & items );
teShuttleMode GetMode() { return mShuttleMode; };
};