#include <gtksourceview/gtksourceview.h>
#include <gtk/gtk.h>
#include <glib.h>
#include <iostream>
#include <fstream>
Functions | |
string | openldev_add_prefix (string file) |
void | openldev_error (string message) |
gboolean | openldev_question (string message) |
void | openldev_write_file (string file, string text) |
string | openldev_read_file (string file) |
gboolean | openldev_is_error_or_warning (string output) |
int | openldev_get_file_name_and_line (string &output) |
void | openldev_add_new_stock_item (GtkIconFactory *icon_factory, gchar *name, gchar *id, gchar *file) |
gint | openldev_fork_new_process (string command) |
string | openldev_file_get_text_in_buffer (GtkSourceBuffer *buffer) |
|
Add a new stock menu item. These can be used in menus, toolbars or popup menus.
|
|
Add INSTALL_PREFIX to the beginning of the string. This is so the user can define custom install prefixes.
|
|
Give the user a message. There is no need to add newline characters because the message will wrap automatically. The message also supports Pango formatting.
|
|
Retrive all of the text in the specified buffer. This has to be a GtkSourceBuffer to use.
|
|
Create a new process using fork() and execl(). This can be done with any arbitrary command and the forked application will not affect the operation of OpenLDev.
|
|
Get the line number the error or warning is on and what file it is from.
|
|
You can use this function to check whether the line of make output is an error or a warning.
|
|
Ask the user a question, specified by your message. The user's choice is returned from the
|
|
Read the contents of a file. This function uses GLib functions to verify that the file exists.
|
|
Write text to a file. This uses the standard C++ ofstream functions.
|