geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

classbuilder.c File Reference
#include "geanyplugin.h"
Include dependency graph for classbuilder.c:

Go to the source code of this file.

Classes

struct  _ClassInfo
 
struct  _CreateClassDialog
 

Typedefs

typedef struct _ClassInfo ClassInfo
 
typedef struct _CreateClassDialog CreateClassDialog
 

Enumerations

enum  { GEANY_CLASS_TYPE_CPP , GEANY_CLASS_TYPE_GTK , GEANY_CLASS_TYPE_PHP }
 

Functions

gint plugin_version_check (gint abi_ver)
 Use the PLUGIN_VERSION_CHECK() macro instead. More...
 
void plugin_set_info (PluginInfo *info)
 Use the PLUGIN_SET_INFO() macro to define it. More...
 

Variables

GeanyDatageany_data
 
static GtkWidget * main_menu_item = NULL
 
static const gchar templates_cpp_class_header []
 
static const gchar templates_cpp_class_source []
 
static const gchar templates_gtk_class_header []
 
static const gchar templates_gtk_class_source []
 

Typedef Documentation

◆ ClassInfo

typedef struct _ClassInfo ClassInfo

Definition at line 48 of file classbuilder.c.

◆ CreateClassDialog

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
GEANY_CLASS_TYPE_CPP 
GEANY_CLASS_TYPE_GTK 
GEANY_CLASS_TYPE_PHP 

Definition at line 41 of file classbuilder.c.

Function Documentation

◆ plugin_set_info()

void plugin_set_info ( PluginInfo info)

Use the PLUGIN_SET_INFO() macro to define it.

Required by Geany. This function is called before the plugin is initialized, so Geany can read the plugin's name.

Parameters
infoThe data struct which should be initialized by this function.

Definition at line 35 of file classbuilder.c.

◆ plugin_version_check()

gint plugin_version_check ( gint  abi)

Use the PLUGIN_VERSION_CHECK() macro instead.

Required by Geany.

Parameters
abiABI version Geany was compiled with
Returns
The API version the plugin was compiled with, or -1 if the plugin is incompatible.

Definition at line 32 of file classbuilder.c.

Variable Documentation

◆ geany_data

GeanyData* geany_data

Definition at line 29 of file classbuilder.c.

◆ main_menu_item

GtkWidget* main_menu_item = NULL
static

Definition at line 38 of file classbuilder.c.

◆ templates_cpp_class_header

const gchar templates_cpp_class_header[]
static
Initial value:
= "{fileheader}\n\n\
#ifndef {header_guard}\n\
#define {header_guard}\n\
{base_include}\n\
class {class_name}{base_decl}\n\
{\n\
public:\n\
{constructor_decl}\
{destructor_decl}\
\n\
private:\n\
/* add your private declarations */\n\
};\n\
\n\
#endif /* {header_guard} */ \n\
"

Definition at line 101 of file classbuilder.c.

◆ templates_cpp_class_source

const gchar templates_cpp_class_source[]
static
Initial value:
= "{fileheader}\n\n\
#include \"{header}\"\n\
\n\
{constructor_impl}\n\
{destructor_impl}\n\
"

Definition at line 118 of file classbuilder.c.

◆ templates_gtk_class_header

const gchar templates_gtk_class_header[]
static

Definition at line 125 of file classbuilder.c.

◆ templates_gtk_class_source

const gchar templates_gtk_class_source[]
static
Initial value:
= "{fileheader}\n\
#include \"{header}\"\n\
\n\
struct {namespace}{class_name}Private_\n\
{\n\
/* add your private declarations here */\n\
gpointer delete_me;\n\
};\n\
\n\
{destructor_decl}\
\n\
G_DEFINE_TYPE ({namespace}{class_name}, {namespace_low}{class_name_low}, {base_gtype})\n\
\n\n\
static void\n\
{namespace_low}{class_name_low}_class_init ({namespace}{class_name}Class *klass)\n\
{\n\
{gtk_destructor_registration}\n\
g_type_class_add_private ((gpointer)klass, sizeof ({namespace}{class_name}Private));\n\
}\n\
\n\
{destructor_impl}\n\
\n\
static void\n\
{namespace_low}{class_name_low}_init ({namespace}{class_name} *self)\n\
{\n\
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, {namespace_up}TYPE_{class_name_up}, {namespace}{class_name}Private);\n\
}\n\
\n\
{constructor_impl}\n\
"

Definition at line 162 of file classbuilder.c.