📄 layoutmanager1.rss
字号:
//
// LAYOUTMANAGER1.RSS - UIQ LayoutManager1 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 LYM1
#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 "LayoutManager1.hrh"
#include <LayoutManager1.mbg>
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE RSS_SIGNATURE { }
// Default file name - if no file in existance
RESOURCE TBUF16 { buf=""; }
RESOURCE EIK_APP_INFO { }
////////////////////////////////////////////////////////////////////////////////////////
// In this example we are able to have the same view and command set for all configurations
RESOURCE QIK_VIEW_CONFIGURATIONS r_list_view_configurations
{
configurations =
{
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchPortrait;
command_list = r_list_view_commands;
view = r_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikPenStyleTouchLandscape;
command_list = r_list_view_commands;
view = r_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStylePortrait;
command_list = r_list_view_commands;
view = r_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallPortrait;
command_list = r_list_view_commands;
view = r_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleSmallLandscape;
command_list = r_list_view_commands;
view = r_view_view;
},
QIK_VIEW_CONFIGURATION
{
ui_config_mode = KQikSoftkeyStyleTouchPortrait;
command_list = r_list_view_commands;
view = r_view_view;
}
};
}
//////////////////////////////////////////////////////////////////
// Currently we only support a single command.
RESOURCE QIK_COMMAND_LIST r_list_view_commands
{
items=
{
QIK_COMMAND
{
id = EAppCmdAbout;
type = EQikCommandTypeScreen;
groupId = EAppCmdMiscGroup;
priority = EAppCmdAboutPriority;
text = "About";
}
};
}
//////////////////////////////////////////////////////////////////
// Define the view to contain a set of pages
RESOURCE QIK_VIEW r_view_view
{
pages = r_view_pages;
}
// Defines the pages of a view
RESOURCE QIK_VIEW_PAGES r_view_pages
{
pages =
{
QIK_VIEW_PAGE
{
page_id = EAppSpecificListViewPageId1;
tab_bmpid = EMbmLayoutmanager1Tab1;
tab_bmpmaskid = EMbmLayoutmanager1Tab1mask;
page_content = r_page1_control;
},
QIK_VIEW_PAGE
{
page_id = EAppSpecificListViewPageId2;
tab_bmpid = EMbmLayoutmanager1Tab2;
tab_bmpmaskid = EMbmLayoutmanager1Tab2mask;
page_content = r_page2_control;
}
};
}
////////////////////////////////////////////////////////////////////
// This is the same as ListView1 list box
RESOURCE QIK_CONTAINER_SETTINGS r_page1_control
{
layout_manager_type = EQikGridLayoutManager;
layout_manager = r_grid_layout_manager;
controls =
{
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId1;
type = EEikCtLabel;
control = LABEL
{
txt="Long Label 1";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId2;
type = EEikCtImage;
control = IMAGE
{
bmpfile="*";
bmpid=EMbmLayoutmanager1Largeicon0;
bmpmask=EMbmLayoutmanager1Largeicon0mask;
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId3;
type = EEikCtLabel;
control = LABEL
{
txt="Long Label 2";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId4;
type = EEikCtLabel;
control = LABEL
{
txt="Label 3";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId5;
type = EEikCtLabel;
control = LABEL
{
txt="Label 4";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId6;
type = EEikCtImage;
control = IMAGE
{
bmpfile="*";
bmpid=EMbmLayoutmanager1Largeicon1;
bmpmask=EMbmLayoutmanager1Largeicon1mask;
};
}
};
}
//////////////////////////////////////////////////////////////////////
RESOURCE QIK_GRID_LAYOUT_MANAGER r_grid_layout_manager
{
// this app has decided to have 3 columns
columns = 3;
default_layout_data = QIK_GRID_LAYOUT_DATA
{
// centre items in the grid
horizontal_alignment = EQikLayoutHAlignCenter;
};
}
////////////////////////////////////////////////////////////////////
RESOURCE QIK_CONTAINER_SETTINGS r_page2_control
{
layout_manager_type = EQikRowLayoutManager;
layout_manager = r_row_layout_manager;
controls =
{
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId1;
type = EEikCtLabel;
control = LABEL
{
txt="Long Label 1";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId2;
type = EEikCtImage;
control = IMAGE
{
bmpfile="*";
bmpid=EMbmLayoutmanager1Largeicon0;
bmpmask=EMbmLayoutmanager1Largeicon0mask;
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId3;
type = EEikCtLabel;
control = LABEL
{
txt="Long Label 2";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId4;
type = EEikCtLabel;
control = LABEL
{
txt="Label 3";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId5;
type = EEikCtLabel;
control = LABEL
{
txt="Label 4";
};
},
QIK_CONTAINER_ITEM_CD_LI
{
unique_handle = EAppSpecificControlId6;
type = EEikCtImage;
control = IMAGE
{
bmpfile="*";
bmpid=EMbmLayoutmanager1Largeicon1;
bmpmask=EMbmLayoutmanager1Largeicon1mask;
};
}
};
}
//////////////////////////////////////////////////////////////////////
RESOURCE QIK_ROW_LAYOUT_MANAGER r_row_layout_manager
{
default_layout_data = QIK_ROW_LAYOUT_DATA
{
// align the items to the centre of the display region
horizontal_alignment = EQikLayoutHAlignCenter;
// have 8 pixels to left so item not on edge of display region
left_margin= 8;
};
}
////////////////////////////////////////////////////////////////////////////////////////
RESOURCE TBUF r_str_list_title { buf="Layout 1";}
RESOURCE TBUF r_str_help_title { buf="Layout Manager";}
RESOURCE TBUF r_str_help_text { buf="Version 1.0";}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -