mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 16:09:28 +02:00
Removed some unused members, made some members const
This commit is contained in:
parent
82cf9b3ab6
commit
64ad732aee
@ -359,7 +359,7 @@ void ToolBar::SetLabel(const wxString & label)
|
||||
//
|
||||
// Returns whether the toolbar is resizable or not
|
||||
//
|
||||
bool ToolBar::IsResizable()
|
||||
bool ToolBar::IsResizable() const
|
||||
{
|
||||
return mResizable;
|
||||
}
|
||||
@ -367,7 +367,7 @@ bool ToolBar::IsResizable()
|
||||
//
|
||||
// Returns the dock state of the toolbar
|
||||
//
|
||||
bool ToolBar::IsDocked()
|
||||
bool ToolBar::IsDocked() const
|
||||
{
|
||||
return mDock != NULL;
|
||||
}
|
||||
@ -375,7 +375,7 @@ bool ToolBar::IsDocked()
|
||||
//
|
||||
// Returns the visibility of the toolbar
|
||||
//
|
||||
bool ToolBar::IsVisible()
|
||||
bool ToolBar::IsVisible() const
|
||||
{
|
||||
return mVisible;
|
||||
}
|
||||
|
@ -113,9 +113,9 @@ class ToolBar /* not final */ : public wxPanel
|
||||
// NEW virtual:
|
||||
virtual bool Expose(bool show = true);
|
||||
|
||||
bool IsResizable();
|
||||
bool IsVisible();
|
||||
bool IsDocked();
|
||||
bool IsResizable() const;
|
||||
bool IsVisible() const;
|
||||
bool IsDocked() const;
|
||||
bool IsPositioned(){ return mPositioned; };
|
||||
void SetVisible( bool bVisible );
|
||||
void SetPositioned(){ mPositioned = true;};
|
||||
|
@ -121,11 +121,6 @@ void ToolDock::Undock( ToolBar *bar )
|
||||
}
|
||||
}
|
||||
|
||||
int ToolDock::GetBarCount()
|
||||
{
|
||||
return mDockedBars.GetCount();
|
||||
}
|
||||
|
||||
//
|
||||
// Handle ToolDock events
|
||||
//
|
||||
|
@ -59,7 +59,6 @@ class ToolDock final : public wxPanel
|
||||
void Expose( int type, bool show );
|
||||
int Find(ToolBar *bar) const;
|
||||
int GetOrder( ToolBar *bar );
|
||||
int GetBarCount();
|
||||
void Dock( ToolBar *bar, bool deflate, int ndx = -1 );
|
||||
void Undock( ToolBar *bar );
|
||||
int PositionBar( ToolBar *t, wxPoint & pos, wxRect & rect );
|
||||
@ -74,18 +73,6 @@ class ToolDock final : public wxPanel
|
||||
|
||||
private:
|
||||
|
||||
void ReadConfig();
|
||||
void WriteConfig();
|
||||
|
||||
int FlowLayout( int cnt,
|
||||
wxRect boxen[],
|
||||
wxRect ideal[],
|
||||
int i,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height );
|
||||
|
||||
void Updated();
|
||||
|
||||
int mTotalToolBarHeight;
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include "ToolDock.h"
|
||||
#include "ToolBar.h"
|
||||
|
||||
class wxArrayPtrVoid;
|
||||
class wxBitmap;
|
||||
class wxCommandEvent;
|
||||
class wxFrame;
|
||||
@ -108,7 +107,6 @@ class ToolManager final : public wxEvtHandler
|
||||
bool mTransition;
|
||||
#endif
|
||||
|
||||
wxArrayPtrVoid mDockedBars;
|
||||
ToolDock *mTopDock;
|
||||
ToolDock *mBotDock;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user