#include "openldev-file-tab.h"
#include "../openldev-utils.h"
#include "../openldev-settings/openldev-settings.h"
#include <glib.h>
#include <glib-object.h>
#include <libgnomevfs/gnome-vfs.h>
#include <gtksourceview/gtksourceview.h>
#include <gtksourceview/gtksourcebuffer.h>
#include <gtksourceview/gtksourcelanguagesmanager.h>
#include <vector>
|
Open a new file tab for the specified file. Editor settings from the EnvironmentSettings object provided will be used. This function does not actually open the file, but just created a new tab with the proper settings. Use openldev_open_file to open a new file.
|
|
Close all of the tabs that are currently open. This does not check whether files are modified, so you must do that manually. It is just meant to immediately wipe out all open files.
|
|
Get the currently shown GtkSourceBuffer if there is a file open. Otherwise a blank GtkSourceBuffer widget will be returned.
|
|
Get the full file name of the currently selected file if there is a file open.
|
|
Get the short file name of the currently selected file if there is a file open.
|
|
Get the position of the currently selected tab.
|
|
Get the currently shown GtkTextView if there is a file open. Otherwise a blank GtkTextView widget will be returned.
|
|
Check whether there is currently a file open in the FileManager. This should be called before trying to retrieve information about a current file. The FileManager will assume this has already been checked whe you ask for information!
|
|
Get the offset in characters of the "insert" GtkTextIter in the current file.
|
|
Get the offset in characters of the "selection_bound" GtkTextIter in the current file.
|
|
Create a new PangoTabArray for the widget. This is used internally and really is not necessary for plugins.
|
|
Mark a specified tab as modified or unmodified. This is done automatically by OpenLDev, so you should have no need to call this function.
|
|
Change the font of every open tab. This is used when you do not want to update all of the available settings.
|
|
Revert to the saved version of the file that is currently in focus. This function assumes that you have already asked the user if they want to do this. You should use openldev_menu_file_revert if you want to ask the user for permission before proceding.
|
|
Scroll the the current position of the cursor. This is done to the file that is currently in focus.
|
|
Set a new file name for the current file. For example, this would be used if you are renaming a certain file.
|
|
Reset the editor properties of one or more open tabs. This includes syntax highlighting, tab size and other settings from EnvironmentSettings.
|