// AGENDA.HRH
//
// Copyright (c) 1997-1999 Symbian Ltd.  All rights reserved.
//

// constants

#define EAgnEntryTitleMaxLength				200
#define EAgnEntryTitleControlWidth			240
#define EAgnEntryTitleControlShortHeight	20
#define EAgnEntryTitleControlLongHeight		80
#define EAgnEntryTitleControlButtonLength	35
#define EAgnTodoListNameMaxLength			50 //kd 112 (24) // gc 105 (16)
#define EAgnTodoListNameMaxDisplayLength	12 // gc 106 ?
#define EAgnTodoListNameMaxTBufLength		20 // gc 112 - for other than choice lists
#define EAgnErrorLabelsReservedLength		80

// Dates
#define EAgnMaxDay		30	
#define EAgnMaxMonth	11
#define EAgnMaxYear		2100
#define EAgnMaxSecond	59	
#define EAgnMaxMinute	59	
#define EAgnMaxHour		23	

#define EAgnMinDay		0
#define EAgnMinMonth	0
#define EAgnMinYear		1980	

#define EAgnNumberOfDays		44195 
#define EAgnMinAnnivBaseYear	-30000 
#define EAgnMinEventDuration	1
#define EAgnMinTodoDaysWarning	0

#define EAgnMaxAlarmDaysPrevious 31 
#define EAgnOneDayAsSeconds		 86400
#define EAgnOneMonthAsSeconds	 2678400

#define EAgnMinTodoPriority	1
#define EAgnMaxTodoPriority	9

#define EAgnMinRepeatInterval 1
#define EAgnMaxRepeatInterval 100

#define EAgnMinNumberOfRepeatInstances 1
#define EAgnMaxNumberOfRepeatInstances 999999 // @

// Should relate to CAgnRptDef::TType
// NOTE: CAgnRptDef::TType defines no '0' value - hence the existence of these defines
enum
	{
	EAgnRepeatTypeNone=0,
	EAgnRepeatTypeDaily,
	EAgnRepeatTypeWeekly,
	EAgnRepeatTypeMonthlyByDates,
	EAgnRepeatTypeMonthlyByDay,
	EAgnRepeatTypeYearlyByDate,
	EAgnRepeatTypeYearlyByDay
	};

enum
	{
	EAgnAnnivRepeatTypeYearlyByDate=0,
	EAgnAnnivRepeatTypeYearlyByDays,
	EAgnAnnivRepeatTypeNone
	};

enum
	{
// Toolbar - separate from menu as easier to debug
	EAgnTCmdGoto=1,
	EAgnTCmdFileName,
	EAgnTCmdNewView,
	EAgnTCmdDraw,
	EAgnTCmdJumpToToday,

// file menu pane and cascades
	EAgnCmdPrintCascade,
	EAgnCmdPageSetup,
	EAgnCmdFileCascade,

// edit menu pane and cascades
	EAgnCmdEditDelete,
	EAgnCmdGotoCascade,
	EAgnCmdSearchGotoPrev,
	EAgnCmdSearchGotoNext,
	EAgnCmdSearchGotoDate,
	EAgnCmdEditCalendar,
	EAgnCmdEditMoreCascade,
	EAgnCmdInsertVoiceNote,
	EAgnCmdInsertMemo,

// entry menu pane
	EAgnCmdEntryChangeType,
	EAgnCmdNewCascade,
	EAgnCmdNewDayEntry,
	EAgnCmdNewEvent,
	EAgnCmdNewTodo,
	EAgnCmdNewAnniv,
	EAgnCmdEntryManageRepeat,
	EAgnCmdEntryAlarm,
	EAgnCmdEntryCrossout,
	EAgnCmdEntryRepeat,
	EAgnCmdEntryMoreCascade,
	EAgnCmdEntryPrivate,
	EAgnCmdEntryTentative,

// todo lists menu pane
	EAgnCmdTodoListNew,
	EAgnCmdTodoListRename,
	EAgnCmdTodoListDelete,
	EAgnCmdTodoListSynchronise,
	EAgnCmdTodoListPrefs,

// view menu pane
	EAgnCmdViewWrap,
	EAgnCmdViewToolbar,
	EAgnCmdViewCascade,
	EAgnCmdViewCycle,

// change view cascade
	EAgnCmdDayView,
	EAgnCmdWeekView,
	EAgnCmdBusyView,
	EAgnCmdYearView,
	EAgnCmdAnnivView,
	EAgnCmdTodoView,

// tools pane
	EAgnCmdViewPrefsView,
	EAgnCmdEntryPrefsCascade,
	EAgnCmdViewPrefsGen,
	EAgnCmdIrdaCascade,

// entry prefs cascade
	EAgnCmdEntryPrefsDayEntry,
	EAgnCmdEntryPrefsEvent,
	EAgnCmdEntryPrefsAnniv,
	EAgnCmdEntryPrefsTodo
	};

// multi page dialogs page ids
enum
	{
	EAgnCIDEntryTitlePage,
	EAgnCIDEntryDetailsPage,
	EAgnCIDTodoDatesPage,
	EAgnCIDAlarmPage,
	EAgnCIDOtherPage
	};

// dialogs
enum
	{
	EAgnCIDJumpToDate
	};

// progress
enum
	{
	EAgnCIDProgInfo,
	// EAgnCIDFormattingPages uses,
	EAgnCIDMergeProgress
	};

// form prefs dialogs
enum
	{
// standard
	EAgnCIDPrefsLabel,
	EAgnCIDPrefsShowTimedAppts,
	EAgnCIDPrefsShowUntimedAppts,
	EAgnCIDPrefsShowEvents,
	EAgnCIDPrefsShowAnnivs,
	EAgnCIDPrefsShowTodos,
	EAgnCIDFormPrefsDefaultType,
	EAgnCIDFormPrefsShowWhat,
	EAgnCIDFormPrefsTitleSide,

// year
	EAgnCIDYearPrefsMonthAtTop,
	EAgnCIDYearPrefsWhichSymbols,
	EAgnCIDYearPrefsShowSymbol,

// day
	EAgnSlotPrefsButton,
	EAgnAllowedTypesButton,
	EAgnCIDSlotCompression,
	EAgnCIDDurationBars,
	EAgnCIDOverlapBars,
	EAgnCIDLeftSlotFrom,
	EAgnCIDLeftSlotDuration,
	EAgnCIDLeftSlotTo,
	EAgnCIDLeftSlotAdornments,
	EAgnCIDRightSlotFrom,
	EAgnCIDRightSlotDuration,
	EAgnCIDRightSlotTo,
	EAgnCIDRightSlotAdornments,

// anniv
	EAgnCIDAnnivNoMonthsPerSide,

// busy
	EAgnCIDBusyShowCrossedOut,
	EAgnCIDBusyNormalStart,
	EAgnCIDBusyNormalEnd,
	EAgnCIDBusyWorkStart,
	EAgnCIDBusyWorkEnd
	};

// find dialogs
enum 
	{
	EAgnExtraOptionsButton,
	EAgnResetExtraOptionsButton,
	EAgnCIDFindText,
	EAgnCIDFindPeriod,
	EAgnCIDFindFrom,
	EAgnCIDFindTo,
	EAgnCIDFindRepeat,
	EAgnCIDFindCrossedOut,
	EAgnCIDFindLabel,
	EAgnCIDFindAppt,
	EAgnCIDFindEvent,
	EAgnCIDFindTodo,
	EAgnCIDFindAnniv,
	EAgnCIDFindAlarm,
// Find results
	EAgnCIDFindResultsWindow,
	EAgnCIDFindResultsCount,
	EAgnCIDFindResultsStatus,
	EAgnBidFindStop	
	};

// print commands
enum
	{
	EAgnPrintSetupButton,
	EAgnCIDPrinterName,
	EAgnCIDPrintRange,
	EAgnCIDPrintStartDate,
	EAgnCIDPrintEndDate,
	EAgnCIDPrintRepeatEntries,
	EAgnCIDPrintCrossedOut,
	EAgnCIDFormattingProgress,
	EAgnCIDFormattingPages,
	EAgnCIDPrintNoOfCopies
	};

// Merge dialog
enum
	{
	EAgnCIDMergeType,
	EAgnCIDMergeFile,
	EAgnCIDMergeFolder,
	EAgnCIDMergeDrive
	};

// Tidy dialog
enum
	{
	EAgnCIDTidiedEntries,
	EAgnCIDTidyFile,
	EAgnCIDTidyFolder,
	EAgnCIDTidyDrive,
	EAgnCIDTidyRange,
	EAgnCIDTidyStart,
	EAgnCIDTidyEnd,
	EAgnCIDTidyWhich
	};

// General prefs dialog
enum
	{
	EAgnCIDGeneralPrefsView=1,
	EAgnCIDGeneralPrefsTaps,
	EAgnCIDGeneralPrefsScalingFactor,
	EAgnCIDGeneralPrefsAutoCompress
	};

