williamr@2: /* williamr@2: * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: This file contains declarations for resources of williamr@2: * Common File Dialogs. The file can be included only in williamr@2: * resource file. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: // INCLUDES williamr@2: williamr@2: // STRUCTURE DEFINITIONS williamr@2: williamr@2: // --------------------------------------------------------- williamr@2: // FILTER williamr@2: // FILTER is a resource structure for filter definition. williamr@2: // "filter_type" defines if the filter is an attribute or a filename filter. williamr@2: // "filter_style" defines if the filter is an inclusive or an exclusive filter. williamr@2: // Inclusive filter doesn't accept anything but the files and folders (entries) williamr@2: // that match with the filter. Exclusive filter accepts only those entries williamr@2: // that match with the filter. williamr@2: // "filter_data" is an array of strings: williamr@2: // In filename filter data is wildcards ("*.jpg", "*.gif", ...). williamr@2: // In attribute filter data is first letters of attributes williamr@2: // ("R", "H", "S", ... or "RHS"). williamr@2: // The attributes in Symbian OS file system are: williamr@2: // Read only, Hidden, System, Volume, Directory and Archive williamr@2: // Note! Files and directories with System attribute are always hidden williamr@2: // from user. williamr@2: // --------------------------------------------------------- williamr@2: // williamr@2: STRUCT FILTER williamr@2: { williamr@2: WORD filter_type; williamr@2: WORD filter_style; williamr@2: LTEXT filter_data[]; williamr@2: } williamr@2: williamr@2: // --------------------------------------------------------- williamr@2: // LOCATION williamr@2: // LOCATION is a resource structure that defines a root path and a default folder. williamr@2: // "root_path" is the absolute path to be considered as root when browsing. williamr@2: // e.g. "C:\\Nokia\\" williamr@2: // "default_folder" is the folder where browsing is started. williamr@2: // e.g. "Images\\Pictures\\" williamr@2: // Note! Do not put folder names in .LOC file! These are williamr@2: // physical file system paths. Possible localization is done williamr@2: // in the DLL. williamr@2: // Note! Remeber to use trailing backslash! williamr@2: // --------------------------------------------------------- williamr@2: // williamr@2: STRUCT LOCATION williamr@2: { williamr@2: LTEXT root_path; williamr@2: LTEXT default_folder; williamr@2: } williamr@2: williamr@2: // --------------------------------------------------------- williamr@2: // MEMORYSELECTIONDIALOG williamr@2: // MEMORYSELECTIONDIALOG is a resource structure for memory selection dialog. williamr@2: // In this structure a title and texts for softkeys can be defined. williamr@2: // "title" is "Select memory:" by default if it is not defined. williamr@2: // Locations of the memories can be defined. williamr@2: // NOTE: Locations for memory selection dialog is deprecated. Only use it williamr@2: // when using TMemory parameter in CAknMemorySelectionDialog williamr@2: // @see CAknMemorySelectionDialog williamr@2: // --------------------------------------------------------- williamr@2: // williamr@2: STRUCT MEMORYSELECTIONDIALOG williamr@2: { williamr@2: LTEXT title; williamr@2: LTEXT softkey_1; williamr@2: LTEXT softkey_2; williamr@2: STRUCT locations[]; // LOCATION williamr@2: } williamr@2: williamr@2: // --------------------------------------------------------- williamr@2: // FILESELECTIONDIALOG williamr@2: // This is a resource structure for file selection dialog. williamr@2: // In this structure a title and texts for softkeys can be defined. williamr@2: // "title" is "Select from:" by default if it is not defined. williamr@2: // "softkey_1_file" is shown when a file is focused. williamr@2: // "softkey_1_folder" is shown when a folder is focused. williamr@2: // "softkey_2_root_level" is shown when user is browsing in the first level (root folder). williamr@2: // "softkey_2_subfolder" is shown when user is browsing in a subfolder williamr@2: // "root_path" and "default_folder" can be defined. They are explained in LOCATION struct. williamr@2: // Filters can be defined with FILTER structures. williamr@2: // --------------------------------------------------------- williamr@2: // williamr@2: STRUCT FILESELECTIONDIALOG williamr@2: { williamr@2: LTEXT title; williamr@2: LTEXT softkey_1_file; williamr@2: LTEXT softkey_1_folder; williamr@2: LTEXT softkey_2_root_level; williamr@2: LTEXT softkey_2_subfolder; williamr@2: LTEXT root_path; williamr@2: LTEXT default_folder; williamr@2: STRUCT filters[]; // FILTER structs williamr@2: } williamr@2: williamr@2: // --------------------------------------------------------- williamr@2: // FILENAMEPROMPTDIALOG williamr@2: // A structure for prompting a single filename. williamr@2: // In this structure a title and texts for softkeys can be defined. williamr@2: // "default_filename" defines the default filename. Extension is not shown. williamr@2: // "path" is the path that the file is supposed to save. williamr@2: // If path is set, it can be checked if file already exists. williamr@2: // --------------------------------------------------------- williamr@2: // williamr@2: STRUCT FILENAMEPROMPTDIALOG williamr@2: { williamr@2: LTEXT filename_prompt; // title williamr@2: LTEXT default_filename; williamr@2: LTEXT path; williamr@2: LTEXT softkey_1; williamr@2: LTEXT softkey_2; williamr@2: } williamr@2: williamr@2: // End of File