mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Arrange images logically in ThemeCache
This commit is contained in:
parent
feb1f00596
commit
ac4a679350
@ -72,49 +72,6 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_IMAGE( bmpSeekDisabled, wxImage( 26, 16 ), wxT("SeekDisabled"));
|
||||
DEFINE_IMAGE( bmpSeek, wxImage( 26, 16 ), wxT("Seek"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagNewLine );
|
||||
DEFINE_IMAGE( bmpUpButtonLarge, wxImage( 48, 48 ), wxT("UpButtonLarge"));
|
||||
DEFINE_IMAGE( bmpDownButtonLarge, wxImage( 48, 48 ), wxT("DownButtonLarge"));
|
||||
DEFINE_IMAGE( bmpHiliteButtonLarge, wxImage( 48, 48 ), wxT("HiliteButtonLarge"));
|
||||
DEFINE_IMAGE( bmpUpButtonSmall, wxImage( 27, 27 ), wxT("UpButtonSmall"));
|
||||
DEFINE_IMAGE( bmpDownButtonSmall, wxImage( 27, 27 ), wxT("DownButtonSmall"));
|
||||
DEFINE_IMAGE( bmpHiliteButtonSmall, wxImage( 27, 27 ), wxT("HiliteButtonSmall"));
|
||||
DEFINE_IMAGE( bmpVolumeSlider, wxImage( 100, 28 ), wxT("VolumeSlider"));
|
||||
DEFINE_IMAGE( bmpVolumeSliderThumb, wxImage( 10, 28 ), wxT("VolumeSliderThumb"));
|
||||
DEFINE_IMAGE( bmpSliderThumb, wxImage( 11, 14 ), wxT("SliderThumb"));
|
||||
DEFINE_IMAGE( bmpToggleScrubBar, wxImage( 20, 20 ), wxT("ToggleScrubBar"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagNone );
|
||||
DEFINE_IMAGE( bmpMacUpButton, wxImage( 36, 36 ), wxT("MacUpButton"));
|
||||
DEFINE_IMAGE( bmpMacDownButton, wxImage( 36, 36 ), wxT("MacDownButton"));
|
||||
DEFINE_IMAGE( bmpMacHiliteButton, wxImage( 36, 36 ), wxT("MacHiliteButton"));
|
||||
DEFINE_IMAGE( bmpMacUpButtonSmall, wxImage( 27, 27 ), wxT("MacUpButtonSmall"));
|
||||
DEFINE_IMAGE( bmpMacDownButtonSmall, wxImage( 27, 27 ), wxT("MacDownButtonSmall"));
|
||||
DEFINE_IMAGE( bmpMacHiliteButtonSmall, wxImage( 27, 27 ), wxT("MacHiliteButtonSmall"));
|
||||
DEFINE_IMAGE( bmpMacSlider, wxImage( 100, 28 ), wxT("MacSlider"));
|
||||
DEFINE_IMAGE( bmpMacSliderThumb, wxImage( 17, 28 ), wxT("MacSliderThumb"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagInternal );
|
||||
DEFINE_IMAGE( bmpRecoloredUpLarge, wxImage( 48, 48 ), wxT("RecoloredUpLarge"));
|
||||
DEFINE_IMAGE( bmpRecoloredDownLarge, wxImage( 48, 48 ), wxT("RecoloredDownLarge"));
|
||||
DEFINE_IMAGE( bmpRecoloredHiliteLarge, wxImage( 48, 48 ), wxT("RecoloredHiliteLarge"));
|
||||
DEFINE_IMAGE( bmpRecoloredUpSmall, wxImage( 27, 27 ), wxT("RecoloredUpSmall"));
|
||||
DEFINE_IMAGE( bmpRecoloredDownSmall, wxImage( 27, 27 ), wxT("RecoloredDownSmall"));
|
||||
DEFINE_IMAGE( bmpRecoloredHiliteSmall, wxImage( 27, 27 ), wxT("RecoloredHiliteSmall"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagCursor );
|
||||
DEFINE_IMAGE( bmpIBeamCursor, wxImage( 32, 32 ), wxT("IBeamCursor"));
|
||||
DEFINE_IMAGE( bmpDrawCursor, wxImage( 32, 32 ), wxT("DrawCursor"));
|
||||
DEFINE_IMAGE( bmpEnvCursor, wxImage( 32, 32 ), wxT("EnvCursor"));
|
||||
DEFINE_IMAGE( bmpTimeCursor, wxImage( 32, 32 ), wxT("TimeCursor"));
|
||||
DEFINE_IMAGE( bmpZoomInCursor, wxImage( 32, 32 ), wxT("ZoomInCursor"));
|
||||
DEFINE_IMAGE( bmpZoomOutCursor, wxImage( 32, 32 ), wxT("ZoomOutCursor"));
|
||||
DEFINE_IMAGE( bmpLabelCursorLeft, wxImage( 32, 32 ), wxT("LabelCursorLeft"));
|
||||
DEFINE_IMAGE( bmpLabelCursorRight, wxImage( 32, 32 ), wxT("LabelCursorRight"));
|
||||
DEFINE_IMAGE( bmpDisabledCursor, wxImage( 32, 32 ), wxT("DisabledCursor"));
|
||||
DEFINE_IMAGE( bmpBottomFrequencyCursor, wxImage( 32, 32 ), wxT("BottomFrequencyCursor"));
|
||||
DEFINE_IMAGE( bmpTopFrequencyCursor, wxImage( 32, 32 ), wxT("TopFrequencyCursor"));
|
||||
DEFINE_IMAGE( bmpBandWidthCursor, wxImage(32, 32), wxT("BandWidthCursor"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagNone );
|
||||
DEFINE_IMAGE( bmpIBeam, wxImage( 27, 27 ), wxT("IBeam"));
|
||||
@ -126,8 +83,6 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_IMAGE( bmpMic, wxImage( 25, 25 ), wxT("Mic"));
|
||||
DEFINE_IMAGE( bmpSpeaker, wxImage( 25, 25 ), wxT("Speaker"));
|
||||
|
||||
DEFINE_IMAGE( bmpPinnedPlayRecordHead, wxImage( 27, 27 ), wxT("PinnedPlayRecordHead"));
|
||||
DEFINE_IMAGE( bmpUnpinnedPlayRecordHead, wxImage( 27, 27 ), wxT("UnpinnedPlayRecordHead"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagPaired );
|
||||
DEFINE_IMAGE( bmpZoomFit, wxImage( 27, 27 ), wxT("ZoomFit"));
|
||||
@ -155,10 +110,6 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_IMAGE( bmpRedo, wxImage( 26, 24 ), wxT("Redo"));
|
||||
DEFINE_IMAGE( bmpRedoDisabled, wxImage( 26, 24 ), wxT("RedoDisabled"));
|
||||
|
||||
DEFINE_IMAGE( bmpSyncLockTracksDown, wxImage( 20, 20 ), wxT("SyncLockTracksDown"));
|
||||
DEFINE_IMAGE( bmpSyncLockTracksUp, wxImage( 20, 20 ), wxT("SyncLockTracksUp"));
|
||||
DEFINE_IMAGE( bmpSyncLockTracksDisabled, wxImage( 20, 20 ), wxT("SyncLockTracksDisabled"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagPaired | resFlagNewLine );
|
||||
DEFINE_IMAGE( bmpTnStartOn, wxImage( 27, 27 ), wxT("TnStartOn"));
|
||||
DEFINE_IMAGE( bmpTnStartOnDisabled, wxImage( 27, 27 ), wxT("TnStartOnDisabled"));
|
||||
@ -210,6 +161,63 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_IMAGE( bmpDockOverShort, wxImage( 15, 27 ), wxT("DockOverShort"));
|
||||
DEFINE_IMAGE( bmpDockUp, wxImage( 15, 55 ), wxT("DockUp"));
|
||||
DEFINE_IMAGE( bmpDockUpShort, wxImage( 15, 27 ), wxT("DockUpShort"));
|
||||
DEFINE_IMAGE( bmpPinnedPlayRecordHead, wxImage( 27, 27 ), wxT("PinnedPlayRecordHead"));
|
||||
DEFINE_IMAGE( bmpUnpinnedPlayRecordHead, wxImage( 27, 27 ), wxT("UnpinnedPlayRecordHead"));
|
||||
|
||||
DEFINE_IMAGE( bmpSyncLockSelTile, wxImage(20, 22), wxT("SyncLockSelTile"));
|
||||
DEFINE_IMAGE( bmpEditEffects, wxImage(21, 20), wxT("EditEffects"));
|
||||
DEFINE_IMAGE( bmpSyncLockTracksDown, wxImage( 20, 20 ), wxT("SyncLockTracksDown"));
|
||||
DEFINE_IMAGE( bmpSyncLockTracksUp, wxImage( 20, 20 ), wxT("SyncLockTracksUp"));
|
||||
DEFINE_IMAGE( bmpSyncLockTracksDisabled, wxImage( 20, 20 ), wxT("SyncLockTracksDisabled"));
|
||||
DEFINE_IMAGE( bmpToggleScrubBar, wxImage( 20, 20 ), wxT("ToggleScrubBar"));
|
||||
DEFINE_IMAGE( bmpSliderThumb, wxImage( 11, 14 ), wxT("SliderThumb"));
|
||||
DEFINE_IMAGE( bmpSyncLockIcon, wxImage(12, 12), wxT("SyncLockIcon"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagNewLine );
|
||||
DEFINE_IMAGE( bmpUpButtonLarge, wxImage( 48, 48 ), wxT("UpButtonLarge"));
|
||||
DEFINE_IMAGE( bmpDownButtonLarge, wxImage( 48, 48 ), wxT("DownButtonLarge"));
|
||||
DEFINE_IMAGE( bmpHiliteButtonLarge, wxImage( 48, 48 ), wxT("HiliteButtonLarge"));
|
||||
DEFINE_IMAGE( bmpUpButtonSmall, wxImage( 27, 27 ), wxT("UpButtonSmall"));
|
||||
DEFINE_IMAGE( bmpDownButtonSmall, wxImage( 27, 27 ), wxT("DownButtonSmall"));
|
||||
DEFINE_IMAGE( bmpHiliteButtonSmall, wxImage( 27, 27 ), wxT("HiliteButtonSmall"));
|
||||
//DEFINE_IMAGE( bmpVolumeSlider, wxImage( 100, 28 ), wxT("VolumeSlider"));
|
||||
//DEFINE_IMAGE( bmpVolumeSliderThumb, wxImage( 10, 28 ), wxT("VolumeSliderThumb"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagNone );
|
||||
DEFINE_IMAGE( bmpMacUpButton, wxImage( 36, 36 ), wxT("MacUpButton"));
|
||||
DEFINE_IMAGE( bmpMacDownButton, wxImage( 36, 36 ), wxT("MacDownButton"));
|
||||
DEFINE_IMAGE( bmpMacHiliteButton, wxImage( 36, 36 ), wxT("MacHiliteButton"));
|
||||
DEFINE_IMAGE( bmpMacUpButtonSmall, wxImage( 27, 27 ), wxT("MacUpButtonSmall"));
|
||||
DEFINE_IMAGE( bmpMacDownButtonSmall, wxImage( 27, 27 ), wxT("MacDownButtonSmall"));
|
||||
DEFINE_IMAGE( bmpMacHiliteButtonSmall, wxImage( 27, 27 ), wxT("MacHiliteButtonSmall"));
|
||||
DEFINE_IMAGE( bmpMacSlider, wxImage( 100, 28 ), wxT("MacSlider"));
|
||||
DEFINE_IMAGE( bmpMacSliderThumb, wxImage( 17, 28 ), wxT("MacSliderThumb"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagInternal );
|
||||
DEFINE_IMAGE( bmpRecoloredUpLarge, wxImage( 48, 48 ), wxT("RecoloredUpLarge"));
|
||||
DEFINE_IMAGE( bmpRecoloredDownLarge, wxImage( 48, 48 ), wxT("RecoloredDownLarge"));
|
||||
DEFINE_IMAGE( bmpRecoloredHiliteLarge, wxImage( 48, 48 ), wxT("RecoloredHiliteLarge"));
|
||||
DEFINE_IMAGE( bmpRecoloredUpSmall, wxImage( 27, 27 ), wxT("RecoloredUpSmall"));
|
||||
DEFINE_IMAGE( bmpRecoloredDownSmall, wxImage( 27, 27 ), wxT("RecoloredDownSmall"));
|
||||
DEFINE_IMAGE( bmpRecoloredHiliteSmall, wxImage( 27, 27 ), wxT("RecoloredHiliteSmall"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagCursor );
|
||||
DEFINE_IMAGE( bmpIBeamCursor, wxImage( 32, 32 ), wxT("IBeamCursor"));
|
||||
DEFINE_IMAGE( bmpDrawCursor, wxImage( 32, 32 ), wxT("DrawCursor"));
|
||||
DEFINE_IMAGE( bmpEnvCursor, wxImage( 32, 32 ), wxT("EnvCursor"));
|
||||
DEFINE_IMAGE( bmpTimeCursor, wxImage( 32, 32 ), wxT("TimeCursor"));
|
||||
DEFINE_IMAGE( bmpZoomInCursor, wxImage( 32, 32 ), wxT("ZoomInCursor"));
|
||||
DEFINE_IMAGE( bmpZoomOutCursor, wxImage( 32, 32 ), wxT("ZoomOutCursor"));
|
||||
DEFINE_IMAGE( bmpLabelCursorLeft, wxImage( 32, 32 ), wxT("LabelCursorLeft"));
|
||||
DEFINE_IMAGE( bmpLabelCursorRight, wxImage( 32, 32 ), wxT("LabelCursorRight"));
|
||||
DEFINE_IMAGE( bmpDisabledCursor, wxImage( 32, 32 ), wxT("DisabledCursor"));
|
||||
DEFINE_IMAGE( bmpBottomFrequencyCursor, wxImage( 32, 32 ), wxT("BottomFrequencyCursor"));
|
||||
DEFINE_IMAGE( bmpTopFrequencyCursor, wxImage( 32, 32 ), wxT("TopFrequencyCursor"));
|
||||
DEFINE_IMAGE( bmpBandWidthCursor, wxImage(32, 32), wxT("BandWidthCursor"));
|
||||
|
||||
|
||||
|
||||
/*
|
||||
DEFINE_IMAGE( bmpToolBarToggle, wxImage( 43, 35 ), wxT("ToolBarToggle"));
|
||||
DEFINE_IMAGE( bmpToolBarTarget, wxImage( 17, 26 ), wxT("ToolBarTarget"));
|
||||
DEFINE_IMAGE( bmpToolBarGrabber, wxImage( 17, 8 ), wxT("ToolBarGrabber"));
|
||||
@ -218,7 +226,7 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_IMAGE( bmpUploadFolder, wxImage( 16, 16 ), wxT("UploadFolder"));
|
||||
DEFINE_IMAGE( bmpUploadMp3, wxImage( 16, 16 ), wxT("UploadMp3"));
|
||||
DEFINE_IMAGE( bmpUploadUp, wxImage( 16, 16 ), wxT("UploadUp"));
|
||||
|
||||
*/
|
||||
SET_THEME_FLAGS( resFlagNewLine );
|
||||
|
||||
#define LOGOWITHNAME_WIDTH 506
|
||||
@ -227,13 +235,6 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_IMAGE( bmpAudacityLogo, wxImage( 215, 190 ), wxT("AudacityLogo"));
|
||||
DEFINE_IMAGE( bmpAudacityLogo48x48, wxImage( 48, 48 ), wxT("AudacityLogo48x48"));
|
||||
|
||||
DEFINE_IMAGE( bmpSyncLockSelTile, wxImage(20, 22), wxT("SyncLockSelTile"));
|
||||
DEFINE_IMAGE( bmpSyncLockIcon, wxImage(12, 12), wxT("SyncLockIcon"));
|
||||
|
||||
SET_THEME_FLAGS( resFlagNone );
|
||||
DEFINE_IMAGE( bmpEditEffects, wxImage(21, 20), wxT("EditEffects"));
|
||||
|
||||
#if defined(EXPERIMENTAL_THEMING)
|
||||
DEFINE_COLOUR( clrBlank, wxColour( 64, 64, 64), wxT("Blank"));
|
||||
DEFINE_COLOUR( clrUnselected, wxColour( 30, 30, 30), wxT("Unselected"));
|
||||
DEFINE_COLOUR( clrSelected, wxColour( 93, 65, 93), wxT("Selected"));
|
||||
@ -245,26 +246,9 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_COLOUR( clrRms, wxColour(107, 154, 247), wxT("Rms"));
|
||||
DEFINE_COLOUR( clrMuteRms, wxColour(136, 136, 144), wxT("MuteRms"));
|
||||
DEFINE_COLOUR( clrShadow, wxColour(148, 148, 148), wxT("Shadow"));
|
||||
#else
|
||||
DEFINE_COLOUR( clrBlank, wxColour(214, 214, 214), wxT("Blank"));
|
||||
DEFINE_COLOUR( clrUnselected, wxColour(192, 192, 192), wxT("Unselected"));
|
||||
DEFINE_COLOUR( clrSelected, wxColour(148, 148, 170), wxT("Selected"));
|
||||
DEFINE_COLOUR( clrSample, wxColour( 50, 50, 200), wxT("Sample"));
|
||||
DEFINE_COLOUR( clrSelSample, wxColour( 50, 50, 200), wxT("SelSample"));
|
||||
DEFINE_COLOUR( clrDragSample, wxColour( 0, 0, 0), wxT("DragSample"));
|
||||
|
||||
DEFINE_COLOUR( clrMuteSample, wxColour(136, 136, 144), wxT("MuteSample"));
|
||||
DEFINE_COLOUR( clrRms, wxColour(100, 100, 220), wxT("Rms"));
|
||||
DEFINE_COLOUR( clrMuteRms, wxColour(136, 136, 144), wxT("MuteRms"));
|
||||
DEFINE_COLOUR( clrShadow, wxColour(148, 148, 148), wxT("Shadow"));
|
||||
#endif
|
||||
|
||||
DEFINE_COLOUR( clrAboutBoxBackground, wxColour(255, 255, 255), wxT("AboutBackground"));
|
||||
#if defined(EXPERIMENTAL_THEMING)
|
||||
DEFINE_COLOUR( clrTrackPanelText, wxColour(200, 200, 200), wxT("TrackPanelText"));
|
||||
#else
|
||||
DEFINE_COLOUR( clrTrackPanelText, wxColour( 0, 0, 0), wxT("TrackPanelText"));
|
||||
#endif
|
||||
DEFINE_COLOUR( clrLabelTrackText, wxColour( 0, 0, 0), wxT("LabelTrackText"));
|
||||
|
||||
DEFINE_COLOUR( clrMeterPeak, wxColour(102, 102, 255), wxT("MeterPeak"));
|
||||
@ -284,11 +268,7 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_COLOUR( clrMeterOutputClipBrush, wxColour(255, 53, 53), wxT("MeterOutputClipBrush") );
|
||||
DEFINE_COLOUR( clrMeterOutputLightPen, wxColour(153, 255, 153), wxT("MeterOutputLightPen") );
|
||||
DEFINE_COLOUR( clrMeterOutputDarkPen, wxColour(61, 164, 61), wxT("MeterOutputDarkPen") );
|
||||
#if defined(EXPERIMENTAL_THEMING)
|
||||
DEFINE_COLOUR( clrRulerBackground, wxColour( 93, 65, 93), wxT("RulerBackground") );
|
||||
#else
|
||||
DEFINE_COLOUR( clrRulerBackground, wxColour(148, 148, 170), wxT("RulerBackground") );
|
||||
#endif
|
||||
DEFINE_COLOUR( clrAxisLines, wxColour(0, 0, 255), wxT("AxisLines") );
|
||||
DEFINE_COLOUR( clrGraphLines, wxColour(110, 110, 220), wxT("GraphLines") );
|
||||
DEFINE_COLOUR( clrResponseLines, wxColour(0, 255, 0), wxT("ResponseLines") );
|
||||
@ -324,15 +304,9 @@ from there. Audacity will look for a file called "Pause.png".
|
||||
DEFINE_COLOUR( clrLabelSelectedPen, wxColour( 148,148,170), wxT("LabelSelectedPen") );
|
||||
DEFINE_COLOUR( clrLabelSurroundPen, wxColour( 0, 0, 0), wxT("LabelSurroundPen") );
|
||||
|
||||
#ifdef EXPERIMENTAL_THEMING
|
||||
DEFINE_COLOUR( clrTrackFocus0, wxColour( 200, 200, 200), wxT("TrackFocus0") );
|
||||
DEFINE_COLOUR( clrTrackFocus1, wxColour( 180, 180, 180), wxT("TrackFocus1") );
|
||||
DEFINE_COLOUR( clrTrackFocus2, wxColour( 160, 160, 160), wxT("TrackFocus2") );
|
||||
#else
|
||||
DEFINE_COLOUR( clrTrackFocus0, wxColour( 255, 255, 128), wxT("TrackFocus0") );
|
||||
DEFINE_COLOUR( clrTrackFocus1, wxColour( 215, 215, 138), wxT("TrackFocus1") );
|
||||
DEFINE_COLOUR( clrTrackFocus2, wxColour( 185, 185, 142), wxT("TrackFocus2") );
|
||||
#endif
|
||||
|
||||
DEFINE_COLOUR( clrSnapGuide, wxColour( 255, 255, 0), wxT("SnapGuide") );
|
||||
DEFINE_COLOUR( clrTrackInfo, wxColour( 64, 64, 64), wxT("TrackInfo") );
|
||||
|
11840
src/ThemeAsCeeCode.h
11840
src/ThemeAsCeeCode.h
File diff suppressed because it is too large
Load Diff
@ -148,7 +148,7 @@ void EditToolBar::Populate()
|
||||
AddSeparator();
|
||||
|
||||
#ifdef EXPERIMENTAL_SYNC_LOCK
|
||||
AddButton(bmpSyncLockTracksUp, bmpSyncLockTracksDown, bmpSyncLockTracksDisabled, ETBSyncLockID,
|
||||
AddButton(bmpSyncLockTracksUp, bmpSyncLockTracksDown, bmpSyncLockTracksUp, ETBSyncLockID,
|
||||
_("Sync-Lock Tracks"), true);
|
||||
|
||||
AddSeparator();
|
||||
|
@ -148,10 +148,10 @@ ExpandingToolBar::ExpandingToolBar(wxWindow* parent,
|
||||
mGrabber = safenew ToolBarGrabber(this, -1, this);
|
||||
|
||||
/// \todo check whether this is a memory leak (and check similar code)
|
||||
wxImage hbar = theTheme.Image(bmpToolBarToggle);
|
||||
wxColour magicColor = wxColour(0, 255, 255);
|
||||
ImageArray fourStates = ImageRoll::SplitV(hbar, magicColor);
|
||||
|
||||
//wxImage hbar = theTheme.Image(bmpToolBarToggle);
|
||||
//wxColour magicColor = wxColour(0, 255, 255);
|
||||
//ImageArray fourStates = ImageRoll::SplitV(hbar, magicColor);
|
||||
/*
|
||||
mToggleButton = new AButton(this, kToggleButtonID,
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
ImageRoll(ImageRoll::HorizontalRoll,
|
||||
@ -164,7 +164,7 @@ ExpandingToolBar::ExpandingToolBar(wxWindow* parent,
|
||||
fourStates[3], magicColor),
|
||||
true);
|
||||
mToggleButton->UseDisabledAsDownHiliteImage(true);
|
||||
|
||||
*/
|
||||
SetAutoLayout(true);
|
||||
mTimer.SetOwner(this, kTimerID);
|
||||
}
|
||||
@ -538,11 +538,11 @@ void ExpandingToolBar::StartMoving()
|
||||
mDropTarget = kDummyRect;
|
||||
|
||||
wxColour magicColor = wxColour(0, 255, 255);
|
||||
wxImage tgtImage = theTheme.Image(bmpToolBarTarget);
|
||||
ImageRoll tgtImageRoll = ImageRoll(ImageRoll::VerticalRoll,
|
||||
tgtImage,
|
||||
magicColor);
|
||||
mTargetPanel = safenew ImageRollPanel(mAreaParent, -1, tgtImageRoll,
|
||||
// wxImage tgtImage = theTheme.Image(bmpToolBarTarget);
|
||||
// ImageRoll tgtImageRoll = ImageRoll(ImageRoll::VerticalRoll,
|
||||
// tgtImage,
|
||||
// magicColor);
|
||||
mTargetPanel = safenew ImageRollPanel(mAreaParent, -1, //tgtImageRoll,
|
||||
wxDefaultPosition,
|
||||
wxDefaultSize,
|
||||
wxTRANSPARENT_WINDOW);
|
||||
@ -671,6 +671,7 @@ ToolBarGrabber::ToolBarGrabber(wxWindow *parent,
|
||||
wxPanelWrapper(parent, id, pos, size),
|
||||
mOwnerToolBar(ownerToolbar)
|
||||
{
|
||||
#if 0
|
||||
wxImage grabberImages = theTheme.Image(bmpToolBarGrabber);
|
||||
wxColour magicColor = wxColour(0, 255, 255);
|
||||
ImageArray images = ImageRoll::SplitH(grabberImages, magicColor);
|
||||
@ -684,7 +685,7 @@ ToolBarGrabber::ToolBarGrabber(wxWindow *parent,
|
||||
|
||||
SetSizeHints(mImageRoll[0].GetMinSize(),
|
||||
mImageRoll[1].GetMaxSize());
|
||||
|
||||
#endif
|
||||
mState = 0;
|
||||
}
|
||||
|
||||
@ -719,7 +720,7 @@ void ToolBarGrabber::OnPaint(wxPaintEvent & WXUNUSED(event))
|
||||
{
|
||||
wxPaintDC dc(this);
|
||||
|
||||
mImageRoll[mState].Draw(dc, GetClientRect());
|
||||
// mImageRoll[mState].Draw(dc, GetClientRect());
|
||||
}
|
||||
|
||||
void ToolBarGrabber::OnSize(wxSizeEvent & WXUNUSED(event))
|
||||
|
@ -139,7 +139,7 @@ class ToolBarGrabber final : public wxPanelWrapper
|
||||
|
||||
protected:
|
||||
int mState;
|
||||
ImageRoll mImageRoll[2];
|
||||
//ImageRoll mImageRoll[2];
|
||||
ExpandingToolBar *mOwnerToolBar;
|
||||
|
||||
DECLARE_EVENT_TABLE();
|
||||
|
@ -424,16 +424,16 @@ IMPLEMENT_CLASS(ImageRollPanel, wxPanelWrapper)
|
||||
|
||||
ImageRollPanel::ImageRollPanel(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
ImageRoll &imgRoll,
|
||||
//ImageRoll &imgRoll,
|
||||
const wxPoint& pos,
|
||||
const wxSize& size,
|
||||
long style):
|
||||
wxPanelWrapper(parent, id, pos, size, style),
|
||||
mImageRoll(imgRoll),
|
||||
//mImageRoll(imgRoll),
|
||||
mLogicalFunction(wxCOPY)
|
||||
{
|
||||
SetSizeHints(mImageRoll.GetMinSize(),
|
||||
mImageRoll.GetMaxSize());
|
||||
// SetSizeHints(mImageRoll.GetMinSize(),
|
||||
// mImageRoll.GetMaxSize());
|
||||
}
|
||||
|
||||
void ImageRollPanel::SetLogicalFunction(wxRasterOperationMode func)
|
||||
@ -445,7 +445,7 @@ void ImageRollPanel::OnPaint(wxPaintEvent & WXUNUSED(event))
|
||||
{
|
||||
wxPaintDC dc(this);
|
||||
|
||||
mImageRoll.Draw(dc, GetClientRect(), mLogicalFunction);
|
||||
// mImageRoll.Draw(dc, GetClientRect(), mLogicalFunction);
|
||||
}
|
||||
|
||||
void ImageRollPanel::OnSize(wxSizeEvent & WXUNUSED(event))
|
||||
|
@ -74,7 +74,7 @@ class ImageRollPanel final : public wxPanelWrapper
|
||||
|
||||
ImageRollPanel(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
ImageRoll &imgRoll,
|
||||
//ImageRoll &imgRoll,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxTAB_TRAVERSAL);
|
||||
@ -85,7 +85,7 @@ class ImageRollPanel final : public wxPanelWrapper
|
||||
void OnSize(wxSizeEvent &evt);
|
||||
|
||||
protected:
|
||||
ImageRoll mImageRoll;
|
||||
//ImageRoll mImageRoll;
|
||||
|
||||
wxRasterOperationMode mLogicalFunction;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user