Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
metadata.cc File Reference
#include "metadata.hh"
#include <spdlog/spdlog.h>
#include <gdk/gdk.h>
#include <scroom/showmetadatainterface.hh>
#include "version.h"
Include dependency graph for metadata.cc:

Functions

void on_image_properties_activate (GtkButton *self, gpointer user_data)
 

Function Documentation

◆ on_image_properties_activate()

void on_image_properties_activate ( GtkButton *  self,
gpointer  user_data 
)

On Metadata button press, open and populate properties window

Parameters
user_datagpointer to the view passed on clicking metadata button
Postcondition
metadata of image is shown in window if presentation != null
24{
25 auto* view = static_cast<ViewInterface*>(user_data);
26 auto showMetaDataInterface = std::dynamic_pointer_cast<ShowMetadataInterface>(view->getCurrentPresentation());
27 require(showMetaDataInterface);
28
29 showMetaDataInterface->showMetadata(Scroom::GtkHelpers::get_parent_window(GTK_WIDGET(self)));
30}
#define require(expr)
Definition assertions.hh:30
Definition viewinterface.hh:191
GtkWindow * get_parent_window(GtkWidget *widget)
Definition gtk-helpers.cc:17
const auto view
Definition pipette-tests.cc:227

Referenced by Metadata::viewAdded().

Here is the call graph for this function:
Here is the caller graph for this function: