Back to index

lightning-sunbird  0.9+nobinonly
ApplIDs.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *
00003  * ***** BEGIN LICENSE BLOCK *****
00004  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00005  *
00006  * The contents of this file are subject to the Mozilla Public License Version
00007  * 1.1 (the "License"); you may not use this file except in compliance with
00008  * the License. You may obtain a copy of the License at
00009  * http://www.mozilla.org/MPL/
00010  *
00011  * Software distributed under the License is distributed on an "AS IS" basis,
00012  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00013  * for the specific language governing rights and limitations under the
00014  * License.
00015  *
00016  * The Original Code is the Mozilla browser.
00017  *
00018  * The Initial Developer of the Original Code is
00019  * Netscape Communications, Inc.
00020  * Portions created by the Initial Developer are Copyright (C) 1999
00021  * the Initial Developer. All Rights Reserved.
00022  *
00023  * Contributor(s):
00024  *   Conrad Carlen <conrad@ingress.com>
00025  *
00026  * Alternatively, the contents of this file may be used under the terms of
00027  * either the GNU General Public License Version 2 or later (the "GPL"), or
00028  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00029  * in which case the provisions of the GPL or the LGPL are applicable instead
00030  * of those above. If you wish to allow use of your version of this file only
00031  * under the terms of either the GPL or the LGPL, and not to allow others to
00032  * use your version of this file under the terms of the MPL, indicate your
00033  * decision by deleting the provisions above and replace them with the notice
00034  * and other provisions required by the GPL or the LGPL. If you do not delete
00035  * the provisions above, a recipient may use your version of this file under
00036  * the terms of any one of the MPL, the GPL or the LGPL.
00037  *
00038  * ***** END LICENSE BLOCK ***** */
00039 
00040 /*
00041  * Declares application dependent IDs for resources, messages, on so on
00042  * It is meant to be replaced or added to by any application using the
00043  * classes in this project. The file name name should not be changed though or
00044  * source files that include it will have to be changed.
00045  */
00046  
00047 #ifndef __ApplIDs__
00048 #define __ApplIDs__
00049  
00050 //*****************************************************************************
00051 //***    Resource IDs
00052 //*****************************************************************************
00053 
00054 // Windows
00055 enum {
00056     wind_DownloadProgress = 1305
00057 };
00058 
00059 // Views
00060 enum {
00061     view_BrowserStatusBar = 130,
00062     view_BrowserToolBar = 131,
00063     view_DownloadProgressItem = 1306
00064 };
00065 
00066 // Dialogs
00067 enum {
00068     dlog_FindDialog = 1281
00069 };
00070 
00071 // nsIPrompt
00072 enum {
00073     dlog_Alert = 1282,
00074     dlog_AlertCheck = 1289,
00075     dlog_Confirm = 1283,
00076     dlog_ConfirmCheck = 1284,
00077     dlog_Prompt = 1285,
00078     dlog_PromptNameAndPass = 1286,
00079     dlog_PromptPassword = 1287,
00080     dlog_ConfirmEx = 1288
00081 };
00082 
00083 // Printing
00084 enum {
00085     dlog_OS9PrintProgress = 1290
00086 };
00087 
00088 // Profile Mgmt
00089 enum {
00090     dlog_ManageProfiles = 1300,
00091     dlog_NewProfile = 1301
00092 };
00093 
00094 // Alerts
00095 enum {
00096     alrt_ConfirmProfileSwitch   = 1500,
00097     alrt_ConfirmLogout          = 1501
00098 };
00099 
00100 // MENUs
00101 enum {
00102     menu_Buzzwords              = 1000
00103 };
00104 
00105 // Mcmds
00106 enum {
00107     mcmd_BrowserShellContextMenuCmds = 1200
00108 };
00109 
00110 // STR#s
00111 
00112 enum {
00113     STRx_FileLocProviderStrings = 5000,
00114     
00115     str_AppRegistryName         = 1,
00116     str_ProfilesRootDirName,
00117     str_DefaultsDirName,
00118     str_PrefDefaultsDirName,
00119     str_ProfileDefaultsDirName,
00120     str_ResDirName,
00121     str_ChromeDirName,
00122     str_PlugInsDirName,
00123     str_SearchPlugInsDirName
00124 };
00125 
00126 enum {
00127     STRx_StdButtonTitles        = 5001,
00128     
00129     str_Blank                   = 1,
00130     str_OK,
00131     str_Cancel,
00132     str_Yes,
00133     str_No,
00134     str_Save,
00135     str_DontSave,
00136     str_Revert,
00137     str_Allow,
00138     str_DenyAll
00139 };
00140 
00141 enum {
00142     STRx_StdAlertStrings        = 5002,
00143     
00144     str_OpeningPopupWindow      = 1,
00145     str_OpeningPopupWindowExp,  
00146     str_ConfirmCloseDownloads,
00147     str_ConfirmCloseDownloadsExp
00148 };
00149 
00150 enum {
00151     STRx_DownloadStatus         = 5003,
00152     
00153     str_ProgressFormat          = 1,
00154     
00155     str_About5Seconds,
00156     str_About10Seconds,
00157     str_LessThan1Minute,
00158     str_About1Minute,
00159     str_AboutNMinutes,
00160     str_About1Hour,
00161     str_AboutNHours
00162 };
00163 
00164 // Icons
00165 enum {
00166     icon_LockInsecure       = 1320,
00167     icon_LockSecure,
00168     icon_LockBroken
00169 };
00170 
00171 
00172 //*****************************************************************************
00173 //***    Message IDs
00174 //*****************************************************************************
00175 
00176 enum {
00177     msg_OnStartLoadDocument        = 1000,
00178     msg_OnEndLoadDocument       = 1001
00179 };
00180 
00181 //*****************************************************************************
00182 //***    Command IDs
00183 //*****************************************************************************
00184 
00185 enum {
00186     cmd_OpenDirectory           = 'ODir',
00187     cmd_OpenLinkInNewWindow     = 'OLnN',
00188     
00189        cmd_Back                    = 'Back',
00190        cmd_Forward                 = 'Forw',
00191        cmd_Reload                  = 'Rlod',
00192        cmd_Stop                    = 'Stop',
00193 
00194        cmd_Find                    = 'Find',
00195        cmd_FindNext                = 'FNxt',
00196 
00197        cmd_ViewPageSource          = 'VSrc',
00198        cmd_ViewImage               = 'VImg',
00199        cmd_ViewBackgroundImage     = 'VBIm',
00200        
00201        cmd_CopyImage               = 'CpIm',
00202 
00203        cmd_CopyLinkLocation        = 'CLnk',
00204        cmd_CopyImageLocation       = 'CImg',
00205 
00206     cmd_SaveFormData            = 'SFrm',
00207     cmd_PrefillForm             = 'PFFm',
00208     
00209     
00210     cmd_ManageProfiles          = 'MPrf',
00211     cmd_Logout                  = 'LOut',
00212     
00213     cmd_SaveLinkTarget          = 'DnlL',
00214     cmd_SaveImage               = 'DlIm'
00215 };
00216 
00217 //*****************************************************************************
00218 //***    Apple Events
00219 //*****************************************************************************
00220 
00221 enum {
00222     // A key that we use internally with kAEGetURL
00223     keyGetURLReferrer           = 'refe'
00224 };
00225 
00226 #endif // __ApplIDs__