categories.rss
来自「《UIQ 3 The Complete Guide》书的源代码」· RSS 代码 · 共 310 行
RSS
310 行
//
// CATEGORIES.RSS - UIQ Categories 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 CAT1
#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 <QikCategory.hrh>
#include "Categories.hrh"
#include <Categories.mbg>
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF16 { buf=""; }
RESOURCE EIK_APP_INFO { }
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE QIK_VIEW_CONFIGURATIONS r_list_view_configurations
{
configurations =
{
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
command_list = r_list_view_commands;
view = r_list_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchLandscape;
command_list = r_list_view_commands;
view = r_list_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
command_list = r_list_view_commands;
view = r_list_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallPortrait;
command_list = r_list_view_commands;
view = r_list_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallLandscape;
command_list = r_list_view_commands;
view = r_list_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleTouchPortrait;
command_list = r_list_view_commands;
view = r_list_view_view;
}
};
}
//////////////////////////////////////////////////////////////////
// these commands are defined to be available for ALL views
RESOURCE QIK_COMMAND_LIST r_list_view_commands
{
items=
{
QIK_COMMAND
{
id = EAppCmdAbout;
type = EQikCommandTypeScreen;
groupId = EAppCmdMiscGroup;
priority = EAppCmdAboutPriority;
text = "About";
},
QIK_COMMAND
{
id = EAppCmdEditCategories;
type = EQikCommandTypeCategory;
groupId = EQikCommandGroupIdAfterCategoryCommands;
text = "Edit categories";
}
};
}
//////////////////////////////////////////////////////////////////
// Define the view to contain a set of pages
RESOURCE QIK_VIEW r_list_view_view
{
pages = r_list_view_pages;
}
// Defines the pages of a view.
RESOURCE QIK_VIEW_PAGES r_list_view_pages
{
pages =
{
QIK_VIEW_PAGE
{
page_id = EAppSpecificListViewPageId1;
page_content = r_list_view_page1_control;
}
};
}
////////////////////////////////////////////////////////////////////
// Both pages contain a single row based list box
RESOURCE QIK_CONTAINER_SETTINGS r_list_view_page1_control
{
layout_manager_type = EQikRowLayoutManager;
layout_manager = r_row_layout_manager_default;
controls =
{
QIK_CONTAINER_ITEM_CI_LI
{
unique_handle = EAppSpecificListViewListId1;
type = EQikCtListBox;
control = r_app_listview_listbox;
layout_data = r_row_layout_data_fill;
}
};
}
RESOURCE QIK_ROW_LAYOUT_DATA r_row_layout_data_fill
{
vertical_alignment = EQikLayoutVAlignFill;
vertical_excess_grab_weight = 1;
}
////////////////////////////////////////////////////////////////////
//// List box controls
RESOURCE QIK_LISTBOX r_app_listview_listbox
{
view = r_app_listview_listbox_view_default;
layouts = { r_app_listview_normal_layout_pair };
}
RESOURCE QIK_LISTBOX_ROW_VIEW r_app_listview_listbox_view_default
{
}
RESOURCE QIK_LISTBOX_LAYOUT_PAIR r_app_listview_normal_layout_pair
{
standard_normal_layout = EQikListBoxLine;
}
//////////////////////////////////////////////////////////////////////
// Layout Managers - uses the default settings for the row layout handling
RESOURCE QIK_ROW_LAYOUT_MANAGER r_row_layout_manager_default
{
default_layout_data = QIK_ROW_LAYOUT_DATA {};
}
//////////////////////////////////////////////////////////////////////
RESOURCE ARRAY r_app_categories
{
items=
{
QIK_CATEGORY
{
name = "All";
flags = EQikCategoryCantBeRenamed | EQikCategoryCantBeDeleted | EQikCategoryAll;
handle = EAppCategoryAll;
},
QIK_CATEGORY
{
name = "Unfiled";
flags = EQikCategoryCantBeRenamed | EQikCategoryCantBeDeleted | EQikCategoryUnfiled;
handle = EAppCategoryUnfiled;
},
// This app chooses to define this category as one that cannot be deleted
QIK_CATEGORY
{
name = "Australasian";
flags = EQikCategoryCantBeDeleted;
handle = EAppCategoryAustralasian;
},
// This app chooses to define this category as one that cannot be renamed
QIK_CATEGORY
{
name = "Asian";
flags = EQikCategoryCantBeRenamed;
handle = EAppCategoryAsian;
},
QIK_CATEGORY
{
name = "European";
flags = 0;
handle = EAppCategoryEuropean;
}
};
}
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE QIK_DIALOG r_about_dialog
{
title = "About categories";
configurations =
{
QIK_DIALOG_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
container = r_about_container;
command_list = r_about_commands;
},
QIK_DIALOG_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchLandscape;
container = r_about_container;
command_list = r_about_commands;
},
QIK_DIALOG_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleTouchPortrait;
container = r_about_container;
command_list = r_about_commands;
},
QIK_DIALOG_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
container = r_about_container;
command_list = r_about_commands;
},
QIK_DIALOG_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallPortrait;
container = r_about_container;
command_list = r_about_commands;
}
};
}
RESOURCE QIK_COMMAND_LIST r_about_commands
{
items=
{
QIK_COMMAND
{
id = EAppCmdContinue;
type = EQikCommandTypeDone;
text = "Continue";
}
};
}
RESOURCE QIK_CONTAINER_SETTINGS r_about_container
{
controls =
{
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtOnelineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
content =
{
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot1;
type = EEikCtLabel;
unique_handle = EAppLabel1;
control = LABEL
{
standard_font = EEikLabelFontAnnotation;
horiz_align=EEikLabelAlignHCenter;
txt = "";
};
}
};
};
},
QIK_CONTAINER_ITEM_CD_LI
{
type = EQikCtOnelineBuildingBlock;
control = QIK_SYSTEM_BUILDING_BLOCK
{
content =
{
QIK_SLOT_CONTENT_DIRECT
{
slot_id = EQikItemSlot1;
type = EEikCtLabel;
control = LABEL
{
standard_font = EEikLabelFontAnnotation;
horiz_align=EEikLabelAlignHCenter;
txt="
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?