?? nameswap.rss
字號:
/*
This file is part of NameSwap.
NameSwap is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
NameSwap is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with NameSwap; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 2002 Ashley Montanaro.
*/
NAME AWIZ // 4 letter ID
#include <eikon.rh>
#include "nameswap.hrh"
#include "nameswap.loc"
#include <avkon.rsg>
#include <avkon.rh>
#include <avkon.mbg>
// Constants.
#define IMAGE_MASK 0xffff
#define AVKON_BMPFILE_NAME "z:\\system\\data\\avkon.mbm"
// Resource definitions.
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf="NameSwap"; }
RESOURCE EIK_APP_INFO
{
menubar=r_nameswap_menubar;
hotkeys=r_nameswap_hotkeys;
}
RESOURCE HOTKEYS r_nameswap_hotkeys
{
control=
{
HOTKEY { command=EAknCmdExit; key='e'; }
};
}
// This resource defines the menu to be used for the "Swap" button.
RESOURCE MENU_BAR r_nameswap_menubar
{
titles=
{
MENU_TITLE { menu_pane = r_nameswap_menu; txt="Swap"; }
};
}
// The text and IDs of the two softkeys.
RESOURCE CBA r_softkeys_swap_exit
{
buttons =
{
CBA_BUTTON
{
id = EAknSoftkeyOptions;
txt = "Swap";
},
CBA_BUTTON
{
id = EAknSoftkeyBack;
txt = "Exit";
}
};
}
// The progress notifier for "Swap all".
RESOURCE DIALOG r_progress_note
{
flags = EAknProgressNoteFlags;
buttons = R_AVKON_SOFTKEYS_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = EProgressNoteId;
control = AVKON_NOTE
{
layout = EProgressLayout;
singular_label = "Swapping names";
};
}
};
}
// The commands in the "Swap" menu.
RESOURCE MENU_PANE r_nameswap_menu
{
items=
{
MENU_ITEM { command=ENameSwapCmdAppSwapIndividually; txt="Individually"; },
MENU_ITEM { command=ENameSwapCmdAppSwapAll; txt="All"; }
};
}
// Finally, the dialog itself.
RESOURCE DIALOG r_nameswap_dialog
{
flags = EEikDialogFlagNoDrag | EEikDialogFlagNoTitleBar | EEikDialogFlagFillAppClientRect |
EEikDialogFlagCbaButtons | EEikDialogFlagModeless;
buttons = r_softkeys_swap_exit;
items =
{
DLG_LINE
{
id = ENameSwapLabel;
type = EEikCtLabel;
control =
LABEL {
txt = "\nWelcome to\n\n= NameSwap =\n\nthe application for\nsorting out\nyour contacts";
};
}
};
}
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -