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

📄 sman.eng

📁 手机文件浏览器 Here are the sources to SMan v1.2c 1.2 is a major jump from v1.1. You will see this from the
💻 ENG
📖 第 1 页 / 共 3 页
字号:
#include <eikon.rh>
#include <uikon.hrh>
#include <eikon.rsg>
#include <qikon.rh>
#include "sman.hrh"
#include <quartz.mbg>

NAME sman

RESOURCE RSS_SIGNATURE { }

RESOURCE TBUF { buf=""; }

RESOURCE EIK_APP_INFO
{
	menubar=r_memory_menubar;
}

RESOURCE MENU_PANE r_options_menu
{
	items=
	{
		MENU_ITEM { command=cmdHotkey; txt="Hotkey"; },
		MENU_ITEM { command=cmdShortcuts; txt="Start"; },
		MENU_ITEM { command=cmdZoom; txt = "Zoom"; }
	};
}

RESOURCE MENU_PANE r_options_autostart_menu
{
	items=
	{
		MENU_ITEM { command=cmdAutostartSMan; txt="SMan"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdAutostartOthers; txt="Others"; }
	};
}

RESOURCE MENU_PANE r_options_bluejack_menu
{
	items=
	{
		MENU_ITEM { command=cmdNoDevicePause; txt="Timers"; },	
		MENU_ITEM { command=cmdLogFlags; txt="Prox. sweep logs"; },
		MENU_ITEM { command=cmdBluejackSysMsg; txt="Notifications";},
		MENU_ITEM { command=cmdBluejackMsg; txt="Message"; flags=EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdResolveName; txt="Resolve name"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdBluejackOnce; txt="Prox. sweep once"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdBluejackAutoSave; txt="Log to disk"; flags=EEikMenuItemCheckBox | EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdZoom; txt = "Zoom"; }
	};
}

RESOURCE MENU_PANE r_runapplist_menu
{
	items=
	{
	};
}
	
RESOURCE MENU_PANE r_shortcuts_menu
{
	items=
	{
		MENU_ITEM { cascade=r_runapplist_menu; txt="Run"; flags = EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdShort1; txt="<unassigned>"; flags = EEikMenuItemDimmed; },
		MENU_ITEM { command=cmdShort2; txt="<unassigned>"; flags = EEikMenuItemDimmed; },
		MENU_ITEM { command=cmdShort3; txt="<unassigned>"; flags = EEikMenuItemDimmed; },
		MENU_ITEM { command=cmdShort4; txt="<unassigned>"; flags = EEikMenuItemDimmed; },
		MENU_ITEM { command=cmdShort5; txt="<unassigned>"; flags = EEikMenuItemDimmed; },
		MENU_ITEM { command=cmdShort6; txt="<unassigned>"; flags = EEikMenuItemDimmed; },
		MENU_ITEM { command=cmdShort7; txt="<unassigned>"; flags = EEikMenuItemDimmed; }
	};
}	

RESOURCE ARRAY r_fn_array
{
	items=
	{	
		LBUF { txt="Main Shell"; },
		LBUF { txt="File Manager"; },
		LBUF { txt="Bluejack"; },
		LBUF { txt="InfoStore"; },
		LBUF { txt="SysInfo"; },
		LBUF { txt="Today View"; }
	};	
}

RESOURCE DIALOG r_dialog_fn_options
{
	title = "Fn Shortcuts";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags = EEikDialogFlagWait;
	items = 
	{
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "File Manager";
			id = cFnToggleMenu1;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "SysInfo";
			id = cFnToggleMenu2;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Bluejack";
			id = cFnToggleMenu3;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "InfoStore";
			id = cFnToggleMenu4;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Today View";
			id = cFnToggleMenu5;
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "Startup view:";
			id = cFnStartupView;
			control = CHOICELIST { array_id = r_fn_array; };
		}
	};
}	
	
RESOURCE MENU_PANE r_generic_fn
{
	items =
	{
		MENU_ITEM { command=cmdSwitchMemory; txt="Main Shell"; },
		MENU_ITEM { command=cmdSwitchFile; txt="File Manager"; },
		MENU_ITEM { command=cmdSwitchSysInfo; txt="SysInfo"; },
		MENU_ITEM { command=cmdSwitchBJack; txt="Bluejack"; },
		MENU_ITEM { command=cmdSwitchDB; txt="InfoStore"; },
		MENU_ITEM { command=cmdSwitchAgenda; txt="Today View"; },
		MENU_ITEM { cascade=r_fn_utilities_menu; txt="Utilities"; },
		MENU_ITEM { cascade=r_controlpanel_menu; txt="Control Panel"; flags=EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdSwitchOptions; txt="Options"; },
		MENU_ITEM { command=cmdQuit; txt="Quit"; },
		MENU_ITEM { command=cmdAbout; txt="About"; }		
	};
}

RESOURCE MENU_PANE r_sysinfo_options
{
	items=
	{
		MENU_ITEM { command=cmdSysInfoRefresh; txt="Refresh"; },
		MENU_ITEM { command=cmdZoom; txt="Zoom"; }
	};
}

RESOURCE MENU_PANE r_controlpanel_menu
{
	items =
	{
		MENU_ITEM { command=cmdCPBluetooth; txt="Bluetooth"; },
		MENU_ITEM { command=cmdCPIrda; txt="IrDA"; },
		MENU_ITEM { command=cmdControlPanel; txt="Others"; }
	};
}

RESOURCE MENU_PANE r_bluejacklog_menu
{
	items=
	{
		MENU_ITEM { command=cmdBluejackClearLog; txt="Clear mem. log"; },
		MENU_ITEM { cascade=r_bluejack_filelog_menu; txt="File log"; }
	};
}

RESOURCE MENU_PANE r_bluejack_filelog_menu
{
	items =
	{
		MENU_ITEM { command=cmdBluejackViewFileLog; txt="View"; },
		MENU_ITEM { command=cmdBluejackDelFileLog; txt="Delete"; }
	};
}


RESOURCE MENU_PANE r_extras_menu
{
	items=
	{
		MENU_ITEM { command=cmdNoHotkey; txt="Disable hotkey"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdFlipFlush; txt="Flipclose flush"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdForceEndTask; txt="Forced endtask"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdShowHiddenTask; txt="Show hidden tasks"; flags=EEikMenuItemCheckBox; },
		MENU_ITEM { command=cmdPersist; txt="Ignore \"harakiri\""; flags=EEikMenuItemCheckBox; }
	};
}

RESOURCE MENU_BAR r_db_menubar
{
	titles=
   	{
		MENU_TITLE { menu_pane=r_db_options; txt="Options"; },
		MENU_TITLE { menu_pane=r_generic_fn; txt="Fn"; flags = EEikMenuTitleRightAlign; }
	};
}

RESOURCE MENU_BAR r_sysinfo_menubar
{
	titles=
   	{
		MENU_TITLE { menu_pane=r_sysinfo_options; txt="Options"; },
		MENU_TITLE { menu_pane=r_generic_fn; txt="Fn"; flags = EEikMenuTitleRightAlign; }
	};
}

RESOURCE MENU_PANE r_db_options
{
	items=
	{
		MENU_ITEM { command=cmdDBReadDB; txt="Open DB"; },
		MENU_ITEM { command=cmdDBCloseDB; txt="Close DB"; flags=EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdDBChangePassword; txt="Change password"; },
		MENU_ITEM { command=cmdDBReInit; txt="Re-init DB"; },
		MENU_ITEM { command=cmdDBUpdateStats; txt="Update statistics"; },
		MENU_ITEM { command=cmdDBCompact; txt="Compact"; flags=EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdDBSortAsc; txt = "Sort ascending"; flags = EEikMenuItemRadioStart; },
		MENU_ITEM { command=cmdDBSortDes; txt = "Sort descending"; flags = EEikMenuItemRadioEnd | EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdZoom; txt="Zoom"; }
	};
}

RESOURCE MENU_PANE r_fc_bluejack_menu
{
	items=
	{
		MENU_ITEM { command=cmdBluejack; txt="Start proximity sweep"; },
		MENU_ITEM { command=cmdBluejackClearLog; txt="Clear memory log"; flags=EEikMenuItemSeparatorAfter; },
		MENU_ITEM { command=cmdFlushOut; txt="Flush processes"; }
	};	
}

RESOURCE MENU_BAR r_bluejack_menubar
{
	titles=
   	{
	   	MENU_TITLE { menu_pane=r_bluejacklog_menu; txt="Log"; },
	   	MENU_TITLE { menu_pane=r_options_bluejack_menu; txt="Options"; },
		MENU_TITLE { menu_pane=r_generic_fn; txt="Fn"; flags = EEikMenuTitleRightAlign; }
	};
}

RESOURCE MENU_BAR r_memory_menubar
{
	titles=
   	{
	   	MENU_TITLE { menu_pane=r_shortcuts_menu; txt="Start"; },
	   	MENU_TITLE { menu_pane=r_extras_menu; txt="Extras"; },
		MENU_TITLE { menu_pane=r_options_menu; txt="Options"; },
		MENU_TITLE { menu_pane=r_generic_fn; txt="Fn"; flags = EEikMenuTitleRightAlign; }
	};
}

RESOURCE ARRAY r_hotkey_array
{
	items=
	{	
		LBUF { txt="<Disable>"; },
		LBUF { txt="Cam"; },
		LBUF { txt="Internet"; },
		LBUF { txt="Flip Open"; }
	};	
}

RESOURCE DIALOG r_dialog_autostart
{
	title = "Auto-start";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags = EEikDialogFlagWait;
	items = 
	{
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "App 1:";
			id = cAutoStart1;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "App 2:";
			id = cAutoStart2;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "App 3:";
			id = cAutoStart3;
			control = CHOICELIST { };
		}
	};
}

RESOURCE DLG_BUTTONS r_buttons_nodevicepause
{
	buttons =
	{
		DLG_BUTTON { id = EEikBidYes; button = CMBUT { txt = "Default"; }; },
		DLG_BUTTON { id = EEikBidCancel; button = CMBUT { txt = "Cancel"; }; },
		DLG_BUTTON { id = EEikBidOk; button = CMBUT { txt = "Ok"; }; flags=EEikLabeledButtonIsDefault; }
	};
}

RESOURCE DIALOG r_dialog_loglevels
{
	title = "Prox. sweep logs";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags = EEikDialogFlagWait | EEikDialogFlagButtonsRight;
	items=
	{
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Log Bluejack:";
			id = cLogBluejack;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Log OBEX:";
			id = cLogOBEX;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Log Scanning:";
			id = cLogScanning;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Log Decay:";
			id = cLogDecays;
		}
	};
}

RESOURCE ARRAY r_array_audionotify
{
	items=
	{	
		LBUF { txt="None"; },
		LBUF { txt="Select file"; }
	};	
}

RESOURCE DIALOG r_dialog_notification
{
	title = "Bluejack Notifications";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags = EEikDialogFlagWait;
	items=
	{
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Message:";
			id = cSystemMsgNotify;
		},
		DLG_LINE
		{
			type = EEikCtCheckBox;
			prompt = "Vibrate:";
			id = cVibraNotify;
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "Audio:";
			id = cAudioFileName;
			control = CHOICELIST { };
		}			
	};
}

RESOURCE DIALOG r_dialog_nodevicepause
{
	title = "Bluejack timers";
	buttons = r_buttons_nodevicepause;
	flags = EEikDialogFlagWait;
	items=
	{
		DLG_LINE
		{
			type = EQikCtNumberEditor;
			prompt = "OBEX timeout (secs):";
			id = cOBEXTimeout;
			control = QIK_NUMBER_EDITOR { min = 10; max = 30; };
		},
		DLG_LINE
		{
			type = EQikCtNumberEditor;
			prompt = "Decay (secs):";
			id = cDecayTime;
			control = QIK_NUMBER_EDITOR { min = 5; max = 1800; };
		},
		DLG_LINE
		{
			type = EQikCtNumberEditor;
			prompt = "Cool-off (secs):";
			id = cNoDevicePause;
			control = QIK_NUMBER_EDITOR { min = 1; max = 1800; };
		},
		DLG_LINE
		{
			type = EQikCtNumberEditor;
			prompt = "Failed Attempts:";
			id = cNoDeviceAttempts;
			control = QIK_NUMBER_EDITOR { min = 1; max = 10; };
		}			
	};
}
			
RESOURCE DIALOG r_dialog_shortcut
{
	title = "Start";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags = EEikDialogFlagWait | EEikDialogFlagButtonsRight;
	items=
	{
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "1:";
			id = cShortcut1;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "2:";
			id = cShortcut2;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "3:";
			id = cShortcut3;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "4:";
			id = cShortcut4;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "5:";
			id = cShortcut5;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "6:";
			id = cShortcut6;
			control = CHOICELIST { };
		},
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "7:";
			id = cShortcut7;
			control = CHOICELIST { };
		}
	};
}

RESOURCE DIALOG r_dialog_hotkey
{
	title = "Choose Hotkey";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags=EEikDialogFlagWait;
	items=
	{
		DLG_LINE
		{
			type = EEikCtChoiceList;
			prompt = "Hotkey:";

⌨️ 快捷键说明

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