📄 screenshot.rss
字号:
/*
* screenshot.rss
*
* Copyright 2005 - 2007, Antony Pranata
* http://www.antonypranata.com
*
* Project: Screenshot for Symbian OS.
*
* This program 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.
*
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
// RESOURCE IDENTIFIER
NAME BENC // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <eikcdlg.rsg>
#include <qikon.rh>
#include <qikon.hrh>
#include <Bencoolen.mbg>
#include "Bencoolen.hrh"
#include "Bencoolen.loc"
// RESOURCE DEFINITIONS
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF { buf = "Bencoolen"; }
RESOURCE EIK_APP_INFO
{
menubar = r_bencoolen_menubar;
}
//----------------------------------------------------
//
// r_bencoolen_menubar
//
//----------------------------------------------------
//
RESOURCE MENU_BAR r_bencoolen_menubar
{
titles =
{
MENU_TITLE
{
menu_pane = r_bencoolen_menu_main;
txt = string_bencoolen_app_short_caption_string;
},
MENU_TITLE
{
menu_pane = r_bencoolen_category_pane;
DECLARE_CATEGORY_MENU_TITLE;
}
};
}
//----------------------------------------------------
//
// r_bencoolen_menu_main
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_bencoolen_menu_main
{
items =
{
MENU_ITEM
{
command = EBencoolenCmdActivateCapture;
txt = string_bencoolen_menu_activate_capture;
},
MENU_ITEM
{
command = EBencoolenCmdSettings;
txt = string_bencoolen_menu_settings;
},
MENU_ITEM
{
command = EBencoolenCmdStop;
txt = string_bencoolen_menu_stop;
flags = EEikMenuItemSeparatorAfter;
},
MENU_ITEM
{
command = EBencoolenCmdSend;
txt = string_bencoolen_menu_send_as;
flags = EEikMenuItemSeparatorAfter;
},
MENU_ITEM
{
command = EBencoolenCmdAbout;
txt = string_bencoolen_menu_about;
}/*,
MENU_ITEM
{
command = EEikCmdExit;
txt = string_bencoolen_menu_exit;
}*/
};
}
//----------------------------------------------------
//
// r_qapp_category_pane
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_bencoolen_category_pane
{
items =
{
};
}
//----------------------------------------------------
// r_bencoolen_dialog_about
// resource for About dialog
//----------------------------------------------------
//
RESOURCE DIALOG r_bencoolen_dialog_about
{
title=string_bencoolen_dialog_about;
buttons=R_EIK_BUTTONS_DONE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgProgramName;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_program_name;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgVersion;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_version;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgCopyright;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_copyright;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgUrl;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_url;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgInformation;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_information;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtImage;
id=EBencoolenDlgIcon;
control=IMAGE
{
horiz_align=EEikLabelAlignHCenter;
bmpfile="\system\apps\Screenshot\Bencoolen.mbm";
bmpid=EMbmBencoolenContext_pane_icon;
bmpmask=EMbmBencoolenContext_pane_icon_mask;
};
} // DLG_LINE
}; // items
} // RESOURCE
//----------------------------------------------------
// r_bencoolen_dialog_about_noicon
// resource for About dialog
//----------------------------------------------------
//
RESOURCE DIALOG r_bencoolen_dialog_about_noicon
{
title=string_bencoolen_dialog_about;
buttons=R_EIK_BUTTONS_DONE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgProgramName;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_program_name;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgVersion;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_version;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgCopyright;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_copyright;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgUrl;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_url;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtLabel;
id=EBencoolenDlgInformation;
control=LABEL
{
horiz_align=EEikLabelAlignHCenter;
txt=string_bencoolen_dialog_information;
};
} // DLG_LINE
}; // items
} // RESOURCE
//----------------------------------------------------
// r_bencoolen_dialog_settings
// resource for Settings dialog
//----------------------------------------------------
//
RESOURCE DIALOG r_bencoolen_dialog_settings
{
title=string_bencoolen_dialog_settings;
buttons=R_EIK_BUTTONS_CANCEL_DONE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtChoiceList;
prompt=string_bencoolen_dialog_mode;
id=EBencoolenDlgMode;
control=CHOICELIST
{
array_id=r_bencoolen_list_mode;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtChoiceList;
prompt=string_bencoolen_dialog_shortcut;
id=EBencoolenDlgShortcut;
control=CHOICELIST
{
array_id=r_bencoolen_list_shortcut;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtChoiceList;
prompt=string_bencoolen_dialog_imageformat;
id=EBencoolenDlgImageFormat;
control=CHOICELIST
{
array_id=r_bencoolen_list_imageformat;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtGlobalTextEditor;
prompt=string_bencoolen_dialog_filename;
id=EBencoolenDlgFileName;
control=GTXTED
{
height=20;
width=128;
numlines=1;
textlimit=KTextMaxLength;
fontcontrolflags=EGulFontControlAll;
fontnameflags=EGulAllFonts;
};
}, // DLG_LINE
DLG_LINE
{
type=EEikCtChoiceList;
prompt=string_bencoolen_dialog_delay;
id=EBencoolenDlgDelay;
control=CHOICELIST
{
array_id=r_bencoolen_list_delay;
};
} // DLG_LINE
}; // items
} // RESOURCE
//-----------------------------------------------------------------------------
//
// r_bencoolen_list_mode
// Items array for Mode query
//
//-----------------------------------------------------------------------------
//
RESOURCE ARRAY r_bencoolen_list_mode
{
items =
{
LBUF
{
txt = string_bencoolen_dialog_mode_oneshot;
},
LBUF
{
txt = string_bencoolen_dialog_mode_2seconds;
},
LBUF
{
txt = string_bencoolen_dialog_mode_5seconds;
},
LBUF
{
txt = string_bencoolen_dialog_mode_10seconds;
}
};
}
//-----------------------------------------------------------------------------
//
// r_bencoolen_list_shortcut
// Items array for Shortcut query
//
//-----------------------------------------------------------------------------
//
RESOURCE ARRAY r_bencoolen_list_shortcut
{
items =
{
LBUF
{
txt = string_bencoolen_dialog_shortcut_camera;
},
LBUF
{
txt = string_bencoolen_dialog_shortcut_browser;
}
};
}
//-----------------------------------------------------------------------------
//
// r_bencoolen_list_imageformat
// Items array for Format query
//
//-----------------------------------------------------------------------------
//
RESOURCE ARRAY r_bencoolen_list_imageformat
{
items =
{
LBUF
{
txt = string_bencoolen_dialog_format_jpeg_high;
},
LBUF
{
txt = string_bencoolen_dialog_format_jpeg_normal;
},
LBUF
{
txt = string_bencoolen_dialog_format_jpeg_low;
},
/* LBUF
{
txt = string_bencoolen_dialog_format_png_default;
},
LBUF
{
txt = string_bencoolen_dialog_format_png_size;
},
LBUF
{
txt = string_bencoolen_dialog_format_png_speed;
},*/
LBUF
{
txt = string_bencoolen_dialog_format_bmp;
},
LBUF
{
txt = string_bencoolen_dialog_format_bmp8bpp;
},
LBUF
{
txt = string_bencoolen_dialog_format_mbm;
},
LBUF
{
txt = string_bencoolen_dialog_format_mbm8bpp;
}
};
}
//-----------------------------------------------------------------------------
//
// r_bencoolen_list_delay
// Items array for Delay query
//
//-----------------------------------------------------------------------------
//
RESOURCE ARRAY r_bencoolen_list_delay
{
items =
{
LBUF
{
txt = string_bencoolen_dialog_delay_nodelay;
},
LBUF
{
txt = string_bencoolen_dialog_delay_onesecond;
},
LBUF
{
txt = string_bencoolen_dialog_delay_fiveseconds;
},
LBUF
{
txt = string_bencoolen_dialog_delay_tenseconds;
},
LBUF
{
txt = string_bencoolen_dialog_delay_thirtyseconds;
}
};
}
#include "..\Bencoolen_string.rss"
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -