📄 guielements.rss
字号:
NAME GUIE
#include <eikon.rh>
#include <eikcore.rsg>
#include <qikon.rh>
#include <qikon.hrh>
#include "GuiElements.hrh"
RESOURCE RSS_SIGNATURE { }
RESOURCE TBUF r_guielements_app_name { buf=""; }
RESOURCE EIK_APP_INFO
{
menubar=r_guielements_menubar;
}
RESOURCE MENU_BAR r_guielements_menubar
{
titles=
{
MENU_TITLE { menu_pane=r_controls_menu; txt="Controls"; },
MENU_TITLE { menu_pane=r_editors_menu; txt="Editors"; },
MENU_TITLE { menu_pane=r_dialogs_menu; txt="Dialogs"; }
};
}
RESOURCE MENU_PANE r_controls_menu
{
items=
{
MENU_ITEM
{
command=EGuiElementsCmdControls1;
txt="Controls 1";
},
MENU_ITEM
{
command=EGuiElementsCmdControls2;
txt="Controls 2";
},
MENU_ITEM
{
command=EGuiElementsCmdControls3;
txt="Controls 3";
flags=EEikMenuItemSeparatorAfter;
},
MENU_ITEM
{
command=EGuiElementsCmdAbout;
txt="About";
}
/*
,MENU_ITEM
{
command = EEikCmdExit;
txt = "Close (debug)";
}
*/
};
}
RESOURCE MENU_PANE r_dialogs_menu
{
items=
{
MENU_ITEM
{
command=EGuiElementsCmdSetTime;
txt="Set time";
},
MENU_ITEM
{
command=EGuiElementsCmdSetLocation;
txt="Set location";
},
MENU_ITEM
{
command=EGuiElementsCmdWorkWeek;
txt="Work week";
},
MENU_ITEM
{
command=EGuiElementsCmdFindContact;
txt="Find contact";
},
MENU_ITEM
{
command=EGuiElementsCmdDaylightSavings;
txt="Daylight savings";
},
MENU_ITEM
{
command=EGuiElementsCmdTimeOptions;
txt="Time options";
},
MENU_ITEM
{
command=EGuiElementsCmdAlert;
txt="Alert";
},
MENU_ITEM
{
command=EGuiElementsCmdInformation;
txt="Information";
},
MENU_ITEM
{
command=EGuiElementsCmdQuery;
txt="Query";
}
/*
MENU_ITEM
{
command=EGuiElementsCmdZoom;
txt="Zoom level";
}
*/
};
}
RESOURCE MENU_PANE r_editors_menu
{
items=
{
MENU_ITEM
{
command=EGuiElementsCmdEditors;
txt="Editors 1";
},
MENU_ITEM
{
command=EGuiElementsCmdEditors2;
txt="Editors 2";
}
};
}
RESOURCE DIALOG r_controls1_dialog
{
title="Controls 1";
buttons=R_EIK_BUTTONS_CONTINUE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type = EEikCtEdwin;
prompt = "EDWIN";
id = EMyControlIdEdwin;
control = EDWIN { width = 100; maxlength = 256; };
},
DLG_LINE
{
type=EEikCtChoiceList;
prompt="CHOICELIST";
id=EMyChoiceListId;
control=CHOICELIST
{
array_id=r_example_dialog_list;
};
},
DLG_LINE
{
prompt="COMBOBOX";
type=EEikCtComboBox;
id=EMyComboBoxControlId;
control=COMBOBOX
{
width=5;
maxlength=5;
maxarraysize=5;
};
},
DLG_LINE
{
type=EEikCtListBox;
prompt="LISTBOX";
id = EMyListBoxControlId;
control = LISTBOX
{
flags = EEikListBoxMultipleSelection;
array_id = r_list_items;
};
}
};
}
RESOURCE ARRAY r_example_hor_option_buttons
{
items=
{
OPBUT { text="Left"; },
OPBUT { text="Right"; }
};
}
RESOURCE ARRAY r_example_option_buttons
{
items=
{
OPBUT { text="Option 1"; },
OPBUT { text="Option 2"; },
OPBUT { text="Option 3"; }
};
}
RESOURCE ARRAY r_list_items
{
items=
{
LBUF { txt = "Item 1";},
LBUF { txt = "Item 2";},
LBUF { txt = "Item 3";},
LBUF { txt = "Item 4";},
LBUF { txt = "Item 5";},
LBUF { txt = "Item 6";}
};
}
RESOURCE ARRAY r_example_dialog_list
{
items=
{
LBUF { txt="Item 1"; },
LBUF { txt="Item 2"; },
LBUF { txt="Item 3"; }
};
}
RESOURCE DIALOG r_controls2_dialog
{
title="Controls 2";
buttons=R_EIK_BUTTONS_CONTINUE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type = EEikCtEdwin;
prompt = "Name";
id = EMyControlIdEdwin;
control = EDWIN { width = 100; maxlength = 256; };
},
DLG_LINE
{
type=EEikCtCheckBox;
prompt="Check box";
id=EMyCheckBoxControlId;
},
DLG_LINE
{
prompt="VERTOPBUT";
type=EQikCtVertOptionButtonList;
id=EMyVertOptionButtonListControlId;
control=QIK_VERTOPBUT
{
array_id=r_example_option_buttons;
};
},
DLG_LINE
{
prompt="HOROPBUT";
type=EEikCtHorOptionButList;
id=EMyHorOptionButtonListControlId;
control=HOROPBUT
{
array_id=r_example_hor_option_buttons;
};
},
DLG_LINE
{
type=EEikCtOptionButton;
prompt="Option button";
id=EMyOptionButtonControlId;
},
DLG_LINE
{
type=EQikCtSlider;
prompt="Slider ";
id=EMySliderControlId;
control=QIK_SLIDER
{
min_value=0;
max_value=10;
};
},
DLG_LINE
{
prompt="Progress ";
type=EEikCtProgInfo;
id=EMyProgressInfoControlId;
control=PROGRESSINFO
{
};
}
};
}
RESOURCE DIALOG r_controls3_dialog
{
title="Controls 3";
buttons=R_EIK_BUTTONS_CONTINUE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EQikCtColorSelector;
prompt="Colour ";
id=EMyColorSelectorControlID;
control=QIK_COLOR_SEL
{
flags = EQikColorSelStandard16;
};
},
DLG_LINE
{
type=EQikCtSoundSelector;
prompt="Sound ";
id=EMySoundSelectorControlID;
}
};
}
RESOURCE DIALOG r_editors_dialog
{
title="Editors 1";
buttons=R_EIK_BUTTONS_CONTINUE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type = EQikCtTimeEditor;
prompt = "Time";
id = EMyTimeEditorId;
control = QIK_TIME_EDITOR
{
minTime=TIME
{
};
maxTime=TIME
{
minute=59;
hour=23;
};
};
},
DLG_LINE
{
type = EQikCtDateEditor;
prompt = "Date";
id = EMyDateEditorId;
control = QIK_DATE_EDITOR
{
minDate=DATE
{
};
maxDate=DATE
{
year=2100;
};
};
},
DLG_LINE
{
type = EQikCtTimeAndDateEditor;
prompt = "Date";
id = EMyTimeAndDateEditorId;
control = QIK_TIME_AND_DATE_EDITOR
{
minTimeAndDate=TIME_AND_DATE
{
};
maxTimeAndDate=TIME_AND_DATE
{
year = 2100;
};
};
},
DLG_LINE
{
type = EQikCtDurationEditor;
prompt = "Duration";
id = EMyDurationEditorId;
control = QIK_DURATION_EDITOR
{
minDuration=DURATION
{
};
maxDuration=DURATION
{
seconds=86399;
};
};
},
DLG_LINE
{
type = EQikCtNumberEditor;
prompt = "Number";
id = EMyNumberEditorId;
control = QIK_NUMBER_EDITOR
{
min=-2147483647;
max=2147483647;
};
},
DLG_LINE
{
type = EQikCtFloatingPointEditor;
prompt = "Real";
id = EMyFloatingPointEditorId;
control = QIK_FLOATING_POINT_EDITOR
{
};
},
DLG_LINE
{
type=EEikCtSecretEd;
prompt="Secret:";
id = EMySecretEditorId;
control=SECRETED
{
};
}
};
}
RESOURCE DIALOG r_editors2_dialog
{
title="Editors 2";
buttons=R_EIK_BUTTONS_CONTINUE;
flags=EEikDialogFlagWait;
items=
{
DLG_LINE
{
type=EEikCtSecretEd;
prompt="Secret:";
id = EMySecretEditorId;
control=SECRETED
{
};
},
DLG_LINE
{
prompt=" ";
type=EEikCtRichTextEditor;
id=EMyEdwinControlId;
control=RTXTED
{
width=136;
height=50;
numlines=0;
textlimit=40;
flags=EEikEdwinResizable;
fontcontrolflags=EGulFontControlAll;
fontnameflags=EGulAllFonts;
};
},
DLG_LINE
{
type=EEikCtDialogToolBar;
id=EMyDialogToolBarId;
control=DLG_TOOLBAR
{
controls=
{
DLG_TBAR_BUTTON
{
id=EEikCidFontBoldBut;
button=CMBUT
{
behavior=EEikButLatches;
txt="Bold";
};
},
DLG_TBAR_BUTTON
{
id=EEikCidFontItalicBut;
button=CMBUT
{
behavior=EEikButLatches;
txt="Italic";
};
},
DLG_TBAR_BUTTON
{
id=EEikCidFontUnderlineBut;
button=CMBUT
{
behavior=EEikButLatches;
txt="Underline";
};
}
};
};
},
DLG_LINE
{
prompt="Ip Editor";
type=EQikCtIpEditor;
id=EExappId;
control=QIK_IP_EDITOR
{
};
}
};
}
RESOURCE DIALOG r_about_dialog
{
title = "About";
buttons = R_EIK_BUTTONS_CONTINUE;
flags = EEikDialogFlagWait;
items =
{
DLG_LINE
{
type = EEikCtLabel;
control = LABEL
{
txt="This application shows different UIQ GUI elements.";
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
control = LABEL
{
txt="Developers may use this application while designing their own user interface.";
horiz_align=EEikLabelAlignHLeft;
};
},
DLG_LINE
{
type = EEikCtLabel;
control = LABEL
{
txt="Version 1.0";
horiz_align=EEikLabelAlignHLeft;
};
}
};
}
RESOURCE TBUF r_shapes_text_Item { buf="Menu Item"; }
RESOURCE TBUF r_example_setcity_dialog_title { buf="Set Location"; }
RESOURCE TBUF r_example_setcity_dialog_description { buf="Brief description here."; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -