Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
edit.c File Reference
#include "common/conf.h"
#include "common/paths.h"
#include "common/act_on.h"
#include "common/history_actions.h"
#include "gui/common/history_actions_gui.h"
#include "control/jobs/control_jobs.h"
#include "gui/actions/menu.h"
#include "osx/osx.h"
#include "gui/preferences.h"
#include "common/undo.h"
#include "common/selection.h"
#include "caches/image_cache.h"
#include "history/history.h"
#include "develop/history_merge.h"
#include "gui/develop/history_merge_gui.h"
#include "develop/dev_history.h"
#include "develop/develop.h"
#include "control/control.h"
#include "control/user_message.h"
#include <gtk/gtk.h>
#include <glib.h>
#include "gui/application.h"
#include "widgets/accelerators.h"
#include "common/glib_utils.h"
+ Include dependency graph for edit.c:

Go to the source code of this file.

Macros

#define DT_UNDO_ANNOUNCE_FROM   20
 

Functions

static gboolean undo_sensitive_callback ()
 
static gboolean _undo_announce (const int records, const char *message)
 
static void _undo_announce_end (const gboolean announced)
 
static gboolean undo_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean redo_sensitive_callback ()
 
static gboolean redo_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean compress_history_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean copy_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean copy_parts_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean paste_sensitive_callback ()
 
static gboolean paste_all_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean paste_parts_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean load_xmp_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean duplicate_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean new_history_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean shortcuts_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean history_append_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean history_append_checked_callback (GtkWidget *widget)
 
static gboolean history_prepend_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean history_prepend_checked_callback (GtkWidget *widget)
 
static gboolean history_replace_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean history_replace_checked_callback (GtkWidget *widget)
 
static gboolean copy_iop_order_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean copy_iop_order_checked_callback (GtkWidget *widget)
 
static gboolean paste_ask_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data)
 
static gboolean paste_ask_checked_callback (GtkWidget *widget)
 
void append_edit (GtkWidget **menus, GList **lists, const dt_menus_t index)
 

Macro Definition Documentation

◆ DT_UNDO_ANNOUNCE_FROM

#define DT_UNDO_ANNOUNCE_FROM   20

Definition at line 77 of file edit.c.

Function Documentation

◆ _undo_announce()

static gboolean _undo_announce ( const int  records,
const char *  message 
)
static

◆ _undo_announce_end()

static void _undo_announce_end ( const gboolean  announced)
static

Definition at line 89 of file edit.c.

References dt_control_commit_cursor().

Referenced by redo_callback(), and undo_callback().

◆ append_edit()

◆ compress_history_callback()

static gboolean compress_history_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ copy_callback()

static gboolean copy_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ copy_iop_order_callback()

static gboolean copy_iop_order_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Definition at line 501 of file edit.c.

References dt_conf_get_bool(), dt_conf_set_bool(), and TRUE.

Referenced by append_edit().

◆ copy_iop_order_checked_callback()

static gboolean copy_iop_order_checked_callback ( GtkWidget widget)
static

Definition at line 507 of file edit.c.

References dt_conf_get_bool().

Referenced by append_edit().

◆ copy_parts_callback()

static gboolean copy_parts_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ duplicate_callback()

static gboolean duplicate_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ history_append_callback()

static gboolean history_append_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Definition at line 467 of file edit.c.

References dt_conf_set_int(), DT_HISTORY_MERGE_APPEND, and TRUE.

Referenced by append_edit().

◆ history_append_checked_callback()

static gboolean history_append_checked_callback ( GtkWidget widget)
static

Definition at line 473 of file edit.c.

References dt_conf_get_int(), and DT_HISTORY_MERGE_APPEND.

Referenced by append_edit().

◆ history_prepend_callback()

static gboolean history_prepend_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Definition at line 478 of file edit.c.

References dt_conf_set_int(), DT_HISTORY_MERGE_PREPEND, and TRUE.

Referenced by append_edit().

◆ history_prepend_checked_callback()

static gboolean history_prepend_checked_callback ( GtkWidget widget)
static

Definition at line 484 of file edit.c.

References dt_conf_get_int(), and DT_HISTORY_MERGE_PREPEND.

Referenced by append_edit().

◆ history_replace_callback()

static gboolean history_replace_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Definition at line 489 of file edit.c.

References dt_conf_set_int(), DT_HISTORY_MERGE_REPLACE, and TRUE.

Referenced by append_edit().

◆ history_replace_checked_callback()

static gboolean history_replace_checked_callback ( GtkWidget widget)
static

Definition at line 496 of file edit.c.

References dt_conf_get_int(), and DT_HISTORY_MERGE_REPLACE.

Referenced by append_edit().

◆ load_xmp_callback()

◆ new_history_callback()

static gboolean new_history_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ paste_all_callback()

static gboolean paste_all_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ paste_ask_callback()

static gboolean paste_ask_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Definition at line 512 of file edit.c.

References dt_conf_get_bool(), dt_conf_set_bool(), and TRUE.

Referenced by append_edit().

◆ paste_ask_checked_callback()

static gboolean paste_ask_checked_callback ( GtkWidget widget)
static

Definition at line 518 of file edit.c.

References dt_conf_get_bool().

Referenced by append_edit().

◆ paste_parts_callback()

static gboolean paste_parts_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ paste_sensitive_callback()

static gboolean paste_sensitive_callback ( )
static

◆ redo_callback()

static gboolean redo_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ redo_sensitive_callback()

◆ shortcuts_callback()

static gboolean shortcuts_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

Definition at line 461 of file edit.c.

References dt_accels_window(), dt_gui_get_accels(), dt_gui_main_window(), and TRUE.

Referenced by append_edit().

◆ undo_callback()

static gboolean undo_callback ( GtkAccelGroup *  group,
GObject *  acceleratable,
guint  keyval,
GdkModifierType  mods,
gpointer  user_data 
)
static

◆ undo_sensitive_callback()