summaryrefslogtreecommitdiff
path: root/symbian/PerlUiUIQ.rss
blob: 55362a99f7b89f50202e136adc79fb87e410b22b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
/* Copyright (c) 200-2005 Nokia. All rights reserved. */ 

/* The PerlUi class is licensed under the same terms as Perl itself. */

/* The UIQ definitions. */

NAME PERL

#include <eikon.rh>
#include <eikcore.rsg>
#include <qikon.rh>

#include "PerlUi.hrh"
#include "PerlApp.hrh"

RESOURCE RSS_SIGNATURE
{
}

RESOURCE TBUF r_default_document_name
{
    buf = "";
}

RESOURCE EIK_APP_INFO
{
    menubar = r_perlui_menubar;
    toolbar = r_perlui_menubar;
}


RESOURCE MENU_BAR r_perlui_menubar
{
    titles = {
        MENU_TITLE
            {
            menu_pane = r_perlui_menu; txt = "Options";
            }
    };
}


RESOURCE MENU_PANE r_perlui_menu
{
    items = {
        MENU_ITEM {
            command = EPerlAppCommandAbout;
            txt = "About";
        },
        MENU_ITEM {
            command = EPerlAppCommandTime;
            txt = "Time";
        },
        MENU_ITEM {
            command = EPerlAppCommandOneLiner;
            txt = "Oneliner";
        },
        MENU_ITEM {
            command = EPerlAppCommandCopyright;
            txt = "Copyright";
            }
        };
}

RESOURCE DIALOG r_perlui_oneliner_dialog
{
    title = "Title";
    buttons = R_EIK_BUTTONS_CANCEL_OK;
    flags = EEikDialogFlagWait;
    items = {
        DLG_LINE {
            type = EEikCtEdwin;
	    prompt = "Prompt";
            id = EPerlUiTextQueryInputField;
            control = EDWIN {
                width = 10;
                maxlength = 128;
            };
        }
    };
}

RESOURCE DIALOG r_perlui_ok_cancel_dialog
{
    title = "OK / Cancel ?";
    buttons = r_perlui_ok_cancel_buttons;
}

RESOURCE DLG_BUTTONS r_perlui_ok_cancel_buttons
{
    buttons = {
        DLG_BUTTON {
            id = EEikBidOk;
            button = CMBUT { txt = "Ok"; };
        },
        DLG_BUTTON {
            id = EEikBidCancel;
            button = CMBUT { txt = "Cancel"; };
        }
    };
}

RESOURCE DIALOG r_perlui_yes_no_dialog
{
    title = "Yes / No ?";
    buttons = r_perlui_yes_no_buttons;
}

RESOURCE DLG_BUTTONS r_perlui_yes_no_buttons
{
    buttons = {
        DLG_BUTTON {
            id = EEikBidOk;
            button = CMBUT { txt = "Yes"; };
        },
        DLG_BUTTON {
            id = EEikBidCancel;
            button = CMBUT { txt = "No"; };
        }
    };
}