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

📄 taskmgr.rss

📁 this is the task manging program in the symbian
💻 RSS
字号:
/* Copyright (c) 2003, Nokia. All rights reserved */

NAME TASK

#include <eikon.rh>
#include <avkon.rsg>
#include <avkon.rh>



/*#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
*/
#include "taskmgr.hrh"

//for memory selection dialog
//file selection dialog
//#include <Commondialogs.hrh>
//#include <Commondialogs.rh>



// ---------------------------------------------------------
//   
//    Define the resource file signature 
//    This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
    {
    }



// ---------------------------------------------------------
//   
//    Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_default_document_name
    {
    buf="";
    }

// ---------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ---------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    menubar = r_taskmgr_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// ---------------------------------------------------------
//   
//   r_taskmgr_menubar
//   Menubar for taskmgr example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_taskmgr_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_taskmgr_menu;
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_taskmgr_menu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_taskmgr_menu
    {
    items = 
        {
        MENU_ITEM//refresh list
            {
            command = EtaskmgrRefreshListCmd;
            txt = "Refresh List";
            },
        MENU_ITEM//refresh list
            {
            command = EtaskmgrSwitchListCmd;
            txt = "Switch List";
		    flags = EEikMenuItemSeparatorAfter; 
            },
	MENU_ITEM
	{
		command = EtaskmgrMainTaskCmd; 
		txt = "Task..";
	        cascade = r_taskmgr_task_options_sub_menu;
	},
	MENU_ITEM
	{
		command = EtaskmgrMainProcessCmd; 
		txt = "Process..";
	        cascade = r_taskmgr_process_options_sub_menu;
	},
	MENU_ITEM
	{
		command = EtaskmgrMainMiscCmd; 
		txt = "Misc..";
	        cascade = r_taskmgr_misc_options_sub_menu;
		flags = EEikMenuItemSeparatorAfter; 
	},
	MENU_ITEM
	{
		command = EtaskmgrMainAboutCmd; 
		txt = "About";
	},
       MENU_ITEM
            {
            command = EAknSoftkeyExit;
            txt = "Exit";
            }
        };
}


RESOURCE MENU_PANE r_taskmgr_process_options_sub_menu
{
    items = 
        {
	    MENU_ITEM//process list
            {
            command = EtaskmgrProcessListCmd;
            txt = "Process List";
            },
/*JKJK Process info gives out "Kern Exec 0" - I have no idea Why -- Joonas Kekoni */
	    MENU_ITEM//process info
            {
            command = EtaskmgrProcessInfoCmd;
            txt = "Pinfo,not in S60v1"; //Process Info";
            },            
	    MENU_ITEM//kill process
            {
            command = EtaskmgrKillProcessCmd;
            txt = "Kill Process";
            }
	};
}


RESOURCE MENU_PANE r_taskmgr_task_options_sub_menu
{
    items = 
        {
        MENU_ITEM//task list
            {
            command = EtaskmgrTaskListCmd;
            txt = "Task List";
            },
        MENU_ITEM//switch to
            {
            command = EtaskmgrSwitchToCmd;
            txt = "Switch To App";
            },
        MENU_ITEM
            {
            command = EtaskmgrKillTaskCmd;
            txt = "Kill Task";
            },
        MENU_ITEM
            {
            command = EtaskmgrTaskInfoCmd;
            txt = "Task Info";
            }
	};
}

RESOURCE MENU_PANE r_taskmgr_misc_options_sub_menu
{
    items = 
        {
        MENU_ITEM
            {
            command = EtaskmgrRunTaskCmd;
            txt = "Run..";
            },
        MENU_ITEM
            {
            command = EtaskmgrCompressMemCmd;
            txt = "Compress RAM";
            },
/*        MENU_ITEM
            {
            command = EtaskmgrChangeWPaperCmd;
            txt = "Change Wallpaper..";
            },*/
        MENU_ITEM
            {
            command = EtaskmgrSysInfoCmd;
            txt = "System Info";
            },
        MENU_ITEM
            {
            command = EtaskmgrRestartCmd;
            txt = "Restart Device";
            }
	};
}

    

