Add an optional function to the pop-up button, so that it will select the next entry when clicked and also do some miscellaneous code clean-ups including forward declarations.

This commit is contained in:
Adam Reichold
2015-12-20 15:56:12 +01:00
parent e9141dd98c
commit 151556ae23
11 changed files with 127 additions and 91 deletions

View File

@@ -29,6 +29,7 @@
#include "soundman.h"
#include "rtimage.h"
#include <iostream>
#include "popupbutton.h"
using namespace rtengine::procparams;
@@ -76,7 +77,7 @@ private:
void prepareIntentBox ()
{
PopUpButton *bt = new PopUpButton();
PopUpButton *bt = new PopUpButton(Glib::ustring(), true);
intentBox = Gtk::manage(bt);
intentBox->addEntry("intent-relative.png", M("PREFERENCES_INTENT_RELATIVE"));
intentBox->addEntry("intent-perceptual.png", M("PREFERENCES_INTENT_PERCEPTUAL"));