osxsystempeer.h

来自「这是VCF框架的代码」· C头文件 代码 · 共 163 行

H
163
字号
#ifndef _VCF_OSXSYSTEMPEER_H__#define _VCF_OSXSYSTEMPEER_H__//OSXSystemPeer.h/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*/namespace VCF{class OSXSystemPeer : public SystemPeer {public:	OSXSystemPeer();	virtual ~OSXSystemPeer();	virtual unsigned long getTickCount();	virtual void sleep( const uint32& milliseconds );	virtual bool doesFileExist( const String& fileName );	virtual String getCurrentWorkingDirectory();	virtual String getEnvironmentVariable( const String& variableName );		virtual void setEnvironmentVariable( const String& variableName, const String& newValue );	virtual void addPathDirectory( const String& directory );		virtual void setCurrentWorkingDirectory( const String& currentDirectory );	virtual String getCommonDirectory( System::CommonDirectory directory );    virtual void setDateToSystemTime( DateTime* date );	virtual void setDateToLocalTime( DateTime* date );	virtual void setCurrentThreadLocale( Locale* locale );    virtual bool isUnicodeEnabled() {        return true;    }		virtual DateTime convertUTCTimeToLocalTime( const DateTime& date );		virtual DateTime convertLocalTimeToUTCTime( const DateTime& date );		virtual String getOSName();	virtual String getOSVersion();	virtual String getComputerName();	virtual String getUserName();		virtual ProgramInfo* getProgramInfoFromFileName( const String& fileName );		virtual String createTempFileName( const String& directory ) ;protected:	struct timezone timeZone_;	struct timeval time_;};};/***CVS Log info *$Log$ *Revision 1.7  2006/04/07 02:35:34  ddiego *initial checkin of merge from 0.6.9 dev branch. * *Revision 1.6.2.1  2006/02/22 01:26:22  ddiego *mac osx updates. * *Revision 1.6  2005/07/10 00:20:40  ddiego *updated osx code from merge over of devmain-0-6-7. * *Revision 1.5  2005/07/09 23:15:04  ddiego *merging in changes from devmain-0-6-7 branch. * *Revision 1.4  2005/01/08 20:52:47  ddiego *fixed some glitches in osx impl. * *Revision 1.3.2.1  2005/05/08 19:55:32  ddiego *osx updates, not yet functional. * *Revision 1.3  2004/12/01 04:31:41  ddiego *merged over devmain-0-6-6 code. Marcello did a kick ass job *of fixing a nasty bug (1074768VCF application slows down modal dialogs.) *that he found. Many, many thanks for this Marcello. * *Revision 1.2.2.1  2004/10/10 20:42:08  ddiego *osx updates * *Revision 1.2  2004/08/07 02:49:14  ddiego *merged in the devmain-0-6-5 branch to stable * *Revision 1.1.2.6  2004/07/27 04:26:04  ddiego *updated devmain-0-6-5 branch with osx changes * *Revision 1.1.2.5  2004/06/06 07:05:32  marcelloptr *changed macros, text reformatting, copyright sections * *Revision 1.1.2.3  2004/04/30 05:44:34  ddiego *added OSX changes for unicode migration * *Revision 1.4.2.1  2004/04/26 21:58:43  marcelloptr *changes for dir reorganization: _VCF_MACRO_H__ * *Revision 1.4  2004/04/03 15:48:42  ddiego *Merged over code from the 0-6-3 branch. * *Revision 1.3.4.1  2004/02/21 03:27:06  ddiego *updates for OSX porting * *Revision 1.3  2003/08/09 02:56:44  ddiego *merge over from the devmain-0-6-1 branch *Changes *Features: *-Added additional implementation to better support the MVC architecture in *the VCF * *-Added a Document/View architecure that is similar to MFC's or NextSteps's *Doc/View architectures * *-Integrated the Anti Grain Graphics library into the GraphicsKit. There is *now basic support for it in terms of drawing vector shapes *(fills and strokes). Image support will come in the next release * *-Added several documented graphics tutorials * *Bugfixes: * *[ 775744 ] wrong buttons on a dialog *[ 585239 ] Painting weirdness in a modal dialog ? *[ 585238 ] Modal dialog which makes a modal Dialog *[ 509004 ] Opening a modal Dialog causes flicker *[ 524878 ] onDropped not called for MLTcontrol * *Plus an issue with some focus and getting the right popup window to activate *has also been fixed * *Revision 1.2.2.1  2003/06/23 23:16:55  ddiego *added some furtther implementation for the osx port * *Revision 1.2  2003/05/17 20:37:12  ddiego *this is the checkin for the 0.6.1 release - represents the merge over from *the devmain-0-6-0 branch plus a few minor bug fixes * *Revision 1.1.2.1  2003/05/15 03:01:01  ddiego *added initial osx source( FoundationKit only), *plus some fixes to compile under GCC 3.x compilers * */#endif // _VCF_OSXSYSTEMPEER_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?