// todo list settings stuff
enum
	{
	EAgnCIDSortOrder,
	EAgnCIDDisplayCrossedOut,
	EAgnCIDDisplayInDatedViews,
	EAgnCIDDefaultPositionInDayView,
	EAgnCIDDisplayCrossedOutInDatedViews,
	EAgnCIDTodoListNumber,
	EAgnCIDTodoViewPage
	};

// edit repeat stuff
enum
	{
	EAgnCIDRepeatEntriesType,
	EAgnCIDRepeatEntriesInterval,
	EAgnCIDRepeatEntriesFrom,
	EAgnCIDRepeatEntriesForever,
	EAgnCIDRepeatEntriesUntil,
	EAgnCIDRepeatEntriesOccurences,
	EAgnCIDRepeatEntriesShow,

	EAgnCIDWeeklyRepeatMonday,
	EAgnCIDWeeklyRepeatTuesday,
	EAgnCIDWeeklyRepeatWednesday,
	EAgnCIDWeeklyRepeatThursday,
	EAgnCIDWeeklyRepeatFriday,
	EAgnCIDWeeklyRepeatSaturday,
	EAgnCIDWeeklyRepeatSunday,

	EAgnCIDMonthlyRepeatOnLabel,
	EAgnBIDMonthlyRepeatClear,
	EAgnBIDMonthlyRepeatSet,
	EAgnCIDMonthlyRepeatDaysSet,

	EAgnCIDMonthlyDaysRepeatDays,
	EAgnCIDMonthlyDaysRepeatOccurrences,

	EAgnCIDMonthlyDatesRepeatDate,
	EAgnCIDYearlyByDayOccurrence,
	EAgnCIDYearlyByDayDayInWeek
	};

// which repeat
enum
	{
	EAgnCIDWhichRepeatAll,
	EAgnCIDWhichRepeatOne,
	EAgnCIDWhichRepeat
	};

// edit entry dialogs
enum
	{
	EAgnDetailsButton=50,

// shared
	EAgnCIDEntryText,
	EAgnCIDRTxtToolband,
	EAgnBIDFont,
	EAgnBIDObject,
	EAgnBIDFormatObject,
	EAgnCIDEntrySymbol,
	EAgnCIDEntryPrivate,
	EAgnCIDEntrySynch,
	EAgnCIDTodoSynchLabel1,
	EAgnCIDTodoSynchLabel2,
	EAgnCIDEntryIsTentative,

// recycled
	EAgnCIDEntryStart,
	EAgnCIDEntryDuration,
	EAgnCIDEntryEnd,

// day notes
	EAgnCIDApptIsTimed,
	EAgnCIDRptApptStart,
	EAgnCIDDayNoteStart,

// todos
	EAgnCIDTodoPriority,
	EAgnCIDTodoListName,
	EAgnCIDTodoHasDate,
	EAgnCIDTodoDueDate,
	EAgnCIDTodoWarningFrom,
	EAgnCIDTodoDaysWarning,
	EAgnCIDTodoShowAs,

// annivs
	EAgnCIDAnnivDay,
	EAgnCIDAnnivMonth,
	EAgnCIDAnnivHasStart,
	EAgnCIDAnnivYear,
	EAgnCIDAnnivShowAs,

// alarms
	EAgnCIDHasAlarm,
	EAgnCIDTimeBefore,
	EAgnCIDAlarmAt,
	EAgnCIDDaysPrevious,
	EAgnCIDTimePrevious,
	EAgnCIDAlarmSound,
	EAgnCIDTodoAlarmRelativeTo,

// change type
	EAgnCIDEntryType,

//
// entry prefs dialogs
	EAgnBIDEntryPrefsAlarmDefs,
	EAgnCIDTimedAlarmPage,
	EAgnCIDUntimedAlarmPage,
	EAgnCIDEntryPrefsDisplayTime,
	EAgnCIDEntryPrefsHasEntryCode,
	EAgnCIDEntryPrefsEntryCode,
	EAgnCIDApptHasAlarm,
	EAgnCIDApptAlarmDaysPrevious,
	EAgnCIDApptAlarmTimeBefore,
	EAgnCIDApptAlarmSound
	};

enum
	{
	EAgnChangeTypeButton=1,
	EAgnEditDetailsButton,
	EAgnCIDPasteInvisibleEntryLabel,
	EAgnCIDPasteInvisibleEntryReason
	};

// error dialog
enum
	{
	EAgnBIDClose
	};

enum
	{
	EAgnCIDErrorFirstLine,
	EAgnCIDErrorSecondLine,
	EAgnCIDErrorThirdLine
	};
