1 /* $Id: userCmds.h,v 1.11 2005/01/31 14:34:24 edg Exp $ */
2 /*******************************************************************************
4 * userCmds.h -- Nirvana Editor user commands header file *
6 * Copyright 2004 The NEdit Developers *
8 * This is free software; you can redistribute it and/or modify it under the *
9 * terms of the GNU General Public License as published by the Free Software *
10 * Foundation; either version 2 of the License, or (at your option) any later *
11 * version. In addition, you may distribute versions of this program linked to *
12 * Motif or Open Motif. See README for details. *
14 * This software is distributed in the hope that it will be useful, but WITHOUT *
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
19 * You should have received a copy of the GNU General Public License along with *
20 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
21 * Place, Suite 330, Boston, MA 02111-1307 USA *
23 * Nirvana Text Editor *
26 *******************************************************************************/
28 #ifndef NEDIT_USERCMDS_H_INCLUDED
29 #define NEDIT_USERCMDS_H_INCLUDED
33 void EditShellMenu(WindowInfo
*window
);
34 void EditMacroMenu(WindowInfo
*window
);
35 void EditBGMenu(WindowInfo
*window
);
36 void UpdateUserMenus(WindowInfo
*window
);
37 char *WriteShellCmdsString(void);
38 char *WriteMacroCmdsString(void);
39 char *WriteBGMenuCmdsString(void);
40 int LoadShellCmdsString(char *inString
);
41 int LoadMacroCmdsString(char *inString
);
42 int LoadBGMenuCmdsString(char *inString
);
43 int DoNamedShellMenuCmd(WindowInfo
*window
, const char *itemName
, int fromMacro
);
44 int DoNamedMacroMenuCmd(WindowInfo
*window
, const char *itemName
);
45 int DoNamedBGMenuCmd(WindowInfo
*window
, const char *itemName
);
46 void RebuildAllMenus(WindowInfo
*window
);
47 void SetBGMenuUndoSensitivity(WindowInfo
*window
, int sensitive
);
48 void SetBGMenuRedoSensitivity(WindowInfo
*window
, int sensitive
);
49 void DimSelectionDepUserMenuItems(WindowInfo
*window
, int sensitive
);
50 void DimPasteReplayBtns(int sensitive
);
51 UserMenuCache
*CreateUserMenuCache(void);
52 void FreeUserMenuCache(UserMenuCache
*cache
);
53 void InitUserBGMenuCache(UserBGMenuCache
*cache
);
54 void FreeUserBGMenuCache(UserBGMenuCache
*cache
);
55 void SetupUserMenuInfo(void);
56 void UpdateUserMenuInfo(void);
58 #endif /* NEDIT_USERCMDS_H_INCLUDED */