Replace doc-comments with '/* *' comments to show there's no build
API for plugins. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5478 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
2633598aba
commit
3637847355
@ -1,3 +1,10 @@
|
||||
2010-12-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/build.c, src/build.h:
|
||||
Replace doc-comments with '/* *' comments to show there's no build
|
||||
API for plugins.
|
||||
|
||||
|
||||
2010-12-07 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/keybindings.c, src/callbacks.c, src/vte.h, src/main.c:
|
||||
|
@ -472,7 +472,7 @@ static GeanyBuildCommand *get_build_group(GeanyBuildSource src, GeanyBuildGroup
|
||||
}
|
||||
|
||||
|
||||
/** Remove the specified Build menu item.
|
||||
/* * Remove the specified Build menu item.
|
||||
*
|
||||
* Makes the specified menu item configuration no longer exist. This
|
||||
* is different to setting fields to blank because the menu item
|
||||
@ -507,7 +507,7 @@ void build_remove_menu_item(GeanyBuildSource src, GeanyBuildGroup grp, gint cmd)
|
||||
}
|
||||
|
||||
|
||||
/** Get the @a GeanyBuildCommand structure for the specified Build menu item.
|
||||
/* * Get the @a GeanyBuildCommand structure for the specified Build menu item.
|
||||
*
|
||||
* Get the command for any menu item specified by @a src, @a grp and @a cmd even if it is
|
||||
* hidden by higher priority commands.
|
||||
@ -534,7 +534,7 @@ GeanyBuildCommand *build_get_menu_item(GeanyBuildSource src, GeanyBuildGroup grp
|
||||
}
|
||||
|
||||
|
||||
/** Get the @a GeanyBuildCommand structure for the menu item.
|
||||
/* * Get the @a GeanyBuildCommand structure for the menu item.
|
||||
*
|
||||
* Get the current highest priority command specified by @a grp and @a cmd. This is the one
|
||||
* that the menu item will use if activated.
|
||||
@ -1455,7 +1455,7 @@ static void geany_menu_item_set_label(GtkWidget *w, const gchar *label)
|
||||
}
|
||||
|
||||
|
||||
/** Update the build menu to reflect changes in configuration or status.
|
||||
/* * Update the build menu to reflect changes in configuration or status.
|
||||
*
|
||||
* Sets the labels and number of visible items to match the highest
|
||||
* priority configured commands. Also sets sensitivity if build commands are
|
||||
|
72
src/build.h
72
src/build.h
@ -27,34 +27,34 @@
|
||||
#define GEANY_BUILD_H 1
|
||||
|
||||
/* Order is important (see GBO_TO_GBG, GBO_TO_CMD below) */
|
||||
/** Geany Known Build Commands.
|
||||
/* * Geany Known Build Commands.
|
||||
* These commands are named after their default use.
|
||||
* Only these commands can currently have keybindings.
|
||||
**/
|
||||
typedef enum
|
||||
{
|
||||
GEANY_GBO_COMPILE, /**< default compile file */
|
||||
GEANY_GBO_BUILD, /**< default build file */
|
||||
GEANY_GBO_MAKE_ALL, /**< default make */
|
||||
GEANY_GBO_CUSTOM, /**< default make user specified target */
|
||||
GEANY_GBO_MAKE_OBJECT, /**< default make object, make %e.o */
|
||||
GEANY_GBO_EXEC, /**< default execute ./%e */
|
||||
GEANY_GBO_COUNT /**< count of how many */
|
||||
GEANY_GBO_COMPILE, /* *< default compile file */
|
||||
GEANY_GBO_BUILD, /* *< default build file */
|
||||
GEANY_GBO_MAKE_ALL, /* *< default make */
|
||||
GEANY_GBO_CUSTOM, /* *< default make user specified target */
|
||||
GEANY_GBO_MAKE_OBJECT, /* *< default make object, make %e.o */
|
||||
GEANY_GBO_EXEC, /* *< default execute ./%e */
|
||||
GEANY_GBO_COUNT /* *< count of how many */
|
||||
} GeanyBuildType;
|
||||
|
||||
/** Groups of Build menu items. */
|
||||
/* * Groups of Build menu items. */
|
||||
typedef enum
|
||||
{
|
||||
GEANY_GBG_FT, /**< filetype items */
|
||||
GEANY_GBG_NON_FT, /**< non filetype items.*/
|
||||
GEANY_GBG_EXEC, /**< execute items */
|
||||
GEANY_GBG_COUNT /**< count of groups. */
|
||||
GEANY_GBG_FT, /* *< filetype items */
|
||||
GEANY_GBG_NON_FT, /* *< non filetype items.*/
|
||||
GEANY_GBG_EXEC, /* *< execute items */
|
||||
GEANY_GBG_COUNT /* *< count of groups. */
|
||||
} GeanyBuildGroup;
|
||||
|
||||
/* include the fixed widgets in an array indexed by groups */
|
||||
#define GBG_FIXED GEANY_GBG_COUNT
|
||||
|
||||
/** Convert @c GeanyBuildType to @c GeanyBuildGroup.
|
||||
/* * Convert @c GeanyBuildType to @c GeanyBuildGroup.
|
||||
*
|
||||
* This macro converts @c GeanyBuildType enum values (the "known" commands)
|
||||
* to the group they are part of.
|
||||
@ -68,7 +68,7 @@ typedef enum
|
||||
#define GBO_TO_GBG(gbo) ((gbo)>GEANY_GBO_EXEC?GEANY_GBG_COUNT:((gbo)>=GEANY_GBO_EXEC?GEANY_GBG_EXEC: \
|
||||
((gbo) >= GEANY_GBO_MAKE_ALL ? GEANY_GBG_NON_FT : GEANY_GBG_FT)))
|
||||
|
||||
/** Convert @c GeanyBuildType to command index.
|
||||
/* * Convert @c GeanyBuildType to command index.
|
||||
*
|
||||
* This macro converts @c GeanyBuildType enum values (the "known" commands)
|
||||
* to the index within the group.
|
||||
@ -94,16 +94,16 @@ enum GeanyBuildFixedMenuItems
|
||||
GBF_COUNT
|
||||
};
|
||||
|
||||
/** Build menu item sources in increasing priority */
|
||||
/* * Build menu item sources in increasing priority */
|
||||
typedef enum
|
||||
{
|
||||
GEANY_BCS_DEF, /**< Default values. */
|
||||
GEANY_BCS_FT, /**< System filetype values. */
|
||||
GEANY_BCS_HOME_FT, /**< Filetypes in ~/.config/geany/filedefs */
|
||||
GEANY_BCS_PREF, /**< Preferences file ~/.config/geany/geany.conf */
|
||||
GEANY_BCS_PROJ_FT, /**< Project file filetype command */
|
||||
GEANY_BCS_PROJ, /**< Project file if open. */
|
||||
GEANY_BCS_COUNT /**< Count of sources. */
|
||||
GEANY_BCS_DEF, /* *< Default values. */
|
||||
GEANY_BCS_FT, /* *< System filetype values. */
|
||||
GEANY_BCS_HOME_FT, /* *< Filetypes in ~/.config/geany/filedefs */
|
||||
GEANY_BCS_PREF, /* *< Preferences file ~/.config/geany/geany.conf */
|
||||
GEANY_BCS_PROJ_FT, /* *< Project file filetype command */
|
||||
GEANY_BCS_PROJ, /* *< Project file if open. */
|
||||
GEANY_BCS_COUNT /* *< Count of sources. */
|
||||
} GeanyBuildSource;
|
||||
|
||||
typedef struct GeanyBuildInfo
|
||||
@ -119,26 +119,26 @@ typedef struct GeanyBuildInfo
|
||||
|
||||
extern GeanyBuildInfo build_info;
|
||||
|
||||
/** The entries of a command for a menu item */
|
||||
/* * The entries of a command for a menu item */
|
||||
typedef enum GeanyBuildCmdEntries
|
||||
{
|
||||
GEANY_BC_LABEL, /**< The menu item label, _ marks mnemonic */
|
||||
GEANY_BC_COMMAND, /**< The command to run. */
|
||||
GEANY_BC_WORKING_DIR, /**< The directory to run in */
|
||||
GEANY_BC_CMDENTRIES_COUNT /**< Count of entries */
|
||||
GEANY_BC_LABEL, /* *< The menu item label, _ marks mnemonic */
|
||||
GEANY_BC_COMMAND, /* *< The command to run. */
|
||||
GEANY_BC_WORKING_DIR, /* *< The directory to run in */
|
||||
GEANY_BC_CMDENTRIES_COUNT /* *< Count of entries */
|
||||
} GeanyBuildCmdEntries;
|
||||
|
||||
/** The command for a menu item. */
|
||||
/* * The command for a menu item. */
|
||||
typedef struct GeanyBuildCommand
|
||||
{
|
||||
/** Pointers to g_string values of the command entries.
|
||||
/* * Pointers to g_string values of the command entries.
|
||||
* Must be freed if the pointer is changed. */
|
||||
gchar *label; /**< Menu item label */
|
||||
gchar *command; /**< Command to run */
|
||||
gchar *working_dir; /**< working directory */
|
||||
gboolean exists; /**< If the entries have valid values. */
|
||||
gboolean changed; /**< Save on exit if @c changed, remove if not @c exist. */
|
||||
gboolean old; /**< Converted from old format. */
|
||||
gchar *label; /* *< Menu item label */
|
||||
gchar *command; /* *< Command to run */
|
||||
gchar *working_dir; /* *< working directory */
|
||||
gboolean exists; /* *< If the entries have valid values. */
|
||||
gboolean changed; /* *< Save on exit if @c changed, remove if not @c exist. */
|
||||
gboolean old; /* *< Converted from old format. */
|
||||
} GeanyBuildCommand;
|
||||
|
||||
typedef struct BuildMenuItems
|
||||
|
Loading…
x
Reference in New Issue
Block a user