data 54 main.c guchar *spocti_cetnosti(FILE *file, ChData *data) data 68 main.c if (grafika) gtk_label_set_label(GTK_LABEL(data->label_info), "Malo RAM\n\n"); data 174 main.c gint vytvor_strom(ChData *data) data 209 main.c if (grafika) gtk_label_set_label(GTK_LABEL(data->label_info), "Soubor nelze dekodovat"); data 236 main.c gboolean merak_cb(gpointer data) data 240 main.c ChData *chdata = (ChData*) data; data 280 main.c gint zapis_kod(guchar *buffer_in, FILE *file, ChData *data) data 295 main.c if (grafika) gtk_label_set_label(GTK_LABEL(data->label_info), "Malo RAM\n"); data 320 main.c g_timeout_add(TIMEOUT, merak_cb, data); data 376 main.c guchar *nacti_kod(FILE *file, ChData *data) data 391 main.c if (grafika) gtk_label_set_label(GTK_LABEL(data->label_info), "Malo RAM\n"); data 436 main.c gint zapis_data(guchar *buffer_in, FILE *file, ChData *data) data 449 main.c if (grafika) gtk_label_set_label(GTK_LABEL(data->label_info), "Malo RAM\n"); data 455 main.c g_timeout_add(TIMEOUT, merak_cb, data); data 498 main.c gint komprese(gpointer data) data 503 main.c gchar *f_name_in = ((ChData*) data)->f_in; data 504 main.c gchar *f_name_out = ((ChData*) data)->f_out; data 522 main.c if ((buffer_in = spocti_cetnosti(in, data)) == NULL) return 1; data 523 main.c if (vytvor_strom(data)) { data 527 main.c if (zapis_kod(buffer_in, out, data)) { data 536 main.c if (grafika) gtk_label_set_label(GTK_LABEL(((ChData *) data)->label_info), "Uspesne dokonceno"); data 549 main.c gint dekomprese(gpointer data) data 554 main.c gchar *f_name_in = ((ChData*) data)->f_in; data 555 main.c gchar *f_name_out = ((ChData*) data)->f_out; data 573 main.c if ((buffer_in = nacti_kod(in, data)) == NULL) return 1; data 574 main.c if (vytvor_strom(data)) { data 578 main.c if (zapis_data(buffer_in, out, data)) { data 587 main.c if (grafika) gtk_label_set_label(GTK_LABEL(((ChData *) data)->label_info), "Uspesne dokonceno"); data 600 main.c G_MODULE_EXPORT void f_ch_b_file_set_cb(GtkWidget *widget, ChData *data) data 604 main.c data->f_in = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(widget)); data 605 main.c g_print("%s\n", data->f_in); data 607 main.c if (strlen(data->f_in) > 4); data 608 main.c if (strcmp(&(data->f_in)[strlen(data->f_in) - 4], ".hcr") == 0) { data 610 main.c strcpy(buf, data->f_in); data 612 main.c gtk_entry_set_text(GTK_ENTRY(data->entry_vystup), buf); data 614 main.c strcpy(data->f_out, buf); data 617 main.c strcpy(buf, data->f_in); data 619 main.c gtk_entry_set_text(GTK_ENTRY(data->entry_vystup), buf); data 621 main.c strcpy(data->f_out, buf); data 632 main.c G_MODULE_EXPORT void quit_cb(GtkWidget *widget, ChData *data) data 646 main.c G_MODULE_EXPORT void komprese_cb(GtkWidget *widget, ChData *data) data 649 main.c gtk_label_set_label(GTK_LABEL(data->label_info), "Nacitam soubor"); data 651 main.c strcpy(data->f_out, gtk_entry_get_text(GTK_ENTRY(data->entry_vystup))); data 653 main.c if ((thread = g_thread_create((GThreadFunc) komprese, data, FALSE, &err)) == NULL) { data 667 main.c G_MODULE_EXPORT void dekomprese_cb(GtkWidget *widget, ChData *data) data 670 main.c gtk_label_set_label(GTK_LABEL(data->label_info), "Nacitam soubor"); data 672 main.c strcpy(data->f_out, gtk_entry_get_text(GTK_ENTRY(data->entry_vystup))); data 674 main.c if ((thread = g_thread_create((GThreadFunc) dekomprese, data, FALSE, &err)) == NULL) { data 688 main.c G_MODULE_EXPORT void about_cb(GtkWidget *widget, ChData *data) data 719 main.c ChData *data; /**< Struktura obsahujici pointery na graficke prvky */ data 778 main.c data = g_slice_new(ChData); data 779 main.c data->f_in = f_in; data 780 main.c data->f_out = f_out; data 792 main.c data->main_window = GTK_WIDGET(gtk_builder_get_object(builder, "main_window")); data 793 main.c data->label_info = GTK_WIDGET(gtk_builder_get_object(builder, "label_info")); data 794 main.c data->f_ch_b = GTK_WIDGET(gtk_builder_get_object(builder, "f_ch_b")); data 795 main.c data->entry_vystup = GTK_WIDGET(gtk_builder_get_object(builder, "entry_vystup")); data 796 main.c data->statusbar = GTK_WIDGET(gtk_builder_get_object(builder, "statusbar")); data 798 main.c gtk_builder_connect_signals(builder, data); data 800 main.c gtk_widget_show(data->main_window); data 801 main.c gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(data->f_ch_b), f_in); data 802 main.c gtk_entry_set_text(GTK_ENTRY(data->entry_vystup), f_out); data 803 main.c gtk_statusbar_push(GTK_STATUSBAR(data->statusbar), gtk_statusbar_get_context_id(GTK_STATUSBAR(data->statusbar), "uvitani"), VERZE); data 808 main.c if (komprese(data) != 0) { data 814 main.c if (dekomprese(data) != 0) { data 820 main.c g_slice_free(ChData, data);