Changeset 1122
- Timestamp:
- Aug 27, 2008, 6:28:12 PM (17 years ago)
- Location:
- trunk/dll
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/fm3dll.h
r1117 r1122 570 570 VOID ResizeDrives(HWND hwndT, long xwidth); 571 571 BOOL CloseChildren(HWND hwndClient); 572 VOID BuildTools(HWND hwndT, BOOL resize);572 // VOID BuildTools(HWND hwndT, BOOL resize); 573 573 void BubbleHelp(HWND hwnd, BOOL other, BOOL data, BOOL above, char *help); 574 574 VOID MakeBubble(HWND hwnd, BOOL above, CHAR * help); … … 1179 1179 lastextractpath[CCHMAXPATH]; 1180 1180 DATADEF CHAR appname[12], realappname[12]; 1181 DATADEF CHAR lasttoolb ox[CCHMAXPATH], HomePath[CCHMAXPATH],1181 DATADEF CHAR lasttoolbar[CCHMAXPATH], HomePath[CCHMAXPATH], 1182 1182 SwapperDat[CCHMAXPATH], printer[CCHMAXPATH], szDefArc[CCHMAXPATH]; 1183 1183 DATADEF HMODULE FM3DllHandle, FM3ModHandle; -
trunk/dll/fm3dll.str
r1121 r1122 13 13 Pick a directory from the list or get a popup menu. 14 14 Pick a drive from the list. 15 Pick a toolb oxfrom the list.15 Pick a toolbar from the list. 16 16 Dropping here will add the directory to the list. 17 17 You're dragging %lu object(s) over the toolbar. 18 18 <New directory> 19 19 Common directories 20 Toolb oxes20 Toolbars 21 21 States 22 22 Commands … … 555 555 That ID already has a tool. 556 556 FM/2: Pick tool to %0.81s 557 FM/2: Load Toolb ox557 FM/2: Load Toolbar 558 558 OS/2 can't find directory "%s"? 559 559 There are no more directories under there... … … 958 958 ; FM/2 command line file, one per line\n 959 959 ; FM/2 associations file -- 5 lines: mask, cmd line, sig, offset, flags\n; For OS/2 associations only, uncomment following 5 lines:\n;*\n;<>\n;\n;0\n;0\n 960 ; \n;This file contains definitions for an FM/2 toolbox.\n;FM/2 saved this file as \"%s\".\n;\n;Each tool button has four lines that describe it. The first line is\n;the help for the button. The second line is the text for the button\n;(internally defined tools have icons, and the text is ignored). The\n;third line is a number indicating flags associated with the button.\n;A flag value of 1 means the button is dropable, 4 means invisible,\n;32 means use user-provided icon only (named <ID>.bmp).\n;The fourth line is the ID of the button (for internal commands only).\n;Note Commands begin at ID 4000, so a button with ID 4000 would cause\n;the first Command to be run and ID 4001 would run the second.\n;4900 marks the first \"quick toolbox change\" item, and you can\n;have up to 50 of them (these buttons load other toolboxes, see\n;online help).;\n960 ; Fixed: Ticket 267\n;\n; This file contains definitions for an FM/2 toolbar.\n;\n; To edit this file manually, see "Manual edit of toolbar files"\n; in the FM/2 help file.\n;\n;\n 961 961 [%c: \"%s\" SN: %08lx%s] 962 962 ; FM/2 seek and scan mask file, one mask set per line\n -
trunk/dll/fm3res.dlg
r1098 r1122 1080 1080 DLGTEMPLATE SVBTN_FRAME LOADONCALL MOVEABLE DISCARDABLE 1081 1081 BEGIN 1082 DIALOG "FM/2: Save Toolb ox", SVBTN_FRAME, 12, 6, 213, 148, WS_VISIBLE,1082 DIALOG "FM/2: Save Toolbar", SVBTN_FRAME, 12, 6, 213, 148, WS_VISIBLE, 1083 1083 FCF_TITLEBAR 1084 1084 BEGIN -
trunk/dll/fm3res.rc
r1085 r1122 1983 1983 MENUITEM "Reorder buttons...", IDM_REORDERTOOLS 1984 1984 MENUITEM "", -1, MIS_SEPARATOR 1985 MENUITEM "Save toolb ox...", IDM_SAVETOOLS1986 MENUITEM "Load toolb ox...", IDM_LOADTOOLS1985 MENUITEM "Save toolbar...", IDM_SAVETOOLS 1986 MENUITEM "Load toolbar...", IDM_LOADTOOLS 1987 1987 MENUITEM "", -1, MIS_SEPARATOR 1988 1988 MENUITEM "Help", IDM_HELP -
trunk/dll/fm3str.h
r1121 r1122 54 54 #define IDS_NEWDIRECTORYTEXT 17 55 55 #define IDS_COMMONDIRTEXT 18 56 #define IDS_TOOLB OXTEXT 1956 #define IDS_TOOLBARTEXT 19 57 57 #define IDS_STATETEXT 20 58 58 #define IDS_COMMANDSTEXT 21 … … 582 582 #define IDS_TOOLIDEXISTS 554 583 583 #define IDS_PICKTOOLTITLETEXT 555 584 #define IDS_LOADTOOLB OXTITLETEXT 556584 #define IDS_LOADTOOLBARTITLETEXT 556 585 585 #define IDS_CANTFINDDIRTEXT 557 586 586 #define IDS_NODIRSUNDERTEXT 558 -
trunk/dll/init.c
r1120 r1122 1403 1403 size = sizeof(mailrundir); 1404 1404 PrfQueryProfileData(fmprof, appname, "MailRunDir", mailrundir, &size); 1405 size = sizeof(lasttoolb ox);1406 PrfQueryProfileData(fmprof, FM3Str, "LastTool Box", lasttoolbox,1405 size = sizeof(lasttoolbar); 1406 PrfQueryProfileData(fmprof, FM3Str, "LastToolbar", lasttoolbar, 1407 1407 &size); 1408 1408 size = sizeof(BOOL); -
trunk/dll/ipf/config.ipf
r994 r1122 34 34 on the toolbar (see :link reftype=hd res=91800.Toolbar:elink. for more information) 35 35 You can switch between toolbars using the dialog that appears if you click :color fc=default bc=cyan.B2:color fc=default bc=default. over 36 an area of "white space" on the toolbar or by selecting load toolb oxfrom the previously36 an area of "white space" on the toolbar or by selecting load toolbar from the previously 37 37 discussed context menu. 38 38 :p. … … 70 70 :link reftype=hd res=91500.Walk Directories:elink. dialog). 71 71 .br 72 A Toolb oxesdropdown listbox also appears if the :hp6.Toolbar:ehp6. is on.72 A Toolbars dropdown listbox also appears if the :hp6.Toolbar:ehp6. is on. 73 73 :p. 74 74 The :hp6.Toggle bottom buttons:ehp6. menu item turns off and on a row of -
trunk/dll/ipf/context.ipf
r1094 r1122 751 751 :artwork name='..\..\bitmaps\undelete.bmp' align=center. 752 752 :p. 753 If you have res=99950.Delete = move to trashcan:elink. enabled undelete753 If you have :link reftype=hd res=99950.Delete = move to trashcan:elink. enabled undelete 754 754 will open the trahscan to facilitate resoring files. You will need to 755 755 rescan the directory containers in order to see the restored files. Otherwise, -
trunk/dll/ipf/fm3.ipf
r1044 r1122 331 331 activate commands when clicked. 332 332 :p. 333 The :hp1."Toolb oxes" quicklist:ehp1. only appears when the333 The :hp1."Toolbars" quicklist:ehp1. only appears when the 334 334 :link reftype=hd res=91800.Toolbar:elink. is visible (see :link reftype=hd res=99400.Using 335 335 quicklists:elink. section). … … 468 468 from the mouse pointer to give better target visibility). Target 469 469 emphasis is provided in the form of a black outline around the button, 470 and the arrow pointer turns into a hand when above a toolb oxicon.470 and the arrow pointer turns into a hand when above a toolbar icon. 471 471 :p. 472 472 This toolbar submenu is a conditional cascade menu, meaning that if you … … 480 480 Toolbar buttons are user-configurable. To change the toolbar, click 481 481 mouse button two (usually the right button) while the mouse pointer is 482 over a button to pop up a context menu. You can get the "Load Toolb ox"482 over a button to pop up a context menu. You can get the "Load Toolbar" 483 483 dialog by clicking :color fc=default bc=cyan.B2:color fc=default bc=default. 484 484 on a blank area of the toolbar, and the "Add … … 490 490 file contains comments that explain its format. 491 491 :p. 492 FM/2 allows you to create customized toolb oxes that can be loaded as493 required to provide toolb oxes for specific activities. Although FM/2492 FM/2 allows you to create customized toolbars that can be loaded as 493 required to provide toolbars for specific activities. Although FM/2 494 494 provides ways to edit the toolbar internally, it's probably easier to 495 495 load the definition files into a text editor and make the changes … … 497 497 :p. 498 498 If you'd like to see a different toolbar layout (and try out the Load 499 Toolb ox command), right-click on the toolbar, pick Load Toolboxfrom the500 resultant menu, and pick a toolb oxfrom the listbox. Then you might try501 creating your own and saving it with the Save Toolb oxcommand.499 Toolbar command), right-click on the toolbar, pick Load Toolbar from the 500 resultant menu, and pick a toolbar from the listbox. Then you might try 501 creating your own and saving it with the Save Toolbar command. 502 502 :p. 503 503 See also&colon. … … 512 512 .br 513 513 :link reftype=hd res=94500.Load Tools:elink. 514 .br 515 :link reftype=hd res=94550.Manual edit of Toolbar files:elink. 514 516 515 517 :h3 res=96300 name=PANEL_REORDERTOOLS.Reorder Tools … … 672 674 4002 Second Command Y 673 675 &period... 674 4900 First Toolb oxN675 4901 Second Toolb oxN676 4900 First Toolbar N 677 4901 Second Toolbar N 676 678 &period... 677 679 :exmp. … … 682 684 your Commands around, you need to resync the tools to the Commands... 683 685 :p. 684 Note&colon. Toolb ox buttons on a toolbar cause the appropriate toolbox686 Note&colon. Toolbar buttons on a toolbar cause the appropriate toolbar 685 687 to be loaded from QUICKTLS.DAT (one filename per line, blank lines and 686 688 lines beginning with ";" ignored). The file named on the first line is 687 the First Toolb ox, and so forth. You can have up to 50 toolboxbuttons689 the First Toolbar, and so forth. You can have up to 50 toolbar buttons 688 690 defined (total). 689 691 :p. … … 692 694 if so. 693 695 694 :h3 res=94000 name=PANEL_SAVETOOLS.Save Toolb ox695 :i1 id=aboutSaveTools.Save Toolb ox696 697 FM/2 allows you to save toolb oxes (groups of tools) for later recall698 with the :link reftype=hd res=94500.Load Toolb ox:elink. command.699 :p. 700 Type the name of the file to hold the toolb oxdefinitions into the entry696 :h3 res=94000 name=PANEL_SAVETOOLS.Save Toolbar 697 :i1 id=aboutSaveTools.Save Toolbar 698 699 FM/2 allows you to save toolbars (groups of tools) for later recall 700 with the :link reftype=hd res=94500.Load Toolbar:elink. command. 701 :p. 702 Type the name of the file to hold the toolbar definitions into the entry 701 703 field below the listbox, or select a file displayed in the listbox (it 702 will be overwritten). FM/2 saves the toolb oxdefinitions into the file.704 will be overwritten). FM/2 saves the toolbar definitions into the file. 703 705 :p. 704 706 The files are given an extension of &period.TLS if you don't specify an … … 707 709 convention). 708 710 709 :h3 res=94500 name=PANEL_LOADTOOLS.Load Toolb ox710 :i1 id=aboutLoadTools.Load Toolb ox711 712 FM/2 allows you to load toolb oxes (groups of tools) which were saved713 with the :link reftype=hd res=94000.Save Toolb ox:elink. command.714 :p. 715 Type the name of the file that holds the toolb oxdefinitions into the711 :h3 res=94500 name=PANEL_LOADTOOLS.Load Toolbar 712 :i1 id=aboutLoadTools.Load Toolbar 713 714 FM/2 allows you to load toolbars (groups of tools) which were saved 715 with the :link reftype=hd res=94000.Save Toolbar:elink. command. 716 :p. 717 Type the name of the file that holds the toolbar definitions into the 716 718 entry field below the listbox, or select a file displayed in the 717 listbox. FM/2 loads the toolb oxdefinitions from the file and updates719 listbox. FM/2 loads the toolbar definitions from the file and updates 718 720 the toolbar. 719 721 :p. … … 723 725 :p. 724 726 Clicking :hp1.Okay:ehp1. without typing in or selecting a filename 725 results in FM/2 reloading the default toolb oxfrom FM3TOOLS.DAT.727 results in FM/2 reloading the default toolbar from FM3TOOLS.DAT. 726 728 :p. 727 729 If I may, here's how I'd recommend using this facility&colon. … … 730 732 delete any buttons that you don't want in your customized toolbar. 731 733 Finally, add any Command buttons that you do want in the customized 732 toolbar and save the new toolb ox(as <something>.TLS). By starting with734 toolbar and save the new toolbar (as <something>.TLS). By starting with 733 735 the full toolbar, you'll spend more of your time deleting buttons you 734 736 don't want (a trivial task) and less adding buttons. 737 738 :h3 res=94550 name=PANEL_MANUALTOOLS.Manual edit of Toolbar files 739 :i1 id=aboutManualTools.Manual edit of Toolbar files 740 741 FM/2 can guide you through the processes of creating or customizing your toolbars. 742 This is the recommended way to customize your toolbars. See :link reftype=hd res=91800.Toolbars:elink. for more information. 743 :p. 744 However you may choose to create or customize your toolbars manually. Toolbars 745 are defined in files located in the FM/2 installation directory. These files 746 have an extension of TLS. Any plain text editor may be used to create or edit 747 these files. 748 :note.The maximum line length is 80 characters for ANY line in a TLS file! 749 :note.There can be no more than 50 TLS files! 750 :warning. 751 Incorrectly edited toolbar files may break your toolbars and possibly impair FM/2 as a whole. 752 :ewarning. 753 It is therefore recommended that you backup any TLS file before you edit it. Then, if you 754 experience problems after your edits, you can simply restore the saved copy of the TLS file. 755 :p. 756 Another way to recover from corrupted TLS files is to execute the "Back up FM/2 Customizations 757 and reset to defaults" icon in your FM/2 folder. However using "Back up FM/2 Customizations and reset to defaults" will revert :hp2.ALL:ehp2. 758 customizations to FM/2 defaults, not just the toolbars! 759 :p. 760 The TLS files are made of of two kinds of lines: Comment lines and lines 761 which define a button for the toolbar. 762 :p. 763 :hp7.Comment lines:ehp7. 764 :ul compact. 765 :li.Are optional. None are needed by FM/2. They are for user use. 766 :li.Start with a semicolon in the first column, ";". 767 :li.May be used before or after any set of (4) button definition lines. 768 :sl compact. 769 :li.Comment lines must NOT be placed within the four lines which constitute a button definition! 770 :esl. 771 :li.Properly placed comment lines are ignored by FM/2. 772 :li.Uses: 773 :ul compact. 774 :li.To provide visual separation between sets of button definition lines, making the file more readble (to humans). 775 :li.To provide a means of keeping comments/notes about the file and its buttons. 776 :eul. 777 :eul. 778 :p. 779 :hp7.Button definition lines:ehp7. 780 :ul compact. 781 :li.Each button is defined by four CONSECUTIVE lines. 782 :sl compact. 783 :li.If a comment line is placed within the four lines which define a button, FM/2 will ignore the entire button definition. 784 :esl. 785 :li.The first line contains the text for the bubble help. If bubble help is enabled, the text on this line will be displayed when the mouse is positioned over this button. 786 :sl compact. 787 :li.The bubble help text may include "\r" to break the help into multiple lines. 788 :esl. 789 :li.The second line contains the button text. This text is displayed only if either... 790 :ul compact. 791 :li.Tool titles is enabled. 792 :li.There is no icon for the button. 793 :eul. 794 :li.The third line is a number indicating flags associated with the button. 795 :sl compact. 796 :li.0 means the button is non-droppable 797 :li.1 means the button is droppable 798 :li.4 means invisible 799 :li.8 means a spacer follows this button 800 :li.32 means there is a user-defined bitmap for the button. 801 :ul compact. 802 :li.The bitmap must be in a file named <id-number>.bmp where <id-number> is the id number specified by the fourth line of the button definition. 803 :li.The bitmap file must be in the FM/2 directory 804 :li.The bitmap must be 32x32 in size. 805 :eul. 806 :li.Add these numbers together to combine the attributes. For example 9 (i.e. 8 + 1) means droppable with a spacer following. 807 :esl. 808 :li.The fourth line is the ID number of the button. See 809 :link reftype=hd res=96401. 810 Tool ID's 811 :elink. for more information. 812 :eul. 735 813 736 814 :h2 res=99400 name=PANEL_USERLISTS.Using quicklists … … 745 823 :li.Often used directories you've configured (see :link reftype=hd 746 824 res=91500.Walk Directories dialog:elink.). 747 :li.Toolb oxes (if the Toolbar's on).825 :li.Toolbars (if the Toolbar's on). 748 826 :eul. 749 827 :artwork name='bitmaps\userlist.bmp' align=center. … … 838 916 .br 839 917 The last list (only present if the Toolbar is on) is a list of 840 Toolb oxes. You can select one from the list. FM/2 automatically841 maintains this list for you. Initially, the saved toolb oxnames are918 Toolbars. You can select one from the list. FM/2 automatically 919 maintains this list for you. Initially, the saved toolbar names are 842 920 read from disk (the FM/2 directory), and any you subsequently save 843 are added to it on the fly. The FM/2 archive includes a few Toolb oxes921 are added to it on the fly. The FM/2 archive includes a few Toolbars 844 922 for you to look at and customize if you'd like. 845 923 :p. -
trunk/dll/ipf/term.ipf
r606 r1122 69 69 passes over a toolbar button. 70 70 :p. 71 :hp1.Toolb ox:ehp1. = a collection of buttons in a toolbar. FM/2 allows72 you to customize and save toolb oxes which you can load into the toolbar71 :hp1.Toolbar:ehp1. = a collection of buttons in a toolbar. FM/2 allows 72 you to customize and save toolbars which you can load into the toolbar 73 73 as desired. 74 74 :p. -
trunk/dll/tools.c
r1121 r1122 118 118 } 119 119 if (!filename || !*filename) 120 filename = (*lasttoolb ox) ? lasttoolbox: "CMDS.TLS";120 filename = (*lasttoolbar) ? lasttoolbar : "CMDS.TLS"; 121 121 if (*filename) 122 122 fname = searchpath(filename); … … 125 125 if (fname && *fname) { 126 126 filename = fname; 127 strcpy(lasttoolb ox, filename);127 strcpy(lasttoolbar, filename); 128 128 fp = _fsopen(filename, "r", SH_DENYWR); 129 129 if (fp) { … … 187 187 188 188 if (!filename) 189 filename = lasttoolb ox;189 filename = lasttoolbar; 190 190 if (*filename) 191 191 fname = searchpath(filename); … … 193 193 filename = fname; 194 194 else { 195 if (*lasttoolb ox)196 filename = lasttoolb ox;195 if (*lasttoolbar) 196 filename = lasttoolbar; 197 197 else 198 198 filename = "FM3TOOLS.TLS"; … … 205 205 filename = "FM3TOOLS.TLS"; 206 206 if (toolhead && filename && *filename) { 207 strcpy(lasttoolb ox, filename);208 PrfWriteProfileString(fmprof, FM3Str, "LastTool Box", filename);207 strcpy(lasttoolbar, filename); 208 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", filename); 209 209 } 210 210 if (!toolhead) { … … 911 911 else { 912 912 WinSetWindowULong(hwnd, QWL_USER, FALSE); 913 WinSetWindowText(hwnd, GetPString(IDS_LOADTOOLB OXTITLETEXT));913 WinSetWindowText(hwnd, GetPString(IDS_LOADTOOLBARTITLETEXT)); 914 914 } 915 915 WinSendDlgItemMsg(hwnd, … … 960 960 WinSetDlgItemText(hwnd, 961 961 SVBTN_CURRENT, 962 (*lasttoolb ox) ? lasttoolbox: "FM3TOOLS.DAT");962 (*lasttoolbar) ? lasttoolbar : "FM3TOOLS.DAT"); 963 963 break; 964 964 … … 1018 1018 CHAR temptools[CCHMAXPATH]; 1019 1019 1020 strcpy(temptools, lasttoolb ox);1020 strcpy(temptools, lasttoolbar); 1021 1021 if (fToolsChanged) 1022 1022 save_tools(NULL); 1023 1023 WinQueryDlgItemText(hwnd, 1024 SVBTN_ENTRY, sizeof(lasttoolb ox), lasttoolbox);1025 if (*lasttoolb ox) {1026 if (!strchr(lasttoolb ox, '.'))1027 strcat(lasttoolb ox, ".TLS");1028 } 1029 if (saving && *lasttoolb ox)1024 SVBTN_ENTRY, sizeof(lasttoolbar), lasttoolbar); 1025 if (*lasttoolbar) { 1026 if (!strchr(lasttoolbar, '.')) 1027 strcat(lasttoolbar, ".TLS"); 1028 } 1029 if (saving && *lasttoolbar) 1030 1030 save_tools(NULL); 1031 1031 else { 1032 1032 if (!load_tools(NULL)) { 1033 strcpy(lasttoolb ox, temptools);1033 strcpy(lasttoolbar, temptools); 1034 1034 if (!load_tools(NULL)) { 1035 *lasttoolb ox= 0;1035 *lasttoolbar = 0; 1036 1036 load_tools(NULL); 1037 1037 } 1038 1038 } 1039 1039 } 1040 PrfWriteProfileString(fmprof, FM3Str, "LastTool Box", lasttoolbox);1040 PrfWriteProfileString(fmprof, FM3Str, "LastToolbar", lasttoolbar); 1041 1041 } 1042 1042 WinDismissDlg(hwnd, 1);
Note:
See TracChangeset
for help on using the changeset viewer.