editor.c File Reference

This program is to used to create a TEXT EDITOR for C which will have facilities for compiling, error messages and some highlighting for special keywords. More...

#include <gtk/gtk.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include "fileselect.c"
#include "menu.c"

Go to the source code of this file.

Functions

static gboolean delete_event (GtkWidget *widget, GdkEvent *event, gpointer data)
 This function would be invoked when the user clicks on quit button or quits the application fires the delete event signal but first check if the file is modified or not.
void entrycursor (GtkWidget *entry_text, gpointer data)
 This function sets the entry text.
static void err_msg (const gchar *msg)
void gcc_entry (GtkWidget *widget, gpointer entry)
 This function would be invoked when the user enters the gcc command into the gtkTextEntry.
int main (int argc, char *argv[])
 This is where program starts and generates a C editor along with gcc Compile button.

Variables

GtkWidget * window1
 Gtk Window variable.


Detailed Description

This program is to used to create a TEXT EDITOR for C which will have facilities for compiling, error messages and some highlighting for special keywords.

Authors:
: 200905023 - V.Meena, 200905037 - A.V.S.L.G.Swetha
Version:
1.0

Definition in file editor.c.


Function Documentation

static gboolean delete_event ( GtkWidget *  widget,
GdkEvent *  event,
gpointer  data 
) [static]

This function would be invoked when the user clicks on quit button or quits the application fires the delete event signal but first check if the file is modified or not.

Definition at line 43 of file editor.c.

References save_if_modified().

Referenced by main().

void entrycursor ( GtkWidget *  entry_text,
gpointer  data 
)

This function sets the entry text.

Definition at line 63 of file editor.c.

References status.

static void err_msg ( const gchar *  msg  )  [static]

Definition at line 25 of file editor.c.

References window.

Referenced by main().

void gcc_entry ( GtkWidget *  widget,
gpointer  entry 
)

This function would be invoked when the user enters the gcc command into the gtkTextEntry.

Definition at line 53 of file editor.c.

References entry_text.

Referenced by main().

int main ( int  argc,
char *  argv[] 
)

This is where program starts and generates a C editor along with gcc Compile button.

Parameters:
argc Number of arguments passed to program
argv Array of arugments passed to program
Returns:
EXIT_SUCCESS if program exits properly, EXIT_FAILURE otherwise.

Definition at line 79 of file editor.c.

References buf, buf2, delete_event(), entry, err_msg(), gcc_entry(), gtk_text_view_notify_cursor_position(), load_file(), main_menu, menu_def, status, submit_clicked(), view, view2, and window.


Variable Documentation

GtkWidget* window1

Gtk Window variable.

Definition at line 12 of file editor.c.

Referenced by next_button_clicked(), show_about(), and show_help().


Generated on Wed Apr 7 21:37:10 2010 for C_Editor by  doxygen 1.5.8