
! ******************************************************************************
! mcardfile is designed to be extensible with various foreign languages.
! This is accomplished by defining all language dependent prompts in this
! resource file. Specifically, this resource file contains the widget name,
! its resource to be set, and its value. Assigning a value is not tricky
! (a value appears after the resource name and the ":",
!  eg "font: my_favorite_font"). However, it is difficult to under the
! programmer's namely convention to identify a widget.
!
! If you think like me, determining the names and their association in the
! interface will not be difficult. Otherwise, good luck and I hope there
! are enough comments.
!
! The primary aspect to the interface is the main menu. It is no different
! than any than any other main menu. Under the main menu, there are pull
! down menus', called sub menus'. An example of the interface and a sub
! menu is (albeit poorly) shown below.
!  ________________________________________
!  |  File Edit View Card Search Help      |     <- main menu or the "Main_Menu"
!  ----------------------------------------
!   -------------
!   |   New     |
!   |   Open    |
!   |   Save    |  <- Sub menus' are under the main menu. Each one these
!   |    ...    |     widgets begins with the name taken from the main menu.
!   |    Exit   |     (ie, File_Menu Edit_Menu Card_Menu Search_Menu Help_Menu)
!   -------------
!
! Within each of these menus' (main and sub), each word is reference via its
! widget button number, "button_n" where "n" is a digit (starts at "0").
!    As an example, the seventh button in the File_Menu has the value "Exit"
!    Obviously, this quits the program.  The English resource entry is
!       *File_Menu.button_7.labelString: Exit
!    If you spoke French, the entry would be
!       *File_Menu.button_7.labelString: Sortie
! 
! ******************************************************************************
! Global resource specification.
! These are the defaults unless specified otherwise
!
! Everything will have this background color 
!
*background: orange

! ******************************************************************************
! Resources for the Main Menu
!
*Main_Menu.button_0.labelString: File
*Main_Menu.button_1.labelString: Edit
*Main_Menu.button_2.labelString: View
*Main_Menu.button_3.labelString: Card
*Main_Menu.button_4.labelString: Search
*Main_Menu.button_5.labelString: Help

! The mnemonic gets displayed, but isn't accessible?
!*Main_Menu.button_0.mnemonic: F
!*Main_Menu.button_1.mnemonic: E
!*Main_Menu.button_2.mnemonic: V
!*Main_Menu.button_3.mnemonic: C
!*Main_Menu.button_4.mnemonic: S
!*Main_Menu.button_5.mnemonic: H

! In the font specification below, use the wild card, "*" and not "."
! There are sub children, buttons & pull down menus, that won't get included.
! --> *Main_Menu.fontList: *courier-bold*180*iso8859-1 <--
!
*Main_Menu*fontList: 10x20
*Main_Menu.background: yellow

! *****************************************************
! Resources for the File sub menu (off the main menu)
!
*File_Menu.button_0.labelString: New
*File_Menu.button_1.labelString: Open
*File_Menu.button_2.labelString: Save
*File_Menu.button_3.labelString: Save As
*File_Menu.button_4.labelString: Print
*File_Menu.button_5.labelString: Print All
*File_Menu.button_6.labelString: Merge
*File_Menu.button_7.labelString: Exit
!*File_Menu.button_2.Sensitive: False
*File_Menu.button_3.Sensitive: False



! Now the accelerator keystrokes & function keys
!     New
*File_Menu.button_0.accelerator: Ctrl<Key>n
*File_Menu.button_0.acceleratorText: Ctrl+n
!     Save
*File_Menu.button_2.accelerator: Ctrl<Key>s
*File_Menu.button_2.acceleratorText: Ctrl+s
!     Exit
*File_Menu.button_7.accelerator: Ctrl<Key>q
*File_Menu.button_7.acceleratorText: Ctrl+q


! *****************************************************
! Resources for the Edit sub menu (off the main menu)
!
*Edit_Menu.button_0.labelString: Undo
*Edit_Menu.button_1.labelString: Cut
*Edit_Menu.button_2.labelString: Copy
*Edit_Menu.button_3.labelString: Paste
! For future versions
*Edit_Menu.button_4.labelString: Restore
*Edit_Menu.button_5.labelString: Text
*Edit_Menu.button_6.labelString: Picture

*Edit_Menu.button_1.Sensitive: False
*Edit_Menu.button_4.Sensitive: False
*Edit_Menu.button_5.Sensitive: False
*Edit_Menu.button_6.Sensitive: False

!     Undo
*Edit_Menu.button_0.accelerator: Ctrl<Key>z
*Edit_Menu.button_0.acceleratorText: Ctrl+z

