Files
Work/statbar/HOLD/SMK.LST
2024-08-07 09:16:27 -04:00

121 lines
3.4 KiB
Plaintext

Comparing files STATINFO.CPP and ..\STATINFO.Cpp
FC: no differences encountered
Comparing files STATBAR.CPP and ..\STATBAR.Cpp
FC: no differences encountered
Comparing files STATMENU.HPP and ..\STATMENU.Hpp
FC: no differences encountered
Comparing files STATMENU.CPP and ..\STATMENU.Cpp
FC: no differences encountered
Comparing files POPUP.HPP and ..\POPUP.Hpp
FC: no differences encountered
Comparing files POPUP.CPP and ..\POPUP.Cpp
FC: no differences encountered
Comparing files STATBAR.HPP and ..\STATBAR.Hpp
FC: no differences encountered
Comparing files STATLOGO.HPP and ..\STATLOGO.Hpp
****** STATLOGO.HPP
void setBitmap(GUIWindow &guiWindow,const String &nameBitmap);
void centerxy(BOOL centerx,BOOL centery);
void stretchBlt(BOOL stretchBlt);
protected:
****** ..\STATLOGO.Hpp
void setBitmap(GUIWindow &guiWindow,const String &nameBitmap);
protected:
******
****** STATLOGO.HPP
BOOL mStretchBlt;
BOOL mCentery;
BOOL mCenterx;
};
****** ..\STATLOGO.Hpp
BOOL mStretchBlt;
};
******
****** STATLOGO.HPP
StatusBarLogo::StatusBarLogo(GUIWindow &guiWindow,const String &nameBitmap,BOOL stretchBlt)
: StatusBar(guiWindow), mPureBitmap(nameBitmap,guiWindow.processInstance()), mStretchBlt(stretchBlt),
mCenterx(FALSE), mCentery(FALSE)
{
****** ..\STATLOGO.Hpp
StatusBarLogo::StatusBarLogo(GUIWindow &guiWindow,const String &nameBitmap,BOOL stretchBlt)
: StatusBar(guiWindow), mPureBitmap(nameBitmap,guiWindow.processInstance()), mStretchBlt(stretchBlt)
{
******
****** STATLOGO.HPP
inline
void StatusBarLogo::centerxy(BOOL centerx,BOOL centery)
{
mCenterx=centerx;
mCentery=centery;
}
****** ..\STATLOGO.Hpp
inline
void StatusBarLogo::setBitmap(GUIWindow &guiWindow,const String &nameBitmap)
{
mPureBitmap=PureBitmap(nameBitmap,guiWindow.processInstance());
PureDevice screenDevice(guiWindow);
postPaint(screenDevice,postPaintRect());
}
******
****** STATLOGO.HPP
inline
void StatusBarLogo::stretchBlt(BOOL stretchBlt)
{
mStretchBlt=stretchBlt;
}
inline
void StatusBarLogo::setBitmap(GUIWindow &guiWindow,const String &nameBitmap)
{
mPureBitmap=PureBitmap(nameBitmap,guiWindow.processInstance());
PureDevice screenDevice(guiWindow);
postPaint(screenDevice,postPaintRect());
}
inline
void StatusBarLogo::postPaint(PureDevice &screenDevice,const Rect &paintRect)
{
PureDevice memDevice(screenDevice);
****** ..\STATLOGO.Hpp
inline
void StatusBarLogo::postPaint(PureDevice &screenDevice,const Rect &paintRect)
{
PureDevice memDevice(screenDevice);
******
****** STATLOGO.HPP
if(mStretchBlt)screenDevice.stretchBlt(paintRect,memDevice,Rect(0,0,mPureBitmap.width(),mPureBitmap.height()));
else
{
if(!mCenterx&&!mCentery)screenDevice.bitBlt(paintRect,memDevice,Point(0,0));
else
{
Rect bltRect(paintRect);
if(mCentery)bltRect.top(bltRect.top()+((paintRect.bottom()-mPureBitmap.height())/2));
if(mCenterx)bltRect.left(bltRect.left()+((paintRect.right()-mPureBitmap.width())/2));
screenDevice.bitBlt(bltRect,memDevice,Point(0,0));
}
}
}
****** ..\STATLOGO.Hpp
if(mStretchBlt)screenDevice.stretchBlt(paintRect,memDevice,Rect(0,0,mPureBitmap.width(),mPureBitmap.height()));
else screenDevice.bitBlt(paintRect,memDevice,Point(0,0));
}
******
Comparing files STATINFO.HPP and ..\STATINFO.Hpp
FC: no differences encountered