/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/*************************************************/
/* File   : Limits.h                             */
/* Purpose: Definitions relating to fundamental  */
/*          compile-time limitations of the app. */
/* Author : A.D.Hodgkinson                       */
/* History: 13-Nov-96: Created                   */
/*************************************************/

/* Footnote - where these define maximum string lengths; that */
/* length does not include the zero terminator, unless stated */
/* otherwise.                                                 */

#define MaxLstLen   32   /* Maximum length of a token in the Messages file    */
#define MaxMsgLen   480  /* Maximum length of the text returned by a          */
                         /* MessageTrans lookup in the Messages file          */

#define MaxPrgLen   40   /* Maximum length of the app's name for flex library */

#define MaxUrlLen   999  /* Maximum length of entries in the URL bar writable */
                         /* or Open URL dialogue box writable                 */
#define MaxDiaLen   16   /* Maximum length of dialler status display          */
#define MaxStaLen   999  /* Maximum length of status bar status display       */
#define MaxBytLen   20   /* Maximum length of status bar bytes display        */
#define UrlLabLen   16   /* Maximum length of URL writable label              */
#define DiaLabLen   16   /* Maximum length of dialler status label            */
#define StaLabLen   16   /* Maximum length of status display label            */
#define BytLabLen   16   /* Maximum length of byte counter label              */

#define MaxHelpLen  256  /* Maximum length of a help text message for gadgets */
                         /* where this text must be dynamically altered       */

#define MaxTiBLen   999  /* Maximum length of title bar string                */

#define MaxHstLen   256  /* History file default save pathname max length     */
#define MaxHotLen   256  /* As MaxHstLen but for the hotlist                  */
#define MaxPoILen   256  /* As MaxHstLen but for the post-in pathname         */
#define MaxPoOLen   256  /* As MaxPoILen but for post-out                     */

#define FontNameLen 64   /* Typeface name maximum length in FontManage.c      */
#define TypeNameLen 20   /* RISC OS font name maximum length in FontManage.c  */

#define MaxAuthDisp 256  /* Max length of display panel in authorisation dbox */
#define MaxAuthUser 256  /* Max length of user name in authorisation dbox     */
#define MaxAuthPass 256  /* Max length of password in authorisation dbox      */

#define MaxFindLen  128  /* Max length of entires in the Find dialogue box    */