Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
ratings.c File Reference
#include "common/collection.h"
#include "common/darktable.h"
#include "common/debug.h"
#include "common/image_cache.h"
#include "common/ratings.h"
#include "common/undo.h"
#include "common/grouping.h"
#include "views/view.h"
#include "control/conf.h"
#include "control/control.h"
#include "gui/gtk.h"
+ Include dependency graph for ratings.c:

Data Structures

struct  dt_undo_ratings_t
 

Macros

#define DT_RATINGS_UPGRADE   -1
 
#define DT_RATINGS_DOWNGRADE   -2
 
#define DT_RATINGS_REJECT   -3
 
#define DT_RATINGS_UNREJECT   -4
 

Typedefs

typedef struct dt_undo_ratings_t dt_undo_ratings_t
 

Functions

char * dt_ratings_get_name (const int rating)
 
int dt_ratings_get (const int32_t imgid)
 
static void _ratings_apply_to_image (const int32_t imgid, const int rating)
 
static void _pop_undo (gpointer user_data, dt_undo_type_t type, dt_undo_data_t data, dt_undo_action_t action, GList **imgs)
 
static void _ratings_undo_data_free (gpointer data)
 
static void _ratings_apply (GList *imgs, const int rating, GList **undo, const gboolean undo_on)
 
void dt_ratings_apply_on_list (GList *img, const int rating, const gboolean undo_on)
 
void dt_ratings_apply_on_image (const int32_t imgid, const int rating, const gboolean single_star_toggle, const gboolean undo_on, const gboolean group_on)
 

Macro Definition Documentation

◆ DT_RATINGS_DOWNGRADE

#define DT_RATINGS_DOWNGRADE   -2

◆ DT_RATINGS_REJECT

#define DT_RATINGS_REJECT   -3

◆ DT_RATINGS_UNREJECT

#define DT_RATINGS_UNREJECT   -4

◆ DT_RATINGS_UPGRADE

#define DT_RATINGS_UPGRADE   -1

Typedef Documentation

◆ dt_undo_ratings_t

Function Documentation

◆ _pop_undo()

static void _pop_undo ( gpointer  user_data,
dt_undo_type_t  type,
dt_undo_data_t  data,
dt_undo_action_t  action,
GList **  imgs 
)
static

◆ _ratings_apply()

◆ _ratings_apply_to_image()

◆ _ratings_undo_data_free()

static void _ratings_undo_data_free ( gpointer  data)
static

◆ dt_ratings_apply_on_image()

void dt_ratings_apply_on_image ( const int32_t  imgid,
const int  rating,
const gboolean  single_star_toggle,
const gboolean  undo_on,
const gboolean  group_on 
)

◆ dt_ratings_apply_on_list()

void dt_ratings_apply_on_list ( GList *  list,
const int  rating,
const gboolean  undo_on 
)

◆ dt_ratings_get()

int dt_ratings_get ( const int32_t  imgid)

◆ dt_ratings_get_name()

char * dt_ratings_get_name ( const int  rating)