📄 opencftpclient.rss
字号:
/***************************************************************************/
/* */
/* OpenCFTPClient.rss - Part of Open C FTP Client */
/* */
/* Copyright (C) 2007 Nokia Corporation */
/* */
/* Open C FTP Client is based on ftplib and qftp by Thomas Pfau. */
/* */
/* Copyright (C) 1996-2001 Thomas Pfau, pfau@eclipse.net */
/* 1407 Thomas Ave, North Brunswick, NJ, 08902 */
/* */
/* This program is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Library 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 */
/* Library General Public License for more details. */
/* */
/* You should have received a copy of the GNU Library General Public */
/* License along with this program; if not, write to the */
/* Free Software Foundation, Inc., 59 Temple Place - Suite 330, */
/* Boston, MA 02111-1307, USA. */
/* */
/***************************************************************************/
/*
* ============================================================================
* Name : OpenCFTPClient from OpenCFTPClient.rss
* Part of : Open C FTP Client
* Created : 03/12/2007 by Forum Nokia
* Version : 1.0
* ============================================================================
*/
// RESOURCE IDENTIFIER
NAME OPEN // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <appinfo.rh>
#include "OpenCFTPClient.hrh"
#include "OpenCFTPClient.rls"
// RESOURCE DEFINITIONS
// -----------------------------------------------------------------------------
//
// Define the resource file signature
// This resource should be empty.
//
// -----------------------------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
{
}
// -----------------------------------------------------------------------------
//
// Default Document Name
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF r_default_document_name
{
buf="HEWB";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
menubar = r_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// r_menubar
// Main menubar
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_menu; }
};
}
// lb
RESOURCE MENU_BAR r_filelist_view_menubar
{
titles =
{
MENU_TITLE { menu_pane= r_menu; }
};
}
// -----------------------------------------------------------------------------
//
// r_menu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_menu
{
items =
{
MENU_ITEM
{
command = ECommand1;
txt = qtn_command1;
},
MENU_ITEM
{
command = ECommand2;
txt = qtn_command2;
},
MENU_ITEM
{
command = ECommand3;
txt = qtn_command3;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = qtn_exit;
}
};
}
// -----------------------------------------------------------------------------
//
// Resources for messages.
//
// -----------------------------------------------------------------------------
//
RESOURCE TBUF32 r_command1_text { buf=qtn_command1_text; }
RESOURCE TBUF32 r_error_text { buf=qtn_error_text; }
RESOURCE TBUF64 r_error_link_text { buf=qtn_error_link_text; }
RESOURCE TBUF32 r_completed_text { buf=qtn_completed_text; }
RESOURCE TBUF64 r_welcome_text { buf=qtn_welcome_text; }
RESOURCE TBUF32 r_caption_string { buf=qtn_caption_string; }
RESOURCE TBUF32 r_server_address_text { buf=qtn_server_address_text; }
RESOURCE TBUF32 r_server_port_text { buf=qtn_server_port_text; }
RESOURCE TBUF32 r_server_username_text { buf=qtn_server_username_text; }
RESOURCE TBUF32 r_server_password_text { buf=qtn_server_password_text; }
// ----------------------------------------------------------------------------
//
// r_localisable_app_info
//
// ----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
{
short_caption = qtn_caption_string;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = qtn_caption_string;
number_of_icons = 1;
icon_file = "\\resource\\apps\\OpenCFTPClient.mif";
};
}
// lb
RESOURCE AVKON_VIEW r_view_filelist
{
menubar = r_filelist_view_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
RESOURCE LISTBOX r_filelist
{
flags = EAknListBoxSelectionList;
array_id = 0;
}
RESOURCE DIALOG r_address_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = qtn_server_address_text;
control = EDWIN
{
width = 5;
lines = 1;
maxlength = 15;
};
};
}
};
}
RESOURCE DIALOG r_port_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = qtn_server_port_text;
control = EDWIN
{
width = 5;
lines = 1;
maxlength = 15;
};
};
}
};
}
RESOURCE DIALOG r_username_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = qtn_server_username_text;
control = EDWIN
{
width = 5;
lines = 1;
maxlength = 15;
};
};
}
};
}
RESOURCE DIALOG r_password_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = qtn_server_password_text;
control = EDWIN
{
width = 5;
lines = 1;
maxlength = 15;
};
};
}
};
}
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -