Logo Search packages:      
Sourcecode: viewglob version File versions  Download package

exhibit.h

/*
      Copyright (C) 2004, 2005 Stephen Bach
      This file is part of the viewglob package.

      viewglob is free software; you can 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.

      viewglob 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 viewglob; if not, write to the Free Software
      Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef EXHIBIT_H
#define EXHIBIT_H

#include "dlisting.h"
#include <gtk/gtk.h>

G_BEGIN_DECLS


typedef struct _Exhibit Exhibit;
struct _Exhibit {

      GtkWidget* window;

      /* This is for DListing structs. */
      GSList* dls;

      /* This is the vbox holding the dir/file listings. */
      GtkWidget* listings_box;

      /* Vertical scrollbar. */
      GtkAdjustment* vadjustment;

      /* Change in window width that needs to be applied to the DListings. */
      gint width_change;

      /* The entry holding the command line. */
      GtkWidget* cmdline;

      /* The Window (in string form) of the active terminal. */
      GString* term_win;
};


DListing*  exhibit_add(Exhibit* e, gchar* name, gint rank,
            gchar* selected_count, gchar* total_count, gchar* hidden_count);
void       exhibit_unmark_all(Exhibit* e);
void       exhibit_cull(Exhibit* e);
void       exhibit_rearrange_and_show(Exhibit* e);
void       exhibit_do_order(Exhibit* e, gchar* order);
void       exhibit_set_cmd(Exhibit* e, gchar* string);

G_END_DECLS

#endif /* !EXHIBIT_H */


Generated by  Doxygen 1.6.0   Back to index