gtkuitoolkit.cpp
来自「这是VCF框架的代码」· C++ 代码 · 共 1,444 行 · 第 1/3 页
CPP
1,444 行
result = VCF::vkNumber2; } break; case GDK_3 : case GDK_KP_3 : { result = VCF::vkNumber3; } break; case GDK_4 : case GDK_KP_4 : { result = VCF::vkNumber4; } break; case GDK_5 : case GDK_KP_5 : { result = VCF::vkNumber5; } break; case GDK_6 : case GDK_KP_6 : { result = VCF::vkNumber6; } break; case GDK_7 : case GDK_KP_7 : { result = VCF::vkNumber7; } break; case GDK_8 : case GDK_KP_8 : { result = VCF::vkNumber8; } break; case GDK_9 : case GDK_KP_9 : { result = VCF::vkNumber9; } break; case GDK_a : case GDK_A : { result = VCF::vkLetterA; } break; case GDK_b : case GDK_B : { result = VCF::vkLetterB; } break; case GDK_c : case GDK_C : { result = VCF::vkLetterC; } break; case GDK_d : case GDK_D : { result = VCF::vkLetterD; } break; case GDK_e : case GDK_E : { result = VCF::vkLetterE; } break; case GDK_f : case GDK_F : { result = VCF::vkLetterF; } break; case GDK_g : case GDK_G : { result = VCF::vkLetterG; } break; case GDK_h : case GDK_H : { result = VCF::vkLetterH; } break; case GDK_i : case GDK_I : { result = VCF::vkLetterI; } break; case GDK_j : case GDK_J : { result = VCF::vkLetterJ; } break; case GDK_k : case GDK_K : { result = VCF::vkLetterK; } break; case GDK_l : case GDK_L : { result = VCF::vkLetterL; } break; case GDK_m : case GDK_M : { result = VCF::vkLetterM; } break; case GDK_n : case GDK_N : { result = VCF::vkLetterN; } break; case GDK_o : case GDK_O : { result = VCF::vkLetterO; } break; case GDK_p : case GDK_P : { result = VCF::vkLetterP; } break; case GDK_q : case GDK_Q : { result = VCF::vkLetterQ; } break; case GDK_r : case GDK_R : { result = VCF::vkLetterR; } break; case GDK_s : case GDK_S : { result = VCF::vkLetterS; } break; case GDK_t : case GDK_T : { result = VCF::vkLetterT; } break; case GDK_u : case GDK_U : { result = VCF::vkLetterU; } break; case GDK_v : case GDK_V : { result = VCF::vkLetterV; } break; case GDK_w : case GDK_W : { result = VCF::vkLetterW; } break; case GDK_x : case GDK_X : { result = VCF::vkLetterX; } break; case GDK_y : case GDK_Y : { result = VCF::vkLetterY; } break; case GDK_z : case GDK_Z : { result = VCF::vkLetterZ; } break; case GDK_Print : { result = VCF::vkPrintScreen; } break; case GDK_Pause : { result = VCF::vkPause; } break; case GDK_Scroll_Lock : { result = VCF::vkScrollLock; } break; case GDK_KP_Multiply : case GDK_multiply : { result = VCF::vkMultiplySign; } break; case GDK_plus : case GDK_KP_Add : { result = VCF::vkPlusSign; } break; case GDK_minus : case GDK_KP_Subtract : { result = VCF::vkMinusSign; } break; case GDK_period : case GDK_KP_Decimal : { result = VCF::vkPeriod; } break; case GDK_slash : case GDK_KP_Divide : { result = VCF::vkDivideSign; } break; case GDK_backslash : { result = VCF::vkBackSlash; } break; case GDK_bracketleft : { result = VCF::vkOpenBracket; } break; case GDK_braceleft : { result = VCF::vkOpenBrace; } break; case GDK_bracketright : { result = VCF::vkCloseBracket; } break; case GDK_braceright : { result = VCF::vkCloseBrace; } break; case GDK_semicolon : { result = VCF::vkSemiColon; } break; case GDK_colon : { result = VCF::vkColon; } break; case GDK_quoteright : case GDK_quoteleft : { result = VCF::vkSingleQuote; } break; case GDK_quotedbl : { result = VCF::vkDoubleQuote; } break; case GDK_comma : { result = VCF::vkComma; } break; case GDK_less : { result = VCF::vkLessThan; } break; case GDK_greater : { result = VCF::vkGreaterThan; } break; case GDK_question : { result = VCF::vkQuestionMark; } break; } return result;}ulong32 GTKUIToolkit::translateButtonMask( GdkModifierType buttonState ){ ulong32 result = 0; if ( buttonState & GDK_BUTTON1_MASK ) { result |= VCF::mbmLeftButton; } if ( buttonState & GDK_BUTTON2_MASK ) { result |= VCF::mbmMiddleButton; } if ( buttonState & GDK_BUTTON3_MASK ) { result |= VCF::mbmRightButton; } return result;}ulong32 GTKUIToolkit::translateKeyMask( GdkModifierType keyState ){ ulong32 result = VCF::kmUndefined; if ( keyState & GDK_SHIFT_MASK ) { result |= VCF::kmShift; } if ( keyState & GDK_CONTROL_MASK ) { result |= VCF::kmCtrl; } if ( keyState & GDK_MOD1_MASK ) { result |= VCF::kmAlt; } return result;}GraphicsResourceBundlePeer*GTKUIToolkit::internal_createGraphicsResourceBundlePeer( AbstractApplication* app ){ return 0;}SystemTrayPeer* GTKUIToolkit::internal_createSystemTrayPeer(){ return 0;}/***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.8 2004/04/03 15:48:46 ddiego*Merged over code from the 0-6-3 branch.**Revision 1.7 2004/01/20 01:54:56 ddiego*merged some more changes from dev branch, primarily changes to*teh RTTI API so that we now process enum sets correctly (i.e. a long*that is a mask made of enum values).**Revision 1.4.2.1 2004/01/11 19:57:54 ddiego*implemented the following tasks:*79267 Change Class class to NOT inherit from Object*79268 Change Property class to NOT inherit from Object*79269 Change ClassRegistry class to NOT inherit from Object*79270 Change Method class to NOT inherit from Object*91983 Add a Field class for rtti*plus created a new include/rtti and src/rtti directories and moved the*various rtti related code to the appropriate directories**Revision 1.4 2003/12/18 05:16:01 ddiego*merge from devmain-0-6-2 branch into the stable branch**Revision 1.3.2.2 2003/11/01 20:35:23 ddiego*added GTKToolbar class impl - no real functionality at this point**Revision 1.3.2.1 2003/08/25 03:14:01 ddiego*adjusted the gtk peers to account for the new toolkit method names**Revision 1.3 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.2.2.4 2003/07/14 22:52:53 ddiego*added further GTK support. Fixed some sevent handling issues. Added the*peer for the CommandButton, and basic text widget support (both multiline and*single line) and the file open common dialog peer as well.**Revision 1.2.2.3 2003/07/10 04:55:16 ddiego*added more stuff to GTK port - fixed some issues with events, and*added support for posting events, and the stubs for a ButtonPeer**Revision 1.2.2.2 2003/07/09 03:53:18 ddiego*some fixes to gtk port**Revision 1.2.2.1 2003/06/01 16:44:00 ddiego*further GTK support added**Revision 1.2 2003/05/17 20:37:33 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.4 2003/04/23 03:42:54 ddiego*further gtk dev got basic eventing code in place**Revision 1.1.2.3 2003/04/19 22:22:56 ddiego*tested the code developed in windows using gtk in linux. Seems to work ok except for a*few minor compiler glitches. Had to comment out the partial specialization for*floating point image bits in include/graphics/ImageBits.h. Also made some*adjustments in the makefiles for building the GraphicsKit and ApplicationKit*from the build/make/Makefile.**Revision 1.1.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.1.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 + -
显示快捷键?