File: screem-ctags-model.h

package info (click to toggle)
screem 0.12.1-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,728 kB
  • ctags: 8,333
  • sloc: ansic: 98,234; sh: 8,278; xml: 2,278; makefile: 1,054
file content (43 lines) | stat: -rw-r--r-- 1,299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef SCREEM_CTAGS_MODEL_H
#define SCREEM_CTAGS_MODEL_H

#include <gtk/gtktreestore.h>

#define SCREEM_TYPE_CTAGS_MODEL  (screem_ctags_model_get_type())
#define SCREEM_CTAGS_MODEL(obj)  (G_TYPE_CHECK_INSTANCE_CAST( ( obj ), SCREEM_TYPE_CTAGS_MODEL, \
                                                ScreemCtagsModel ) )
#define SCREEM_CTAGS_MODEL_CLASS(klass)  (G_TYPE_CHECK_CLASS_CAST( ( klass ), \
                                                             SCREEM_TYPE_CTAGS_MODEL, \
                                                             ScreemCtagsModelClass ) )
#define SCREEM_IS_CTAGS_MODEL(obj)  (G_TYPE_CHECK_INSTANCE_TYPE( ( obj ), SCREEM_TYPE_CTAGS_MODEL ) )

typedef struct ScreemCtagsModelPrivate ScreemCtagsModelPrivate;

enum {
	CTAGS_NAME_COL,
	CTAGS_ICON_COL,
	CTAGS_FILE_COL,
	CTAGS_PATTERN_COL,
	CTAGS_LINE_COL,
	CTAGS_MAX_COLS
};

typedef struct {
	GtkTreeStore parent;
	
	ScreemCtagsModelPrivate *priv;
} ScreemCtagsModel;

typedef struct {
	GtkTreeStoreClass parent_class;

} ScreemCtagsModelClass;

GType screem_ctags_model_get_type( void );
ScreemCtagsModel *screem_ctags_model_new( void );

void screem_ctags_model_set_pathname( ScreemCtagsModel *model,
					const gchar *pathname );
gchar *screem_ctags_model_get_pathname( const ScreemCtagsModel *model );

#endif