⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simpleexgui.rss

📁 symbian下的几个小例子。。很值得学习
💻 RSS
字号:
// simpleExGui.rss
//
// Copyright (c) Symbian Software Ltd 1999 - 2007.  All rights reserved.
//
/*=====================================
   UIQ SimpleExGui Resource File   
=====================================*/

NAME SIMP

#include <eikon.rh> 
#include <qikon.rh>
#include <QikCommand.rh>
#include "SimpleEx.hrh"

// include the English strings

#include "SimpleExGui_en.rls"

RESOURCE RSS_SIGNATURE
    {
    }

RESOURCE TBUF r_default_document_name
    {
    buf="";
    }

RESOURCE EIK_APP_INFO
    {
    
    }

RESOURCE QIK_VIEW_CONFIGURATIONS r_simpleex_configurations
	{
	configurations = 
		{
		QIK_VIEW_CONFIGURATION
			{
			ui_config_mode = KQikPenStyleTouchPortrait;
			command_list = r_simpleex_commands;
                       view = r_simpleex_layout;
 
			},
		QIK_VIEW_CONFIGURATION
           		{
			ui_config_mode = KQikSoftkeyStyleSmallPortrait;
			command_list = r_simpleex_commands;
			}
		};
	}
RESOURCE QIK_VIEW r_simpleex_layout
	{
	pages = r_simpleex_layout_pages;
	}


// Defines the pages of a view. 
// Only one page for this example.

RESOURCE QIK_VIEW_PAGES r_simpleex_layout_pages
	{
	pages = 
		{
		QIK_VIEW_PAGE
			{
			page_id = ESimpleExViewPage;
			}
		};
	}


RESOURCE QIK_COMMAND_LIST r_simpleex_commands
	{
	items =
		{
		
		
		QIK_COMMAND
			{
			id = ESimpleExCommand;
			type = EQikCommandTypeScreen;
			text =STRING_r_gui_start;  
			},

                QIK_COMMAND
                       {
                         id = ESimpleExDialog;
			 type = EQikCommandTypeScreen;
                         text = STRING_r_gui_settings;  
                       },
   // This command is only visible in debug mode for finding memory leaks.  Exit is not in production UIQ code.

                QIK_COMMAND
			           {
			            id = EEikCmdExit;
                        type = EQikCommandTypeScreen;
			// Indicate that this command will only be visible in debug
			stateFlags = EQikCmdFlagDebugOnly;
			text = STRING_r_gui_exit;
			}

		};
	}

RESOURCE QIK_DIALOG r_Simpleex_dialog
    {
       title=STRING_r_dialog_title;  
       configurations = 
        {
        QIK_DIALOG_CONFIGURATION
            {
            ui_config_mode = KQikPenStyleTouchPortrait;
            container = r_simpleex_dialog_container;
            command_list = r_simpleex_dialog_commands;
            }
        };
       controls = r_simpleex_dialog_controls;
    }
RESOURCE QIK_COMMAND_LIST r_simpleex_dialog_commands
    {
    items=
        {
        QIK_COMMAND
        	{
        	id = EDialogDoneCmd;
        	type = EQikCommandTypeDone;
        	text = STRING_r_gui_done;
        	},
        QIK_COMMAND
		{
    		id = EDialogCancelCmd;
		type = EQikCommandTypeCancel;
		cpfFlags = EQikCpfFlagHardwarekeyOnly;
		}
		};
    }

// Defines the content of the simple dialog and how they are laid out. 
RESOURCE QIK_CONTAINER_SETTINGS r_simpleex_dialog_container
    {
    controls = 
        {

		QIK_CONTAINER_ITEM_CI_LI
			{
			type = EQikCtCaptionedOnelineBuildingBlock;
			control = r_dialogs_text_dialog_simpleex_building_block_text;
			},
		QIK_CONTAINER_ITEM_CI_LI
			{
			type = EQikCtCaptionedOnelineBuildingBlock;
			control = r_dialogs_text_dialog_simpleex_building_block_choice;
			}

        };
    }
    
//----------------------------------------------------
//---------- SIMPLE DIALOG: BUILDING BLOCK -----------
//----------------------------------------------------
// Building block that contains the label.
RESOURCE QIK_SYSTEM_BUILDING_BLOCK r_dialogs_text_dialog_simpleex_building_block_text
    {
    content =
        {
        QIK_SLOT_CONTENT 
			{ 
			slot_id = EQikItemSlot1; 
			caption = STRING_r_gui_text;
			},
		QIK_SLOT_CONTENT
			{
			slot_id = EQikItemSlot2;
            unique_handle=ESimpleExText;
			}

        };
    }

RESOURCE QIK_SYSTEM_BUILDING_BLOCK r_dialogs_text_dialog_simpleex_building_block_choice
{
    content =
        {
        QIK_SLOT_CONTENT 
	{ 
	   slot_id = EQikItemSlot1; 
	   caption = STRING_r_gui_color;
        },
	QIK_SLOT_CONTENT
	{
	   slot_id = EQikItemSlot2;
           unique_handle=ESimpleExColor;		}
        };
 }


RESOURCE QIK_CONTROL_COLLECTION r_simpleex_dialog_controls
    {
    items = 
        {
  
        QIK_CONTROL
            {
            unique_handle =ESimpleExText;
            type=EEikCtEdwin;
            control = r_dialog_edit;
            },

        QIK_CONTROL
         {
            type=EEikCtChoiceList; // Identifies, to the control factory, the type 
                                  // of control to construct.
            unique_handle=ESimpleExColor;
            control=r_dialog_choice;
         }
    
        };
    }

RESOURCE CHOICELIST r_dialog_choice
   {
        array_id=r_color_list; 
   }  
             
RESOURCE EDWIN r_dialog_edit
   {
	flags = EEikEdwinResizable;
	maxlength = 256;
   }

RESOURCE ARRAY r_color_list
{
	items=
		{
		LBUF { txt=STRING_r_gui_black; },
		LBUF { txt=STRING_r_gui_red; },
		LBUF { txt=STRING_r_gui_green; },
		LBUF { txt=STRING_r_gui_blue; }
		};
}

// Strings

RESOURCE TBUF r_example_text { buf = STRING_r_example_text; }
RESOURCE TBUF r_start_selected { buf = STRING_r_start_selected; }

⌨️ 快捷键说明

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