![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/collection.h"
#include "common/cups_print.h"
#include "common/printing.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/image_cache.h"
#include "common/selection.h"
#include "control/conf.h"
#include "control/control.h"
#include "develop/develop.h"
#include "dtgtk/thumbtable.h"
#include "gui/drag_and_drop.h"
#include "gui/gtk.h"
#include "gui/presets.h"
#include "views/view.h"
#include "views/view_api.h"
#include <gdk/gdkkeysyms.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
Data Structures | |
struct | dt_print_t |
Typedefs | |
typedef struct dt_print_t | dt_print_t |
Functions | |
const char * | name (const dt_view_t *self) |
uint32_t | view (const dt_view_t *self) |
static void | _film_strip_activated (const int32_t imgid, void *data) |
static void | _view_print_filmstrip_activate_callback (gpointer instance, int32_t imgid, gpointer user_data) |
static void | _view_print_settings (const dt_view_t *view, dt_print_info_t *pinfo, dt_images_box *imgs) |
static void | _drag_and_drop_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *selection_data, guint target_type, guint time, gpointer data) |
static gboolean | _drag_motion_received (GtkWidget *widget, GdkDragContext *dc, gint x, gint y, guint time, gpointer data) |
void | init (dt_view_t *self) |
void | cleanup (dt_view_t *self) |
static void | expose_print_page (dt_view_t *self, cairo_t *cr, int32_t width, int32_t height, int32_t pointerx, int32_t pointery) |
void | expose (dt_view_t *self, cairo_t *cri, int32_t width_i, int32_t height_i, int32_t pointerx, int32_t pointery) |
void | mouse_moved (dt_view_t *self, double x, double y, double pressure, int which) |
int | try_enter (dt_view_t *self) |
void | enter (dt_view_t *self) |
void | leave (dt_view_t *self) |
typedef struct dt_print_t dt_print_t |
this is the view for the print module.
|
static |
|
static |
References dt_view_t::data, dt_control_queue_redraw_center(), dt_printing_get_image_box(), dt_print_t::imgs, dt_images_box::motion_over, and TRUE.
Referenced by enter().
References dt_images_box::box, dt_images_box::count, darktable, dt_view_t::data, darktable_t::db, dt_control_queue_redraw(), dt_database_get(), DT_DEBUG_SQLITE3_PREPARE_V2, dt_selection_select_single(), dt_view_active_images_add(), dt_view_active_images_reset(), FALSE, _image_box::imgid, dt_print_t::imgs, dt_print_t::last_selected, darktable_t::selection, and TRUE.
Referenced by _view_print_filmstrip_activate_callback().
|
static |
References _film_strip_activated().
|
static |
References dt_control_queue_redraw(), dt_print_t::imgs, dt_print_t::pinfo, and view().
Referenced by init().
References dt_view_t::data.
References _drag_and_drop_received(), _drag_motion_received(), _view_print_filmstrip_activate_callback(), darktable, dt_view_t::data, dt_control_set_mouse_over_id(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gui_refocus_center(), DT_SIGNAL_VIEWMANAGER_THUMBTABLE_ACTIVATE, dt_ui_center(), dt_view_active_images_add(), dt_view_active_images_reset(), FALSE, darktable_t::gui, dt_images_box::imgid_to_load, dt_print_t::imgs, n_targets_all, darktable_t::signals, target_list_all, TRUE, and dt_gui_gtk_t::ui.
void expose | ( | dt_view_t * | self, |
cairo_t * | cri, | ||
int32_t | width_i, | ||
int32_t | height_i, | ||
int32_t | pointerx, | ||
int32_t | pointery | ||
) |
References DT_GUI_COLOR_PRINT_BG, dt_gui_gtk_set_source_rgb(), and expose_print_page().
|
static |
References dt_view_t::data, dt_get_print_layout(), dt_printing_setup_display(), FALSE, height, dt_paper_info_t::height, dt_printer_info_t::hw_margin_bottom, dt_printer_info_t::hw_margin_left, dt_printer_info_t::hw_margin_right, dt_printer_info_t::hw_margin_top, dt_print_t::imgs, dt_page_setup_t::landscape, dt_print_info_t::page, dt_print_info_t::paper, dt_print_t::pinfo, dt_print_info_t::printer, width, and dt_paper_info_t::width.
Referenced by expose().
const char * name | ( | const dt_view_t * | self | ) |
int try_enter | ( | dt_view_t * | self | ) |
References darktable, dt_view_t::data, dt_control_log(), dt_image_cache_get(), dt_image_cache_read_release(), dt_image_full_path(), dt_selection_get_first_id(), dt_view_active_images_reset(), FALSE, dt_image_t::filename, dt_image_t::id, darktable_t::image_cache, dt_images_box::imgid_to_load, dt_print_t::imgs, PATH_MAX, darktable_t::selection, and TRUE.
uint32_t view | ( | const dt_view_t * | self | ) |
References DT_VIEW_PRINT.
Referenced by _view_print_settings().