![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "widgets/bauhaus.h"#include "common/paths.h"#include "common/global_mutexes.h"#include "common/image.h"#include "common/selection.h"#include "imageio/imageio_core.h"#include "imageio/imageio_module.h"#include "common/utility.h"#include "common/variables.h"#include "common/conf.h"#include "control/signal.h"#include "control/user_message.h"#include "widgets/button.h"#include "widgets/paint.h"#include "gui/application.h"#include "widgets/gtkentry.h"#include "imageio/storage/imageio_storage_api.h"#include <glib.h>#include <glib/gstdio.h>#include <stdio.h>#include <stdlib.h>#include "common/module_versioning.h"
Include dependency graph for disk.c:Go to the source code of this file.
Data Structures | |
| struct | disk_t |
| struct | dt_imageio_disk_t |
Typedefs | |
| typedef enum dt_disk_onconflict_actions_t | dt_disk_onconflict_actions_t |
| typedef struct disk_t | disk_t |
| typedef struct dt_imageio_disk_t | dt_imageio_disk_t |
Enumerations | |
| enum | dt_disk_onconflict_actions_t { DT_EXPORT_ONCONFLICT_UNIQUEFILENAME = 0 , DT_EXPORT_ONCONFLICT_OVERWRITE = 1 , DT_EXPORT_ONCONFLICT_SKIP = 2 } |
Variables | |
| static dt_pthread_mutex_t | _filename_lock |
| static pthread_once_t | _filename_lock_once = PTHREAD_ONCE_INIT |
| typedef enum dt_disk_onconflict_actions_t dt_disk_onconflict_actions_t |
| typedef struct dt_imageio_disk_t dt_imageio_disk_t |
Definition at line 321 of file disk.c.
References _filename_lock, and dt_pthread_mutex_init().
Referenced by store().
|
static |
Definition at line 231 of file disk.c.
References _update_preview(), and dt_imageio_module_storage_t::gui_data.
Referenced by gui_cleanup(), and gui_init().
Definition at line 185 of file disk.c.
References d, dt_free, dt_image_full_path(), dt_imageio_get_format(), DT_PATH_MAX, dt_selection_get_first_id(), dt_selection_get_global(), dt_util_fix_path(), dt_variables_expand(), dt_variables_params_destroy(), dt_variables_params_init(), FALSE, dt_variables_params_t::filename, dt_variables_params_t::imgid, dt_variables_params_t::jobcode, dt_variables_params_t::sequence, TRUE, and UNKNOWN_IMAGE.
Referenced by _selection_changed_callback(), entry_changed_callback(), and gui_init().
| char * ask_user_confirmation | ( | dt_imageio_module_storage_t * | self | ) |
Definition at line 510 of file disk.c.
References dt_bauhaus_combobox_get(), dt_conf_get_bool(), DT_EXPORT_ONCONFLICT_OVERWRITE, g, and dt_imageio_module_storage_t::gui_data.
|
static |
Definition at line 155 of file disk.c.
References d, dt_cleanup_separators(), dt_free, dt_gui_main_window(), and dt_imageio_module_storage_t::gui_data.
Referenced by gui_init().
|
static |
Definition at line 223 of file disk.c.
References _update_preview(), d, dt_conf_set_string(), and dt_imageio_module_storage_t::gui_data.
Referenced by gui_init().
| void free_params | ( | dt_imageio_module_storage_t * | self, |
| dt_imageio_module_data_t * | params | ||
| ) |
Definition at line 489 of file disk.c.
References d, dt_free, dt_variables_params_destroy(), and IS_NULL_PTR.
| void * get_params | ( | dt_imageio_module_storage_t * | self | ) |
Definition at line 474 of file disk.c.
References d, dt_conf_get_int(), dt_conf_get_string_const(), and dt_variables_params_init().
| void gui_cleanup | ( | dt_imageio_module_storage_t * | self | ) |
Definition at line 297 of file disk.c.
References _selection_changed_callback(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, and dt_imageio_module_storage_t::gui_data.
| void gui_init | ( | dt_imageio_module_storage_t * | self | ) |
Definition at line 241 of file disk.c.
References _selection_changed_callback(), _update_preview(), button_clicked(), CPF_NONE, d, dt_accels_disconnect_on_text_input(), dt_bauhaus_combobox_add(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_get_global(), dt_bauhaus_widget_set_label(), dt_conf_get_int(), dt_conf_get_string_const(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gtkentry_get_default_path_compl_list(), dt_gtkentry_setup_completion(), DT_GUI_BOX_SPACING, DT_GUI_MODULE, DT_SIGNAL_SELECTION_CHANGED, dtgtk_button_new(), dtgtk_cairo_paint_directory(), entry_changed_callback(), FALSE, dt_imageio_module_storage_t::gui_data, onsave_action_toggle_callback(), TRUE, and dt_imageio_module_storage_t::widget.
| void gui_reset | ( | dt_imageio_module_storage_t * | self | ) |
Definition at line 303 of file disk.c.
References d, dt_bauhaus_combobox_get(), dt_bauhaus_combobox_set(), dt_conf_set_int(), dt_conf_set_string(), dt_confgen_get(), dt_confgen_get_int(), DT_DEFAULT, and dt_imageio_module_storage_t::gui_data.
| void init | ( | dt_imageio_module_storage_t * | self | ) |
| void * legacy_params | ( | dt_imageio_module_storage_t * | self, |
| const void *const | old_params, | ||
| const size_t | old_params_size, | ||
| const int | old_version, | ||
| const int | new_version, | ||
| size_t * | new_size | ||
| ) |
Definition at line 107 of file disk.c.
References DT_EXPORT_ONCONFLICT_OVERWRITE, DT_EXPORT_ONCONFLICT_UNIQUEFILENAME, DT_MAX_PATH_FOR_PARAMS, and n.
| const char * name | ( | const struct dt_imageio_module_storage_t * | self | ) |
Definition at line 236 of file disk.c.
References dt_bauhaus_combobox_get(), and dt_conf_set_int().
Referenced by gui_init().
| size_t params_size | ( | dt_imageio_module_storage_t * | self | ) |
| int set_params | ( | dt_imageio_module_storage_t * | self, |
| const void * | params, | ||
| const int | size | ||
| ) |
Definition at line 497 of file disk.c.
References d, dt_bauhaus_combobox_set(), g, dt_imageio_module_storage_t::gui_data, and size.
| int store | ( | dt_imageio_module_storage_t * | self, |
| dt_imageio_module_data_t * | sdata, | ||
| const int32_t | imgid, | ||
| dt_imageio_module_format_t * | format, | ||
| dt_imageio_module_data_t * | fdata, | ||
| const int | num, | ||
| const int | total, | ||
| const gboolean | high_quality, | ||
| const gboolean | export_masks, | ||
| dt_colorspaces_color_profile_type_t | icc_type, | ||
| const gchar * | icc_filename, | ||
| dt_iop_color_intent_t | icc_intent, | ||
| dt_export_metadata_t * | metadata | ||
| ) |
Definition at line 326 of file disk.c.
References _filename_lock, _filename_lock_init(), _filename_lock_once, d, dt_control_log(), DT_EXPORT_ONCONFLICT_SKIP, DT_EXPORT_ONCONFLICT_UNIQUEFILENAME, dt_free, dt_image_full_path(), dt_imageio_export(), DT_MAX_PATH_FOR_PARAMS, DT_PATH_MAX, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_util_fix_path(), dt_variables_expand(), dt_variables_params_destroy(), dt_variables_params_init(), dt_variables_set_max_width_height(), FALSE, dt_variables_params_t::filename, dt_variables_params_t::imgid, dt_variables_params_t::jobcode, dt_imageio_module_data_t::max_height, dt_imageio_module_data_t::max_width, dt_variables_params_t::sequence, and TRUE.
|
static |
Definition at line 318 of file disk.c.
Referenced by _filename_lock_init(), and store().