osxmenubar.cpp

来自「这是VCF框架的代码」· C++ 代码 · 共 70 行

CPP
70
字号
//OSXMenuBar.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/OSXMenuBar.h"#include "vcf/ApplicationKit/MenuItemPeer.h"using namespace VCF;OSXMenuBar::OSXMenuBar(  MenuBar* menuBar  ){	frame_ = NULL;	this->menuRoot_ = menuBar->getRootMenuItem();}OSXMenuBar::~OSXMenuBar(){}void OSXMenuBar::setFrame( Frame* frame ){		Frame* oldFrame = frame_;	frame_ = frame;	if ( (NULL != frame_) && (NULL != menuRoot_) ){			}	else if ( NULL == frame_ && NULL != oldFrame ) {				}}void OSXMenuBar::update(){	if ( (NULL != frame_) && (NULL != menuRoot_) ){		ControlPeer* Peer = frame_->getPeer();			}}void OSXMenuBar::setMenuItems( MenuItem* item ){	menuRoot_ = item;}/***CVS Log info*$Log$*Revision 1.2  2004/12/01 04:31:37  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.1.2.1  2004/11/10 06:16:40  ddiego*started adding osx menu code**/

⌨️ 快捷键说明

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