drawing.rss
来自「Symbian OS C++ for Mobile Phones v3 Exam」· RSS 代码 · 共 146 行
RSS
146 行
// Drawing.rss
//
// Copyright (c) 2002 - 2007 Symbian Software Ltd. All rights reserved.
//
#include <eikon.rh>
#include <eikon.rsg>
#include <qikon.rh>
#include <qikon.hrh>
#include <uikon.rh>
#include <uikon.hrh>
#include <QikCommand.rh>
#include "Drawing.hrh"
NAME HEWO
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf=""; }
RESOURCE EIK_APP_INFO { }
//----------------------------------------------------
//-------------- CONFIGURATION FOR VIEW --------------
//----------------------------------------------------
// A view shall use the QIK_VIEW_CONFIGURATIONS resource struct to define which
// UI configurations it supports. Can also use QIK_VIEW_CONFIGURATIONS to setup
// the view to switch layout and command list automatically when changes of UI
// configuration occur. This is done with the view and command_list members of
// the QIK_VIEW_CONFIGURATIONS.
RESOURCE QIK_VIEW_CONFIGURATIONS r_example_ui_configurations
{
configurations =
{
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
command_list = r_example_portrait_commands;
view = r_example_layout;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
command_list = r_example_portrait_commands;
view = r_example_layout;
}
};
}
//----------------------------------------------------
//------------------ VIEW COMMANDS -------------------
//----------------------------------------------------
// Commands are defined with the QIK_COMMAND_LIST struct,
// commands can also be created in code by instantiating CQikCommand.
// The control command id for debug command is a reserved id from uikon.hrh.
// The id for each infoprint command is defined in the OandX.hrh file.
// The string for each command is defined in the OandX.rls file,
// due to localisation.
RESOURCE QIK_COMMAND_LIST r_example_portrait_commands
{
items =
{
// The first command is only visible in debug mode.
QIK_COMMAND
{
id = EEikCmdExit;
type = EQikCommandTypeScreen;
// Indicate that this command will only be visible in debug
stateFlags = EQikCmdFlagDebugOnly;
text = "Exit";
},
QIK_COMMAND
{
id = EEikCmdZoomIn;
type = EQikCommandTypeScreen;
text = "Zoom In";
},
QIK_COMMAND
{
id = EEikCmdZoomOut;
type = EQikCommandTypeScreen;
text = "Zoom Out";
},
QIK_COMMAND
{
id = EExampleCmd1;
type = EQikCommandTypeScreen;
text = "Command 1";
},
QIK_COMMAND
{
id = EExampleCmd2;
type = EQikCommandTypeScreen;
text = "Command 2";
},
QIK_COMMAND
{
id = EExampleCmd3;
type = EQikCommandTypeScreen;
text = "Command 3";
},
QIK_COMMAND
{
id = EExampleCmd4;
type = EQikCommandTypeScreen;
text = "Command 4";
}
};
}
//----------------------------------------------------
//------------------- VIEW LAYOUT --------------------
//----------------------------------------------------
// Defines the view by linking to the pages.
RESOURCE QIK_VIEW r_example_layout
{
pages = r_example_layout_pages;
}
// Defines the pages of a view.
// In OandX there only exists one page for the label to be displayed in.
RESOURCE QIK_VIEW_PAGES r_example_layout_pages
{
pages =
{
QIK_VIEW_PAGE
{
page_id = EExampleViewPage;
// Page constructed entirely in code
}
};
}
//----------------------------------------------------
//------------------ TEXT CONSTANTS ------------------
//----------------------------------------------------
RESOURCE TBUF r_example_text_hello_world { buf="Hello world!"; }
RESOURCE TBUF r_example_text_cmd1 { buf="Command 1"; }
RESOURCE TBUF r_example_text_cmd2 { buf="Command 2"; }
RESOURCE TBUF r_example_text_cmd3 { buf="Command 3"; }
RESOURCE TBUF r_example_text_cmd4 { buf="Command 4"; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?