?? vncviewer.rss
字號:
/*
* ==============================================================================
* Name : VncViewer.rss
* Part of : VncViewer
* Interface :
* Description :
* Version :
*
* ==============================================================================
*/
// RESOURCE IDENTIFIER
NAME VNCV // 4 letter ID
// INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <avkon.mbg>
#include <appinfo.rh>
#include "VncViewer.hrh"
#include "VncViewer.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="VNCV";
}
// -----------------------------------------------------------------------------
//
// Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
{
//menubar = r_VncViewer_menubar;
//cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// Define AppView menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_appview
{
menubar = r_VncViewer_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// Define ViewportView menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE AVKON_VIEW r_viewportview
{
menubar = r_Viewport_menubar;
cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
}
// -----------------------------------------------------------------------------
//
// r_initial
// Initial Setting List for VncViewer example
//
// -----------------------------------------------------------------------------
//
RESOURCE AVKON_SETTING_ITEM_LIST r_initial
{
title = STRING_CONN_DETAILS;
items =
{
AVKON_SETTING_ITEM
{
identifier = ESettingIP;
setting_page_resource = r_texteditor_ip_page;
name = STRING_SETTINGS_ITEM_IP;
},
AVKON_SETTING_ITEM
{
identifier = ESettingPort;
setting_page_resource = r_texteditor_port_page;
name = STRING_SETTINGS_ITEM_PORT;
}
};
}
// ---------------------------------------------------------
//
// Settings Pages
//
// defines the AVKON_SETTING_PAGE structures referred to in
// setting_page_resource field above.
//
// These structures define the way in which the editors used
// to change the setting data are presented.
//
// ---------------------------------------------------------
//
RESOURCE AVKON_SETTING_PAGE r_texteditor_ip_page
{
label=STRING_SETTINGS_ITEM_IP;
type=EAknCtIpFieldEditor;
editor_resource_id=r_ip;
}
RESOURCE AVKON_SETTING_PAGE r_texteditor_port_page
{
label=STRING_SETTINGS_ITEM_PORT;
type = EAknCtIntegerEdwin;
editor_resource_id = r_numericeditor;
}
// ---------------------------------------------------------
//
// Editor Controls
//
// This section defines the controls referred to from the
// editor_resource_id sections of the AVKON_SETTING_PAGE
// resources above.
//
// ---------------------------------------------------------
RESOURCE IP_FIELD_EDITOR r_ip
{
min_field_values=IP_FIELD
{
first_field =0;
second_field=0;
third_field=0;
fourth_field=0;
};
max_field_values=IP_FIELD
{
first_field = 255;
second_field = 255;
third_field = 255;
fourth_field = 255;
};
flags = 0;
}
RESOURCE AVKON_INTEGER_EDWIN r_numericeditor
{
maxlength=5;
}
// -----------------------------------------------------------------------------
//
// r_VncViewer_menubar
// Menubar for VncViewer example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_VncViewer_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_VncViewer_menu; }
};
}
// -----------------------------------------------------------------------------
//
// r_VncViewer_menu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_VncViewer_menu
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = EVncViewerCommand1;
txt = STRING_VncV_command1;
},
MENU_ITEM
{
command = EVncViewerCommand2;
txt = STRING_VncV_command2;
},
MENU_ITEM
{
command = EVncViewerCommand3;
txt = STRING_VncV_command3;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = STRING_VncV_exit;
}
};
}
// -----------------------------------------------------------------------------
//
// r_Viewport_menubar
// Menubar for VncViewer example
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_Viewport_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_Viewport_menu; }
};
}
// -----------------------------------------------------------------------------
//
// r_Viewport_menu
// Menu for "Options"
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_PANE r_Viewport_menu
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = EVncViewerCommand4;
txt = STRING_VncV_command4;
},
MENU_ITEM
{
command = EVncViewerCommand8;
cascade = r_menu_send_special_key_cascade;
txt = STRING_VncV_command8;
},
MENU_ITEM
{
command = EVncViewerCommand9;
txt = STRING_VncV_command9;
},
MENU_ITEM
{
command = EVncViewerCommand6;
txt = STRING_VncV_command6;
},
MENU_ITEM
{
command = EVncViewerCommand7;
txt = STRING_VncV_command7;
},
MENU_ITEM
{
command = EVncViewerCommand2;
txt = STRING_VncV_command2;
},
MENU_ITEM
{
command = EVncViewerCommand3;
txt = STRING_VncV_command3;
},
MENU_ITEM
{
command = EAknSoftkeyExit;
txt = STRING_VncV_exit;
}
};
}
//----------------------------------------------
//
// r_menu_send_special_key_cascade
//
// Sub menu-pane of the "Send Special Key"
//----------------------------------------------
RESOURCE MENU_PANE r_menu_send_special_key_cascade
{
items =
{
MENU_ITEM
{
command = EKeyPressBACK_SPACE;
txt = STRING_KeyPressBACK_SPACE;
},
MENU_ITEM
{
command = EKeyPressTAB;
txt = STRING_KeyPressTAB;
},
MENU_ITEM
{
command = EKeyPressENTER;
txt = STRING_KeyPressENTER;
},
MENU_ITEM
{
command = EKeyPressESCAPE;
txt = STRING_KeyPressESCAPE;
},
MENU_ITEM
{
command = EKeyPressDELETE;
txt = STRING_KeyPressDELETE;
},
MENU_ITEM
{
command = EKeyPressHOME;
txt = STRING_KeyPressHOME;
},
MENU_ITEM
{
command = EKeyPressEND;
txt = STRING_KeyPressEND;
},
MENU_ITEM
{
command = EKeyPressPGUP;
txt = STRING_KeyPressPGUP;
},
MENU_ITEM
{
command = EKeyPressPGDN;
txt = STRING_KeyPressPGDN;
},
MENU_ITEM
{
command = EKeyPressUP;
txt = STRING_KeyPressUP;
},
MENU_ITEM
{
command = EKeyPressDOWN;
txt = STRING_KeyPressDOWN;
},
MENU_ITEM
{
command = EKeyPressLEFT;
txt = STRING_KeyPressLEFT;
},
MENU_ITEM
{
command = EKeyPressRIGHT;
txt = STRING_KeyPressRIGHT;
},
MENU_ITEM
{
command = EKeyPressF1;
txt = STRING_KeyPressF1;
},
MENU_ITEM
{
command = EKeyPressF2;
txt = STRING_KeyPressF2;
},
MENU_ITEM
{
command = EKeyPressF3;
txt = STRING_KeyPressF3;
},
MENU_ITEM
{
command = EKeyPressF4;
txt = STRING_KeyPressF4;
},
MENU_ITEM
{
command = EKeyPressF5;
txt = STRING_KeyPressF5;
},
MENU_ITEM
{
command = EKeyPressF6;
txt = STRING_KeyPressF6;
},
MENU_ITEM
{
command = EKeyPressF7;
txt = STRING_KeyPressF7;
},
MENU_ITEM
{
command = EKeyPressF8;
txt = STRING_KeyPressF8;
},
MENU_ITEM
{
command = EKeyPressF9;
txt = STRING_KeyPressF9;
},
MENU_ITEM
{
command = EKeyPressF10;
txt = STRING_KeyPressF10;
},
MENU_ITEM
{
command = EKeyPressF11;
txt = STRING_KeyPressF11;
},
MENU_ITEM
{
command = EKeyPressF12;
txt = STRING_KeyPressF12;
},
MENU_ITEM
{
command = EKeyPressPRINT_SCREEN;
txt = STRING_KeyPressPRINT_SCREEN;
},
MENU_ITEM
{
command = EKeyPressPAUSE;
txt = STRING_KeyPressPAUSE;
},
MENU_ITEM
{
command = EKeyPressINSERT;
txt = STRING_KeyPressINSERT;
}
};
}
// -----------------------------------------------------------------------------
//
// r_Input_Text_query
// Text query
//
// -----------------------------------------------------------------------------
//
RESOURCE DIALOG r_Input_Text_query
{
flags = EAknGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
label = STRING_INPUT_TEXT_DIALOG; // prompt text
control = EDWIN
{
width = 5;
lines = 8;
maxlength = 128;
};
};
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -