bossioui.cpp

来自「Symbian C++ scmp.zip」· C++ 代码 · 共 47 行

CPP
47
字号
// bossioappui.cpp
//
// Copyright (c) 2002-2003 Symbian Ltd.  All rights reserved.
//

#include "bossioappui.h"
#include "bossiodoc.h"
#include "bosswriter.h"

void CBossIOAppUi::ConstructL()
  {
  CQikAppUi::ConstructL();
  iAppView = CBossIOAppView::NewL(ClientRect());
  }

CBossIOAppUi::~CBossIOAppUi()
  {
  delete iAppView;
  }

void CBossIOAppUi::HandleCommandL(TInt aCommand)
  {
  switch (aCommand)
    {
    case EBossIOGuiCmdWrite:
		{
		iEikonEnv->InfoMsg(R_BOSSIOGUI_TEXT_ITEM0);
		CBossWriter* writer=new (ELeave) CBossWriter;
		writer->ExecuteLD(KTxtBossFileName);
		}
	break;

    case EBossIOGuiCmd1:
		iEikonEnv->InfoMsg(R_BOSSIOGUI_TEXT_ITEM1);
      break;

    case EBossIOGuiCmd2:
		iEikonEnv->InfoMsg(R_BOSSIOGUI_TEXT_ITEM2);
      break;
		// Exit the application. The call is
		// implemented by the UI framework.
    case EEikCmdExit: 
		Exit();
      break;
    }
  }

⌨️ 快捷键说明

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