#define AKNEXQUERY_ONELINE_DATAQUERY_LINES 1
#define AKNEXQUERY_EDWIN_WIDTH 5
#define AKNEXQUERY_EDWIN_LINES 5
#define AKNEXQUERY_EDWIN_MAXLENGTH 512
#define AKNEXQUERY_EDWIN_SHORT_MAXLENGTH 8
    
    
 RESOURCE DIALOG r_aknexquery_oneline_data_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
        {
        DLG_LINE
            {
            type = EAknCtQuery;
            id = EGeneralQuery;
            control = AVKON_DATA_QUERY
                {
                layout = EStaticSizeDataLayout; // EDataLayout;
                label = "Process Path Name : ";
                control = EDWIN
                    {
                    flags = EEikEdwinNoHorizScrolling;// | EEikEdwinResizable;
                    width = AKNEXQUERY_EDWIN_WIDTH;
                    //lines = AKNEXQUERY_ONELINE_DATAQUERY_LINES;
                    maxlength = AKNEXQUERY_EDWIN_MAXLENGTH;
                    // added to limit expanding in forms. 
                    // If you want full screen use 6 here
                    max_view_height_in_lines = AKNEXQUERY_ONELINE_DATAQUERY_LINES; // 6; 
                    // if you have the line above, you must have this. 
                    // It's calculable from LAF
                    base_line_delta = 21; 
                    };
                };
            }
        };
    }

RESOURCE TBUF r_system_info
{
	//"Manufacturer : Nokia;-)\n/*IMEI Number : %d\n*/Device Family : %S\nCPU Specs : %S \nCPU ABI : %S\nStartup Reason : %S \nTick Period : %d \nTotal RAM size : %d kb\nFree RAM size : %d kb\nTotal ROM size : %d kb\nPage size : %d bytes\n/*Battery strength : %d%%\n Network Signal : %d %%\nCharger Status : %S\nFirmware version : %S\n*/";
	buf = "Manufacturer : Nokia;-)\nDevice Family : %S\nCPU Specs : %S \nCPU ABI : %S\nStartup Reason : %S \nTick Period : %d \nTotal RAM size : %d kb\nFree RAM size : %d kb\nTotal ROM size : %d kb\nPage size : %d bytes\n";
} 

RESOURCE TBUF r_process_info
{
	buf = "Process id : %d\nFile name : %S\nCmd line : %S\nExe sections size : %d \nLoaded from : %S\nPriority : %S\nProtected : %S";
} 

RESOURCE TBUF r_task_info
{
	buf = "ThreadId : %d\nWindowGroup Id : %d\nHeap Size : %d kb\nStack Size : %d kb\nProtected : %S\nCPU usage : %d mcrsecs";
} 

RESOURCE TBUF r_about
{
	buf = "TaskManager for S60v1.0\n*Open source task manager for S60v2.0\n*Author:Mayur Kankanwadi\n* Location: Pune, India\n*Active member of forums:\n*[mayur_24]NewLc.com\n*[mayur_24]Forum Nokia\n*[eminemence]N-Gage-Help.com\n*[eminemence]NokBitch\n*For any ideas abt this app contact me at : eminemence@gmail.com\n\n*Ported to S60v1:\nJoonas Kekoni\n*Location:Vantaa, Finland\n*Comments about the port contact me at:\n jkekoni@cc.hut.fi";
} 

// Ported to S60v1:Joonas Kekoni\n*Location:Vantaa , Finland\n*For any commens about the port contact me at : jkekoni@cc.hut.fi


RESOURCE TBUF r_task_title 
{ 
	buf = "-=[Task Info]=-"; 
}
    
RESOURCE TBUF r_system_title 
{ 
	buf = "-=[System Info]=-"; 
}

RESOURCE TBUF r_process_title 
{ 
	buf = "-=[Process Info]=-"; 
}
    
RESOURCE TBUF r_about_title 
{ 
	buf = "-=[About]=-"; 
}


    
 
RESOURCE DIALOG r_message_query
{
	flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
	items=
	{
		DLG_LINE 
		{
			type = EAknCtPopupHeadingPane;
			id = EAknMessageQueryHeaderId;
			itemflags = EEikDlgItemNonFocusing;
			control = AVKON_HEADING
			{
			};
		},
		DLG_LINE
		{
			type = EAknCtMessageQuery;
			id = EAknMessageQueryContentId;
			control = AVKON_MESSAGE_QUERY
			{
			};
		}
	};
}


/*RESOURCE FILESELECTIONDIALOG r_file_selection_dialog
{
	title = "Select app/exe to run";
	root_path = "C:\\";
	filters = {
		FILTER {
			filter_type = EFilenameFilter;
			filter_style = EExclusiveFilter;
			filter_data = {"*.app","*.exe"};
		}
	};
}*/

⌨️ 快捷键说明

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