File: subversion-ui-utils.h

package info (click to toggle)
anjuta 2%3A3.34.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 72,440 kB
  • sloc: ansic: 207,444; sh: 47,499; cpp: 11,461; makefile: 3,586; yacc: 2,821; perl: 2,094; lex: 1,546; xml: 904; python: 149; sql: 99; javascript: 51; java: 10
file content (83 lines) | stat: -rw-r--r-- 3,394 bytes parent folder | download | duplicates (7)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * anjuta
 * Copyright (C) James Liggett 2007 <jrliggett@cox.net>
 *
 * Portions based on the original Subversion plugin 
 * Copyright (C) Johannes Schmid 2005 
 * 
 * anjuta is free software.
 * 
 * You may redistribute it and/or modify it under the terms of the
 * GNU General Public License, as published by the Free Software
 * Foundation; either version 2 of the License, or (at your option)
 * any later version.
 * 
 * anjuta is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with anjuta.  If not, write to:
 * 	The Free Software Foundation, Inc.,
 * 	51 Franklin Street, Fifth Floor
 * 	Boston, MA  02110-1301, USA.
 */

#ifndef SUBVERSION_UI_UTILS_H
#define SUBVERSION_UI_UTILS_H

#include "plugin.h"
#include "svn-status-command.h"
#include "svn-diff-command.h"
#include <libanjuta/anjuta-vcs-status-tree-view.h>
#include <libanjuta/interfaces/ianjuta-document-manager.h>
#include <libanjuta/interfaces/ianjuta-editor.h>

typedef struct
{
	GtkBuilder* bxml;
	Subversion* plugin;
} SubversionData;

SubversionData* subversion_data_new (Subversion* plugin, GtkBuilder* bxml);
void subversion_data_free (SubversionData* data);
void create_message_view (Subversion* plugin);
gboolean check_input (GtkWidget *parent, GtkWidget *entry, 
					  const gchar *error_message);
gchar *get_log_from_textview (GtkWidget* textview);
guint status_bar_progress_pulse (Subversion *plugin, gchar *text);
void clear_status_bar_progress_pulse (guint timer_id);
void pulse_progress_bar (GtkProgressBar *progress_bar);
void report_errors (AnjutaCommand *command, guint return_code);
gchar *get_filename_from_full_path (gchar *path);

/* Stock signal handlers */
void on_status_command_finished (AnjutaCommand *command, guint return_code, 
								 gpointer user_data);
void on_status_command_data_arrived (AnjutaCommand *command, 
									 AnjutaVcsStatusTreeView *tree_view);
void on_command_info_arrived (AnjutaCommand *command, Subversion *plugin);
void select_all_status_items (GtkButton *select_all_button, 
							  AnjutaVcsStatusTreeView *tree_view);
void clear_all_status_selections (GtkButton *clear_button,
								  AnjutaVcsStatusTreeView *tree_view);

void init_whole_project (Subversion *plugin, GtkWidget* project,
						 gboolean active);
void on_whole_project_toggled (GtkToggleButton* project, Subversion *plugin);
void on_diff_command_finished (AnjutaCommand *command, guint return_code, 
							   Subversion *plugin);
void send_diff_command_output_to_editor (AnjutaCommand *command, 
										 IAnjutaEditor *editor);
void stop_status_bar_progress_pulse (AnjutaCommand *command, guint return_code,
									 gpointer timer_id);
void hide_pulse_progress_bar (AnjutaCommand *command, guint return_code,
							  GtkProgressBar *progress_bar);
void disconnect_data_arrived_signals (AnjutaCommand *command, GObject *object);
void cancel_data_arrived_signal_disconnect (AnjutaCommand *command, 
											guint return_code,
											GObject *signal_target);
void on_subversion_browse_button_clicked (GtkButton *button, GtkEntry *entry);
#endif