Back to index

lightning-sunbird  0.9+nobinonly
minimo_bookmark.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is mozilla.org code.
00015  *
00016  * The Initial Developer of the Original Code is
00017  * Christopher Blizzard. Portions created by Christopher Blizzard are Copyright (C) Christopher Blizzard.  All Rights Reserved.
00018  * Portions created by the Initial Developer are Copyright (C) 2001
00019  * the Initial Developer. All Rights Reserved.
00020  *
00021  * Contributor(s):
00022  *   Christopher Blizzard <blizzard@mozilla.org>
00023  *   Doug Turner <dougt@meer.net>  Branched from TestGtkEmbed.cpp
00024  *
00025  *   The 10LE Team (in alphabetical order)
00026  *   -------------------------------------
00027  *
00028  *    Ilias Biris       <ext-ilias.biris@indt.org.br> - Coordinator
00029  *    Afonso Costa      <afonso.costa@indt.org.br>
00030  *    Antonio Gomes     <antonio.gomes@indt.org.br>
00031  *    Diego Gonzalez    <diego.gonzalez@indt.org.br>
00032  *    Raoni Novellino   <raoni.novellino@indt.org.br>
00033  *    Andre Pedralho    <andre.pedralho@indt.org.br>
00034  *
00035  *
00036  * Alternatively, the contents of this file may be used under the terms of
00037  * either the GNU General Public License Version 2 or later (the "GPL"), or
00038  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00039  * in which case the provisions of the GPL or the LGPL are applicable instead
00040  * of those above. If you wish to allow use of your version of this file only
00041  * under the terms of either the GPL or the LGPL, and not to allow others to
00042  * use your version of this file under the terms of the MPL, indicate your
00043  * decision by deleting the provisions above and replace them with the notice
00044  * and other provisions required by the GPL or the LGPL. If you do not delete
00045  * the provisions above, a recipient may use your version of this file under
00046  * the terms of any one of the MPL, the GPL or the LGPL.
00047  *
00048  * ***** END LICENSE BLOCK ***** */
00049 
00050 #ifndef bookmark_h
00051 #define bookmark_h
00052 
00053 #include <gtk/gtk.h>
00054 #include <gdk/gdk.h>
00055 #include <gdk/gdkkeysyms.h>
00056 #include <stdio.h>
00057 #include <string.h>
00058 #include <stdlib.h>
00059 #include <sys/stat.h>
00060 
00061 #include "minimo_types.h"
00062 
00063 #include "gtkmozembed.h"
00064 
00065 /* Callbacks from the UI */
00066 void initialize_bookmark(GtkWidget *embed);
00067 void open_bookmark(void);
00068 void show_bookmark(void);
00069 void read_bookmark(void);
00070 void generate_bookmark_ctree(GNode *node, BookmarkCTreeData *ctree_data);
00071 void add_bookmark_cb(GtkWidget *menu_item,GtkWidget *min);
00072 void on_bookmark_add_button_clicked(GtkWidget *button,BookmarkWindow *bwin);
00073 void on_bookmark_edit_button_clicked(GtkWidget *button,BookmarkWindow *bwin);
00074 void on_bookmark_ok_button_clicked(GtkWidget *button,BookmarkWindow *bwin);
00075 void on_bookmark_cancel_button_clicked(GtkWidget *button,BookmarkWindow *bwin);
00076 void on_bookmark_go_button_clicked(GtkButton *button,BookmarkWindow *bwin);
00077 void on_bookmark_remove_button_clicked(GtkWidget *button,BookmarkWindow *bwin);
00078 void export_bookmarks(GtkButton *button,BookmarkWindow *bwin);
00079 
00080 /* Callbacks from widgets*/
00081 void on_bookmark_ctree_select_row(GtkWidget *ctree,GtkCTreeNode *node,gint col,BookmarkWindow *bwin);
00082 void on_bookmark_ctree_unselect_row(GtkWidget *ctree,GtkCTreeNode *node,gint col,BookmarkWindow *bwin);
00083 void on_bookmark_ctree_move(GtkWidget *ctree,GtkCTreeNode *node,GtkCTreeNode *parent,GtkCTreeNode *sibling,BookmarkWindow *bwin);
00084 void move_folder(GNode *old_node, GNode *new_parent_node);
00085 void print_bookmarks ();
00086 void print_node_data (GNode *node,FILE *file);
00087 void clear_entries(BookmarkWindow *bwin);
00088 void close_bookmark_window(BookmarkWindow *bwin);
00089 gboolean url_exists(BookmarkData *data);
00090 
00091 #endif