!     Cut
*Edit_Menu.button_1.accelerator: Ctrl<Key>x
*Edit_Menu.button_1.acceleratorText: Ctrl+x

!     Copy
*Edit_Menu.button_2.accelerator: Ctrl<Key>c
*Edit_Menu.button_2.acceleratorText: Ctrl+c
!     Paste
*Edit_Menu.button_3.accelerator: Ctrl<Key>v
*Edit_Menu.button_3.acceleratorText: Ctrl+v

! *****************************************************
! Resources for the view sub menu (off the main menu)
!
*View_Menu.button_0.labelString: Card
*View_Menu.button_1.labelString: List
*View_Menu.button_1.Sensitive: False

! *****************************************************
! Resources for the Card Sub Menu (off the main menu)
!
*Card_Menu.button_0.labelString: Add
*Card_Menu.button_1.labelString: Delete
*Card_Menu.button_2.labelString: Duplicate
*Card_Menu.button_3.labelString: Auto Dial
*Card_Menu.button_3.Sensitive: False

*Card_Menu.button_0.accelerator: <Key>F7
*Card_Menu.button_0.acceleratorText: F7

! *****************************************************
! Resources for the Search Sub Menu (off the main menu)
!
*Search_Menu.button_0.labelString: Goto...
*Search_Menu.button_1.labelString: Find...
*Search_Menu.button_2.labelString: Find Next

*Search_Menu.button_0.accelerator: <Key>F4
*Search_Menu.button_0.acceleratorText: F4

*Search_Menu.button_2.accelerator: <Key>F3
*Search_Menu.button_2.acceleratorText: F3

! *****************************************************
! Resources for the Help Sub Menu (off the main menu)
!
*Help_Menu.button_0.labelString: About
*Help_Menu.button_1.labelString: Help
*Help_Menu.button_1.Sensitive: False

! ******************************************************************************
! *****************************************************
! Resource for the "card" widget
!
! *Card*fontList: 10x20
*Card*fontList: r14
*Card*background: seagreen3

! Figure out how to implement some of the action routines for the text widgets
!*Card*accelerators: \n\


! ************************************************************
! Resources for the 2 arrows. Note, both are changed equally,
! they have the same widget class, "Arrow".
! But their width & height may be changed to different values.
! Gives some really oblong shapes :-)
!
*Arrow*width: 25
*Arrow*height: 25
*Label*labelString: 1 Cards

! *******************************************************************
! Labels for the various Prompt Dialogs
! OK, Cancel, & Help are commented out. They are the default for English.
! Change this for other languages, or make sure its in the Xdefaults database.
!
! *.okLabelString: OK
! *.cancelLabelString: Cancel
! *.helpLabelString: Help

! Prompts needed for the "Add Card" Function
!
*New_Index_Prompt.selectionLabelString:  Enter Name for the Index
*New_Index_Prompt.dialogTitle:  Add Card Operation

! Prompts needed for the "Goto Label Search" Function
!
*Goto_Prompt.selectionLabelString: Enter Index String to Search for
*Goto_Prompt.dialogTitle:  Goto Card Operation

! Prompts needed for the "Search" Function
!
*Find_Prompt.selectionLabelString: Enter Text to Find
*Find_Prompt.dialogTitle:  Find Operation

*About_Prompt.dialogTitle:  About Mcard
*About_Prompt.messageString: Yet Another Great Program by Michael Oehler\nMcard  Verstion 1.3

! ************************
! Error Prompts
*Command_Line_Error.messageString: Invalid Command Line Arguments Ignored.

*Search_Error.messageString: No Text Was Selected
*Search_Error.dialogTitle:  Error

! Cut Error Message
*Cut_Error.messageString: No Text To Cut
*Cut_Error.dialogTitle:  Cut Error

! Error Message for About
*No_Pixmap.messageString: No Pixmap
*No_Pixmap.dialogTitle:  Unable to find Pixmap

! 
*File_Error.messageString: Unable to Complete File Operation
*File_Error1.messageString: Internal Error. Exit this program now!
*File_Error2.messageString: Unable to obtain information on a directory. Aborting. 
*File_Error.dialogTitle:  File Error

! Print job failed messages
*Print_Error*dialogTitle:  Print Error
*Print_Error.messageString:  Print Job Failed. Unable to Print
*Print_Error1.messageString: Print Job Terminated. Printing was Canceled.
*Print_Error2.messageString: Cannot Create a Print Process. Sorry. Printing Canceled.

! Print job success messages
*Print_Info*dialogTitle:  Print Success
*Print_Info.messageString: Print job submitted successfully to the print daemon.

