rawTherapee/rtgui/iptcpanel.h
Hombre57 f23be9345c Add multi-frame handling.
- Exif of all frames are displayed in the Editor's Exif tab (without
separator)
- isHDR and isPixelShift is added to the data files stored in cache
- In the Editor panel, the QuickInfo frame display the HDR and
PixelShift information, as well as the number of frame and bit-depth for
HDR image
- the number of frame is provided by dcraw. If not set, it is provided
by the Exif's main IFD count
- the PixelShift information (for Pentax as of now) is provided by
looking at the Exif informations
- the HDR information is provided by the Exif information of the first
frame for Pentax raw files, or by the bitspersample, sampleformat and
compression tags for other files

TODO: add icons to the thumbnails to tag HDR and PixelShift files.
2017-08-08 23:42:05 +02:00

94 lines
2.7 KiB
C++

/*
* This file is part of RawTherapee.
*
* Copyright (c) 2004-2010 Gabor Horvath <hgabor@rawtherapee.com>
*
* RawTherapee is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* RawTherapee is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _IPTCPANEL_
#define _IPTCPANEL_
#include <gtkmm.h>
#include "toolpanel.h"
#include "guiutils.h"
class IPTCPanel : public Gtk::VBox, public ToolPanel
{
private:
rtengine::procparams::IPTCPairs changeList;
rtengine::procparams::IPTCPairs defChangeList;
rtengine::procparams::IPTCPairs embeddedData;
Gtk::TextView* captionView;
Glib::RefPtr<Gtk::TextBuffer> captionText;
Gtk::Entry* captionWriter;
Gtk::Entry* headline;
Gtk::Entry* instructions;
MyComboBoxText* keyword;
Gtk::ListViewText* keywords;
Gtk::Button* addKW;
Gtk::Button* delKW;
MyComboBoxText* category;
MyComboBoxText* suppCategory;
Gtk::ListViewText* suppCategories;
Gtk::Button* addSC;
Gtk::Button* delSC;
Gtk::Entry* creator;
Gtk::Entry* creatorJobTitle;
Gtk::Entry* credit;
Gtk::Entry* source;
Gtk::Entry* copyright;
Gtk::Entry* city;
Gtk::Entry* province;
Gtk::Entry* country;
Gtk::Entry* title;
Gtk::Entry* dateCreated;
Gtk::Entry* transReference;
Gtk::Button* reset;
Gtk::Button* file;
Gtk::Button* copy;
Gtk::Button* paste;
sigc::connection conns[16];
void applyChangeList ();
void updateChangeList ();
public:
IPTCPanel ();
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr);
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr);
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr);
void setImageData (const rtengine::FramesMetaData* id);
void notifyListener ();
void addKeyWord ();
void delKeyWord ();
void addSuppCategory ();
void delSuppCategory ();
void resetClicked ();
void fileClicked ();
void copyClicked ();
void pasteClicked ();
};
#endif