buildingblocks3.rss
来自「《UIQ 3 The Complete Guide》书的源代码」· RSS 代码 · 共 724 行 · 第 1/2 页
RSS
724 行
//
// BUILDINGBLOCKS3.RSS - UIQ BuildingBlocks3 Resource file
//
// Copyright (C) UIQ Technology AB, 2007
//
// This material is provided "as is" without any warranty to its performance or functionality.
// In no event shall UIQ Technology be liable for any damages whatsoever arising out of the
// use or inabilty to use this material.
//
NAME BBK2
#include <eikon.rh>
#include <eikon.rsg>
#include <qikon.rh>
#include <qikon.hrh>
#include <uikon.rh>
#include <uikon.hrh>
#include <QikCommand.rh>
#include <QikListBox.rh>
#include <QikListBoxStandardLayouts.hrh>
#include "BuildingBlocks3.hrh"
#include <BuildingBlocks3.mbg>
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE RSS_SIGNATURE { }
// Default file name - if no file in existance
RESOURCE TBUF16 { buf=""; }
RESOURCE EIK_APP_INFO { }
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE QIK_VIEW_CONFIGURATIONS r_app_view_configurations
{
configurations =
{
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
command_list = r_application_commands;
view = r_application_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchLandscape;
command_list = r_application_commands;
view = r_application_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
command_list = r_application_commands;
view = r_application_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallPortrait;
command_list = r_application_commands;
view = r_application_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallLandscape;
command_list = r_application_commands;
view = r_application_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleTouchPortrait;
command_list = r_application_commands;
view = r_application_view;
}
};
}
//////////////////////////////////////////////////////////////////
// Application wide commands
RESOURCE QIK_COMMAND_LIST r_application_commands
{
items=
{
QIK_COMMAND
{
id = EAppCmdInfo;
type = EQikCommandTypeScreen;
groupId = EAppCmdMiscGroup;
priority = EAppCmdInfoPriority;
text = "Info";
}
};
}
//////////////////////////////////////////////////////////////////
// Define the view to contain a set of pages
RESOURCE QIK_VIEW r_application_view
{
pages = r_application_view_pages;
}
// Defines the pages of a view
RESOURCE QIK_VIEW_PAGES r_application_view_pages
{
pages =
{
QIK_VIEW_PAGE
{
page_id = EAppSpecificPageId1;
tab_bmpid = EMbmBuildingblocks3Tab1;
tab_bmpmaskid = EMbmBuildingblocks3Tab1mask;
container_type = EQikCtScrollableContainer;
container = r_page_container;
page_content = r_page1_control;
},
QIK_VIEW_PAGE
{
page_id = EAppSpecificPageId2;
tab_bmpid = EMbmBuildingblocks3Tab2;
tab_bmpmaskid = EMbmBuildingblocks3Tab2mask;
container_type = EQikCtScrollableContainer;
container = r_page_container;
page_content = r_page2_control;
},
QIK_VIEW_PAGE
{
page_id = EAppSpecificPageId3;
tab_bmpid = EMbmBuildingblocks3Tab3;
tab_bmpmaskid = EMbmBuildingblocks3Tab3mask;
container_type = EQikCtScrollableContainer;
container = r_page_container;
page_content = r_page3_control;
}
};
}
////////////////////////////////////////////////////////////////////
// we want the controls to scroll on screen, so we can get at all of them
RESOURCE QIK_SCROLLABLE_CONTAINER r_page_container
{
// uses the default settings for a scrollable container
}
////////////////////////////////////////////////////////////////////
RESOURCE QIK_CONTAINER_SETTINGS r_page1_control
{
controls =
{
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtIconOnelineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikIconSlot1;
type = EEikCtImage;
control = IMAGE
{
bmpfile="*";
bmpid=EMbmBuildingblocks3Icon0;
bmpmask=EMbmBuildingblocks3Icon0mask;
};
},
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot1;
type = EEikCtChoiceList;
itemflags = EQikCtrlFlagIsFocusing;
control = CHOICELIST
{
array_id = r_page1_choicelist_array;
};
}
};
};
},
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtCaptionedOnelineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT
{
slot_id = EQikItemSlot1;
caption = "App generated list";
},
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot2;
type = EEikCtChoiceList;
itemflags = EQikCtrlFlagIsFocusing;
// a choice list configured from app specific content
unique_handle = EAppChoiceList1;
control = CHOICELIST
{
};
}
};
};
},
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtHalflineHalflineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT
{
slot_id = EQikItemSlot1;
caption = "Choose";
},
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot2;
type = EEikCtChoiceList;
itemflags = EQikCtrlFlagIsFocusing;
// a choice list configured from app specific content
unique_handle = EAppChoiceList2;
control = CHOICELIST
{
};
}
};
};
},
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtHalflineHalflineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT
{
slot_id = EQikItemSlot1;
caption = "ChkBox";
},
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot2;
type = EEikCtCheckBox;
// a 1/2 line ckkbox
unique_handle = EAppCheckbox1;
control = CHECKBOX
{
};
}
};
};
},
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtHalflineHalflineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT
{
slot_id = EQikItemSlot1;
caption = "Slider";
},
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot2;
type = EQikCtSlider;
// a 1/2 line slider
unique_handle = EAppSlider1;
control = QIK_SLIDER
{
min_value = 3;
max_value = 33;
num_markers = 6;
flags=EQikSliderSnapToMarker;
};
}
};
};
},
// shows putting a button on the page is entirely possible
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtHalflineHalflineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT
{
slot_id = EQikItemSlot1;
caption = "Press";
},
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot2;
type = EEikCtCommandButton;
// a 1/2 line button
unique_handle = EAppButton1;
control = CMBUT
{
txt= "Button";
};
}
};
};
}
};
}
RESOURCE ARRAY r_page1_choicelist_array
{
items=
{
LBUF {txt="Choice 1";},
LBUF {txt="Choice 2";},
LBUF {txt="Choice 3";}
};
}
////////////////////////////////////////////////////////////////////
RESOURCE QIK_CONTAINER_SETTINGS r_page2_control
{
controls =
{
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtCaptionedOnelineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
flags = EQikBuildingBlockDividerBelow;
content =
{
QIK_SLOT_CONTENT
{
slot_id = EQikItemSlot1;
caption = "Editor title";
},
QIK_SLOT_CONTENT_DIRECT
{
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?