gtkapplication.cpp
来自「这是VCF框架的代码」· C++ 代码 · 共 157 行
CPP
157 行
//GTKApplication.cpp/*Copyright 2000-2004 The VCF Project.Please see License.txt in the top level directorywhere you installed the VCF.*/#include "vcf/ApplicationKit/ApplicationKit.h"#include "vcf/ApplicationKit/ApplicationKitPrivate.h"#include "vcf/ApplicationKit/GTKApplication.h"using namespace VCF;GTKApplication::GTKApplication() : app_( NULL ), handleID_( 0 ){}GTKApplication::~GTKApplication(){}bool GTKApplication::initApp(){ bool result = true; //initialize GTK! //note! gtk_init is called in GraphicsKit::init() now gdk_event_handler_set( GTKUIToolkit::internal_gdkEventHandler, ( gpointer ) UIToolkit::internal_getDefaultUIToolkit(), NULL ); //g_idle_add( GTKUIToolkit::internal_gdkIdleHandler, (gpointer)UIToolkit::getDefaultUIToolkit() ); return result;}void GTKApplication::terminateApp(){}void GTKApplication::setApplication( VCF::AbstractApplication* application ){ app_ = application;}ResourceBundle* GTKApplication::getResourceBundle(){ return NULL;}String GTKApplication::getFileName(){ String result; return result;}OSHandleID GTKApplication::getHandleID(){ return reinterpret_cast<OSHandleID>( handleID_ );}void GTKApplication::setHandleID( OSHandleID handleID ){ handleID_ = reinterpret_cast<long>( handleID );}/***CVS Log info*$Log$*Revision 1.3 2005/04/05 23:44:22 jabelardo*a lot of fixes to compile on linux, it does not run but at least it compile**Revision 1.2 2004/08/07 02:49:08 ddiego*merged in the devmain-0-6-5 branch to stable**Revision 1.1.2.2 2004/04/29 03:43:13 marcelloptr*reformatting of source files: macros and csvlog and copyright sections**Revision 1.1.2.1 2004/04/28 00:28:17 ddiego*migration towards new directory structure**Revision 1.7 2003/12/18 05:16:01 ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.6.2.1 2003/08/25 03:14:01 ddiego*adjusted the gtk peers to account for the new toolkit method names**Revision 1.6 2003/08/09 02:56:46 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.5.2.2 2003/06/01 16:44:00 ddiego*further GTK support added**Revision 1.5.2.1 2003/05/30 04:13:11 ddiego*added the commandLine class*changed the intialization functions for teh FoundationKit, GraphicsKit, and*ApplicationKit to take command line parameters*FoundationKit now allows you to retreive the commandline (it's stored)*start up has changed from appMain() to main()*added a custom GTK widget class for use in the various GTK peers - this will*allow us to specify absolute positioning and let the VCF handle layout*issues*Miscellaneous clean in various interfaces*removed the Rect, Point, and Size classes from the FoundationKit*and moved them to the GraphicsKit**Revision 1.5 2003/05/17 20:37:32 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.4.2.2 2003/04/19 03:31:15 ddiego*basic code in place for gtk port for ApplicationKit - needs to be tested in*linux**Revision 1.4.2.1 2003/04/17 04:29:51 ddiego*updated scintilla, added gtk support for the application kit, with stubs*for the basic peers.**/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?