AgsFileSelection

AgsFileSelection

Synopsis

#define             AGS_FILE_SELECTION_ENTRY            (strct)
struct              AgsFileSelection;
struct              AgsFileSelectionClass;
struct              AgsFileSelectionEntry;
enum                AgsFileSelectionFlags;
void                ags_file_selection_add_entry        (AgsFileSelection *file_selection,
                                                         GtkWidget *widget);
void                ags_file_selection_completed        (AgsFileSelection *file_selection);
gboolean            ags_file_selection_contains_file    (AgsFileSelection *file_selection,
                                                         gchar *filename);
AgsFileSelectionEntry * ags_file_selection_entry_alloc  ();
AgsFileSelection *  ags_file_selection_new              ();
void                ags_file_selection_remove_entry     (AgsFileSelection *file_selection,
                                                         GtkWidget *widget);
void                ags_file_selection_set_entry        (AgsFileSelection *file_selection,
                                                         GList *entry);

Description

Details

AGS_FILE_SELECTION_ENTRY()

#define AGS_FILE_SELECTION_ENTRY(strct)        ((AgsFileSelectionEntry *) (strct))

struct AgsFileSelection

struct AgsFileSelection {
  GtkVBox vbox;
  
  guint flags;

  gchar *directory;

  guint entry_count;
  GList *entry;

  GtkLabel *chosed;
  GtkLabel *selected;
};

struct AgsFileSelectionClass

struct AgsFileSelectionClass {
  GtkVBoxClass vbox;

  void (*add_entry)(AgsFileSelection *file_selection, GtkWidget *widget);
  void (*remove_entry)(AgsFileSelection *file_selection, GtkWidget *widget);

  void (*completed)(AgsFileSelection *file_selection);
};

struct AgsFileSelectionEntry

struct AgsFileSelectionEntry {
  GtkTable *table;

  GtkWidget *entry;

  gboolean chosed;
  gchar *filename;

  GtkSpinButton *nth_sample;
  GtkSpinButton *nth_channel;
  GtkSpinButton *count;
};

enum AgsFileSelectionFlags

typedef enum {
  AGS_FILE_SELECTION_COMPLETED   = 1,
} AgsFileSelectionFlags;

ags_file_selection_add_entry ()

void                ags_file_selection_add_entry        (AgsFileSelection *file_selection,
                                                         GtkWidget *widget);

ags_file_selection_completed ()

void                ags_file_selection_completed        (AgsFileSelection *file_selection);

ags_file_selection_contains_file ()

gboolean            ags_file_selection_contains_file    (AgsFileSelection *file_selection,
                                                         gchar *filename);

ags_file_selection_entry_alloc ()

AgsFileSelectionEntry * ags_file_selection_entry_alloc  ();

ags_file_selection_new ()

AgsFileSelection *  ags_file_selection_new              ();

ags_file_selection_remove_entry ()

void                ags_file_selection_remove_entry     (AgsFileSelection *file_selection,
                                                         GtkWidget *widget);

ags_file_selection_set_entry ()

void                ags_file_selection_set_entry        (AgsFileSelection *file_selection,
                                                         GList *entry);

Add new entries to the AgsFileSelection.