For issue #3483, the old behavior is restored, i.e. the minimum width of the ProfilePanel combobox is the maximum width of its content. Style updated for the Exif and IPTC sub-tabs
This commit is contained in:
@@ -41,10 +41,6 @@
|
|||||||
padding: 2px;
|
padding: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plainback {
|
|
||||||
background-color: #404040;
|
|
||||||
}
|
|
||||||
|
|
||||||
window > decoration {
|
window > decoration {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
@@ -606,24 +602,55 @@ paned > separator {
|
|||||||
|
|
||||||
/* All tool panels have a frame except for Meta which unlike the rest is a notebook itself.
|
/* All tool panels have a frame except for Meta which unlike the rest is a notebook itself.
|
||||||
* So we use CSS to make it look like a frame. */
|
* So we use CSS to make it look like a frame. */
|
||||||
#MetaPanelNotebook.frame {
|
#MetaPanelNotebook > stack > box {
|
||||||
border: 1px solid #262626;
|
border: 1px solid #262626;
|
||||||
border-bottom-left-radius: 4px;
|
background-color: #363636;
|
||||||
border-bottom-right-radius: 4px;
|
border-radius: 0 0 4px 4px;
|
||||||
border-top-left-radius: 0;
|
border-top-style: none;
|
||||||
border-top-right-radius: 0;
|
padding: 0 3px 3px 3px;
|
||||||
border-top-width: 0;
|
margin: 0 5px 5px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#MetaPanelNotebook header {
|
#MetaPanelNotebook header {
|
||||||
border: 1px solid #262626;
|
border: 1px solid #262626;
|
||||||
border-bottom-left-radius: 0;
|
background-color: #363636;
|
||||||
border-bottom-right-radius: 0;
|
border-radius: 4px 4px 0 0;
|
||||||
border-top-left-radius: 4px;
|
border-bottom-style: none;
|
||||||
border-top-right-radius: 4px;
|
|
||||||
border-bottom-width: 0;
|
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 5px;
|
margin: 5px 5px 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook > header > tabs {
|
||||||
|
background-color: #363636;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook > header tab {
|
||||||
|
margin: 0 5px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook textview {
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook entry, #MetaPanelNotebook scrolledwindow, #MetaPanelNotebook combobox {
|
||||||
|
margin: 2px 0 2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook entry {
|
||||||
|
padding: 0 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook label {
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#MetaPanelNotebook text {
|
||||||
|
border-color: #202020;
|
||||||
|
background-color: #262626;
|
||||||
|
border-style: solid;
|
||||||
|
border-width: 1px;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#PreviewWindow {
|
#PreviewWindow {
|
||||||
|
@@ -204,50 +204,46 @@ void BatchQueuePanel::updateTab (int qsize, int forceOrientation)
|
|||||||
qsize = batchQueue->getEntries().size();
|
qsize = batchQueue->getEntries().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Gtk::Grid* grid = Gtk::manage (new Gtk::Grid ());
|
||||||
if ((forceOrientation == 0 && options.mainNBVertical) || (forceOrientation == 2)) {
|
if ((forceOrientation == 0 && options.mainNBVertical) || (forceOrientation == 2)) {
|
||||||
Gtk::VBox* vbb = Gtk::manage (new Gtk::VBox ());
|
|
||||||
Gtk::Label* l;
|
Gtk::Label* l;
|
||||||
|
|
||||||
if(!qsize ) {
|
if(!qsize ) {
|
||||||
vbb->pack_start (*Gtk::manage (new RTImage ("processing.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("processing.png")), Gtk::POS_TOP, 1, 1);
|
||||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE")) );
|
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE")) );
|
||||||
} else if( start->get_active () ) {
|
} else if( start->get_active () ) {
|
||||||
vbb->pack_start (*Gtk::manage (new RTImage ("processing-play.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("processing-play.png")), Gtk::POS_TOP, 1, 1);
|
||||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]"));
|
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]"));
|
||||||
} else {
|
} else {
|
||||||
vbb->pack_start (*Gtk::manage (new RTImage ("processing-pause.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("processing-pause.png")), Gtk::POS_TOP, 1, 1);
|
||||||
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" ));
|
l = Gtk::manage (new Gtk::Label (Glib::ustring(" ") + M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" ));
|
||||||
}
|
}
|
||||||
|
|
||||||
l->set_angle (90);
|
l->set_angle (90);
|
||||||
vbb->pack_start (*l);
|
grid->attach_next_to(*l, Gtk::POS_TOP, 1, 1);
|
||||||
vbb->set_spacing (2);
|
grid->set_tooltip_markup (M("MAIN_FRAME_BATCHQUEUE_TOOLTIP"));
|
||||||
vbb->set_tooltip_markup (M("MAIN_FRAME_BATCHQUEUE_TOOLTIP"));
|
grid->show_all ();
|
||||||
vbb->show_all ();
|
|
||||||
|
|
||||||
if (nb) {
|
if (nb) {
|
||||||
nb->set_tab_label(*this, *vbb);
|
nb->set_tab_label(*this, *grid);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Gtk::HBox* hbb = Gtk::manage (new Gtk::HBox ());
|
|
||||||
|
|
||||||
if (!qsize ) {
|
if (!qsize ) {
|
||||||
hbb->pack_start (*Gtk::manage (new RTImage ("processing.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("processing.png")), Gtk::POS_RIGHT, 1, 1);
|
||||||
hbb->pack_start (*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") )));
|
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") )), Gtk::POS_RIGHT, 1, 1);
|
||||||
} else if ( start->get_active () ) {
|
} else if ( start->get_active () ) {
|
||||||
hbb->pack_start (*Gtk::manage (new RTImage ("processing-play.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("processing-play.png")), Gtk::POS_RIGHT, 1, 1);
|
||||||
hbb->pack_start (*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )));
|
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )), Gtk::POS_RIGHT, 1, 1);
|
||||||
} else {
|
} else {
|
||||||
hbb->pack_start (*Gtk::manage (new RTImage ("processing-pause.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("processing-pause.png")), Gtk::POS_RIGHT, 1, 1);
|
||||||
hbb->pack_start (*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )));
|
grid->attach_next_to(*Gtk::manage (new Gtk::Label (M("MAIN_FRAME_BATCHQUEUE") + " [" + Glib::ustring::format( qsize ) + "]" )), Gtk::POS_RIGHT, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
hbb->set_spacing (2);
|
grid->set_tooltip_markup (M("MAIN_FRAME_BATCHQUEUE_TOOLTIP"));
|
||||||
hbb->set_tooltip_markup (M("MAIN_FRAME_BATCHQUEUE_TOOLTIP"));
|
grid->show_all ();
|
||||||
hbb->show_all ();
|
|
||||||
|
|
||||||
if (nb) {
|
if (nb) {
|
||||||
nb->set_tab_label(*this, *hbb);
|
nb->set_tab_label(*this, *grid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -49,7 +49,7 @@ private:
|
|||||||
private:
|
private:
|
||||||
void prepareProfileBox ()
|
void prepareProfileBox ()
|
||||||
{
|
{
|
||||||
profileBox.setPreferredWidth (90, 150);
|
profileBox.set_size_request(90, -1);
|
||||||
setExpandAlignProperties (&profileBox, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
setExpandAlignProperties (&profileBox, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
||||||
|
|
||||||
profileBox.append (M ("PREFERENCES_PROFILE_NONE"));
|
profileBox.append (M ("PREFERENCES_PROFILE_NONE"));
|
||||||
|
@@ -58,6 +58,11 @@ ExifPanel::ExifPanel () : idata(nullptr)
|
|||||||
viewcol->pack_start (*render_txt, true);
|
viewcol->pack_start (*render_txt, true);
|
||||||
viewcol->add_attribute (*render_pb, "pixbuf", exifColumns.icon);
|
viewcol->add_attribute (*render_pb, "pixbuf", exifColumns.icon);
|
||||||
viewcol->add_attribute (*render_txt, "markup", exifColumns.field);
|
viewcol->add_attribute (*render_txt, "markup", exifColumns.field);
|
||||||
|
viewcol->set_expand(true);
|
||||||
|
viewcol->set_resizable (true);
|
||||||
|
viewcol->set_fixed_width(35);
|
||||||
|
viewcol->set_min_width(35);
|
||||||
|
viewcol->set_sizing(Gtk::TREE_VIEW_COLUMN_AUTOSIZE);
|
||||||
|
|
||||||
render_pb->property_ypad() = 0;
|
render_pb->property_ypad() = 0;
|
||||||
render_txt->property_ypad() = 0;
|
render_txt->property_ypad() = 0;
|
||||||
@@ -71,6 +76,11 @@ ExifPanel::ExifPanel () : idata(nullptr)
|
|||||||
render_txtv->property_ellipsize() = Pango::ELLIPSIZE_END;
|
render_txtv->property_ellipsize() = Pango::ELLIPSIZE_END;
|
||||||
viewcolv->pack_start (*render_txtv, true);
|
viewcolv->pack_start (*render_txtv, true);
|
||||||
viewcolv->add_attribute (*render_txtv, "markup", exifColumns.value);
|
viewcolv->add_attribute (*render_txtv, "markup", exifColumns.value);
|
||||||
|
viewcolv->set_expand(true);
|
||||||
|
viewcolv->set_resizable (true);
|
||||||
|
viewcol->set_fixed_width(35);
|
||||||
|
viewcolv->set_min_width(35);
|
||||||
|
viewcolv->set_sizing(Gtk::TREE_VIEW_COLUMN_AUTOSIZE);
|
||||||
|
|
||||||
render_txtv->property_ypad() = 0;
|
render_txtv->property_ypad() = 0;
|
||||||
|
|
||||||
|
@@ -673,17 +673,11 @@ void FileCatalog::_refreshProgressBar ()
|
|||||||
GThreadLock lock; // All GUI acces from idle_add callbacks or separate thread HAVE to be protected
|
GThreadLock lock; // All GUI acces from idle_add callbacks or separate thread HAVE to be protected
|
||||||
|
|
||||||
Gtk::Notebook *nb = (Gtk::Notebook *)(filepanel->get_parent());
|
Gtk::Notebook *nb = (Gtk::Notebook *)(filepanel->get_parent());
|
||||||
Gtk::Box* hbb = nullptr;
|
Gtk::Grid* grid = Gtk::manage (new Gtk::Grid ());
|
||||||
Gtk::Label *label = nullptr;
|
Gtk::Label *label = nullptr;
|
||||||
|
|
||||||
if( options.mainNBVertical ) {
|
|
||||||
hbb = Gtk::manage (new Gtk::VBox ());
|
|
||||||
} else {
|
|
||||||
hbb = Gtk::manage (new Gtk::HBox ());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!previewsToLoad ) {
|
if (!previewsToLoad ) {
|
||||||
hbb->pack_start (*Gtk::manage (new RTImage ("gtk-directory.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("gtk-directory.png")), options.mainNBVertical ? Gtk::POS_TOP : Gtk::POS_RIGHT, 1, 1);
|
||||||
int filteredCount = min(fileBrowser->getNumFiltered(), previewsLoaded);
|
int filteredCount = min(fileBrowser->getNumFiltered(), previewsLoaded);
|
||||||
|
|
||||||
label = Gtk::manage (new Gtk::Label (M("MAIN_FRAME_FILEBROWSER") +
|
label = Gtk::manage (new Gtk::Label (M("MAIN_FRAME_FILEBROWSER") +
|
||||||
@@ -691,7 +685,7 @@ void FileCatalog::_refreshProgressBar ()
|
|||||||
+ Glib::ustring::format(previewsLoaded) +
|
+ Glib::ustring::format(previewsLoaded) +
|
||||||
(filteredCount != previewsLoaded ? "]" : ")")));
|
(filteredCount != previewsLoaded ? "]" : ")")));
|
||||||
} else {
|
} else {
|
||||||
hbb->pack_start (*Gtk::manage (new RTImage ("gtk-find.png")));
|
grid->attach_next_to(*Gtk::manage (new RTImage ("gtk-find.png")), options.mainNBVertical ? Gtk::POS_TOP : Gtk::POS_RIGHT, 1, 1);
|
||||||
label = Gtk::manage (new Gtk::Label (M("MAIN_FRAME_FILEBROWSER") + " [" + Glib::ustring::format(std::fixed, std::setprecision(0), std::setw(3), (double)previewsLoaded / previewsToLoad * 100 ) + "%]" ));
|
label = Gtk::manage (new Gtk::Label (M("MAIN_FRAME_FILEBROWSER") + " [" + Glib::ustring::format(std::fixed, std::setprecision(0), std::setw(3), (double)previewsLoaded / previewsToLoad * 100 ) + "%]" ));
|
||||||
filepanel->loadingThumbs("", (double)previewsLoaded / previewsToLoad);
|
filepanel->loadingThumbs("", (double)previewsLoaded / previewsToLoad);
|
||||||
}
|
}
|
||||||
@@ -700,13 +694,12 @@ void FileCatalog::_refreshProgressBar ()
|
|||||||
label->set_angle(90);
|
label->set_angle(90);
|
||||||
}
|
}
|
||||||
|
|
||||||
hbb->pack_start (*label);
|
grid->attach_next_to(*label, options.mainNBVertical ? Gtk::POS_TOP : Gtk::POS_RIGHT, 1, 1);
|
||||||
hbb->set_spacing (2);
|
grid->set_tooltip_markup (M("MAIN_FRAME_FILEBROWSER_TOOLTIP"));
|
||||||
hbb->set_tooltip_markup (M("MAIN_FRAME_FILEBROWSER_TOOLTIP"));
|
grid->show_all ();
|
||||||
hbb->show_all ();
|
|
||||||
|
|
||||||
if (nb) {
|
if (nb) {
|
||||||
nb->set_tab_label(*filepanel, *hbb);
|
nb->set_tab_label(*filepanel, *grid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -936,9 +936,8 @@ void MyScrolledWindow::get_preferred_height_for_width_vfunc (int width, int &min
|
|||||||
natural_height = minimum_height = 50;
|
natural_height = minimum_height = 50;
|
||||||
}
|
}
|
||||||
|
|
||||||
MyComboBoxText::MyComboBoxText ()
|
MyComboBoxText::MyComboBoxText (bool has_entry) : Gtk::ComboBoxText(has_entry)
|
||||||
{
|
{
|
||||||
minimumWidth = naturalWidth = 70;
|
|
||||||
Gtk::CellRendererText* cellRenderer = dynamic_cast<Gtk::CellRendererText*>(get_first_cell());
|
Gtk::CellRendererText* cellRenderer = dynamic_cast<Gtk::CellRendererText*>(get_first_cell());
|
||||||
cellRenderer->property_ellipsize() = Pango::ELLIPSIZE_MIDDLE;
|
cellRenderer->property_ellipsize() = Pango::ELLIPSIZE_MIDDLE;
|
||||||
}
|
}
|
||||||
@@ -956,39 +955,6 @@ bool MyComboBoxText::on_scroll_event (GdkEventScroll* event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyComboBoxText::setPreferredWidth (int minimum_width, int natural_width)
|
|
||||||
{
|
|
||||||
if (natural_width == -1 && minimum_width == -1) {
|
|
||||||
naturalWidth = minimumWidth = 70;
|
|
||||||
} else if (natural_width == -1) {
|
|
||||||
naturalWidth = minimumWidth = minimum_width;
|
|
||||||
} else if (minimum_width == -1) {
|
|
||||||
naturalWidth = natural_width;
|
|
||||||
minimumWidth = rtengine::max(naturalWidth / 2, 20);
|
|
||||||
minimumWidth = rtengine::min(naturalWidth, minimumWidth);
|
|
||||||
} else {
|
|
||||||
naturalWidth = natural_width;
|
|
||||||
minimumWidth = minimum_width;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyComboBoxText::get_preferred_width_vfunc (int &minimum_width, int &natural_width) const
|
|
||||||
{
|
|
||||||
natural_width = rtengine::max(naturalWidth, 10);
|
|
||||||
minimum_width = rtengine::max(minimumWidth, 10);
|
|
||||||
}
|
|
||||||
void MyComboBoxText::get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const
|
|
||||||
{
|
|
||||||
natural_width = rtengine::max(naturalWidth, 10);
|
|
||||||
minimum_width = rtengine::max(minimumWidth, 10);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
MyComboBox::MyComboBox ()
|
|
||||||
{
|
|
||||||
minimumWidth = naturalWidth = 70;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool MyComboBox::on_scroll_event (GdkEventScroll* event)
|
bool MyComboBox::on_scroll_event (GdkEventScroll* event)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -1002,33 +968,6 @@ bool MyComboBox::on_scroll_event (GdkEventScroll* event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MyComboBox::setPreferredWidth (int minimum_width, int natural_width)
|
|
||||||
{
|
|
||||||
if (natural_width == -1 && minimum_width == -1) {
|
|
||||||
naturalWidth = minimumWidth = 70;
|
|
||||||
} else if (natural_width == -1) {
|
|
||||||
naturalWidth = minimumWidth = minimum_width;
|
|
||||||
} else if (minimum_width == -1) {
|
|
||||||
naturalWidth = natural_width;
|
|
||||||
minimumWidth = rtengine::max(naturalWidth / 2, 20);
|
|
||||||
minimumWidth = rtengine::min(naturalWidth, minimumWidth);
|
|
||||||
} else {
|
|
||||||
naturalWidth = natural_width;
|
|
||||||
minimumWidth = minimum_width;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void MyComboBox::get_preferred_width_vfunc (int &minimum_width, int &natural_width) const
|
|
||||||
{
|
|
||||||
natural_width = rtengine::max(naturalWidth, 10);
|
|
||||||
minimum_width = rtengine::max(minimumWidth, 10);
|
|
||||||
}
|
|
||||||
void MyComboBox::get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const
|
|
||||||
{
|
|
||||||
natural_width = rtengine::max(naturalWidth, 10);
|
|
||||||
minimum_width = rtengine::max(minimumWidth, 10);
|
|
||||||
}
|
|
||||||
|
|
||||||
MySpinButton::MySpinButton ()
|
MySpinButton::MySpinButton ()
|
||||||
{
|
{
|
||||||
Gtk::Border border;
|
Gtk::Border border;
|
||||||
|
@@ -273,16 +273,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
class MyComboBox : public Gtk::ComboBox
|
class MyComboBox : public Gtk::ComboBox
|
||||||
{
|
{
|
||||||
int naturalWidth, minimumWidth;
|
|
||||||
|
|
||||||
bool on_scroll_event (GdkEventScroll* event);
|
bool on_scroll_event (GdkEventScroll* event);
|
||||||
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
|
|
||||||
void get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const;
|
|
||||||
|
|
||||||
public:
|
|
||||||
MyComboBox ();
|
|
||||||
|
|
||||||
void setPreferredWidth (int minimum_width, int natural_width);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -290,16 +281,10 @@ public:
|
|||||||
*/
|
*/
|
||||||
class MyComboBoxText : public Gtk::ComboBoxText
|
class MyComboBoxText : public Gtk::ComboBoxText
|
||||||
{
|
{
|
||||||
int naturalWidth, minimumWidth;
|
|
||||||
|
|
||||||
bool on_scroll_event (GdkEventScroll* event);
|
bool on_scroll_event (GdkEventScroll* event);
|
||||||
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
|
|
||||||
void get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
MyComboBoxText ();
|
MyComboBoxText (bool has_entry = false);
|
||||||
|
|
||||||
void setPreferredWidth (int minimum_width, int natural_width);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -26,239 +26,296 @@ using namespace rtengine::procparams;
|
|||||||
IPTCPanel::IPTCPanel ()
|
IPTCPanel::IPTCPanel ()
|
||||||
{
|
{
|
||||||
|
|
||||||
Gtk::Table* iptc = Gtk::manage( new Gtk::Table (27, 2) );
|
Gtk::Grid* iptc = Gtk::manage( new Gtk::Grid () );
|
||||||
|
setExpandAlignProperties(iptc, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||||
|
|
||||||
int row = 0;
|
int row = 0;
|
||||||
|
|
||||||
Gtk::Label* capl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CAPTION") + ":") );
|
Gtk::Label* capl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CAPTION") + ":") );
|
||||||
|
setExpandAlignProperties(capl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_START);
|
||||||
captionText = Gtk::TextBuffer::create ();
|
captionText = Gtk::TextBuffer::create ();
|
||||||
captionView = Gtk::manage( new Gtk::TextView (captionText) );
|
captionView = Gtk::manage( new Gtk::TextView (captionText) );
|
||||||
|
setExpandAlignProperties(captionView, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
Gtk::ScrolledWindow* scrolledWindowc = Gtk::manage( new Gtk::ScrolledWindow() );
|
Gtk::ScrolledWindow* scrolledWindowc = Gtk::manage( new Gtk::ScrolledWindow() );
|
||||||
|
setExpandAlignProperties(scrolledWindowc, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||||
scrolledWindowc->set_min_content_height (100);
|
scrolledWindowc->set_min_content_height (100);
|
||||||
scrolledWindowc->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
scrolledWindowc->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
||||||
scrolledWindowc->add(*captionView);
|
scrolledWindowc->add(*captionView);
|
||||||
capl->set_tooltip_text (M("IPTCPANEL_CAPTIONHINT"));
|
capl->set_tooltip_text (M("IPTCPANEL_CAPTIONHINT"));
|
||||||
captionView->set_tooltip_text (M("IPTCPANEL_CAPTIONHINT"));
|
captionView->set_tooltip_text (M("IPTCPANEL_CAPTIONHINT"));
|
||||||
captionView->set_size_request(32, 80);
|
captionView->set_size_request(35, 95);
|
||||||
iptc->attach (*capl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*capl, 0, row, 1, 1);
|
||||||
iptc->attach (*scrolledWindowc, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*scrolledWindowc, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* capwl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CAPTIONWRITER") + ":") );
|
Gtk::Label* capwl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CAPTIONWRITER") + ":") );
|
||||||
|
setExpandAlignProperties(capwl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
captionWriter = Gtk::manage( new Gtk::Entry () );
|
captionWriter = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(captionWriter, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
capwl->set_tooltip_text (M("IPTCPANEL_CAPTIONWRITERHINT"));
|
capwl->set_tooltip_text (M("IPTCPANEL_CAPTIONWRITERHINT"));
|
||||||
captionWriter->set_tooltip_text (M("IPTCPANEL_CAPTIONWRITERHINT"));
|
captionWriter->set_tooltip_text (M("IPTCPANEL_CAPTIONWRITERHINT"));
|
||||||
iptc->attach (*capwl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*capwl, 0, row, 1, 1);
|
||||||
iptc->attach (*captionWriter, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*captionWriter, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* headl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_HEADLINE") + ":") );
|
Gtk::Label* headl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_HEADLINE") + ":") );
|
||||||
|
setExpandAlignProperties(headl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
headline = Gtk::manage( new Gtk::Entry () );
|
headline = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(headline, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
headl->set_tooltip_text (M("IPTCPANEL_HEADLINEHINT"));
|
headl->set_tooltip_text (M("IPTCPANEL_HEADLINEHINT"));
|
||||||
headline->set_tooltip_text (M("IPTCPANEL_HEADLINEHINT"));
|
headline->set_tooltip_text (M("IPTCPANEL_HEADLINEHINT"));
|
||||||
iptc->attach (*headl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*headl, 0, row, 1, 1);
|
||||||
iptc->attach (*headline, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*headline, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* instl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_INSTRUCTIONS") + ":") );
|
Gtk::Label* instl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_INSTRUCTIONS") + ":") );
|
||||||
|
setExpandAlignProperties(instl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
instructions = Gtk::manage( new Gtk::Entry () );
|
instructions = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(instructions, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
instl->set_tooltip_text (M("IPTCPANEL_INSTRUCTIONSHINT"));
|
instl->set_tooltip_text (M("IPTCPANEL_INSTRUCTIONSHINT"));
|
||||||
instructions->set_tooltip_text (M("IPTCPANEL_INSTRUCTIONSHINT"));
|
instructions->set_tooltip_text (M("IPTCPANEL_INSTRUCTIONSHINT"));
|
||||||
iptc->attach (*instl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*instl, 0, row, 1, 1);
|
||||||
iptc->attach (*instructions, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*instructions, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::HSeparator* hsep1 = Gtk::manage( new Gtk::HSeparator () );
|
Gtk::HSeparator* hsep1 = Gtk::manage( new Gtk::HSeparator () );
|
||||||
iptc->attach (*hsep1, 0, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
setExpandAlignProperties(hsep1, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
|
iptc->attach (*hsep1, 0, row, 2, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* keyl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_KEYWORDS") + ":"));
|
Gtk::Label* keyl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_KEYWORDS") + ":"));
|
||||||
|
setExpandAlignProperties(keyl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
|
keyl->set_tooltip_text (M("IPTCPANEL_KEYWORDSHINT"));
|
||||||
keywords = Gtk::manage( new Gtk::ListViewText (1, false, Gtk::SELECTION_MULTIPLE) );
|
keywords = Gtk::manage( new Gtk::ListViewText (1, false, Gtk::SELECTION_MULTIPLE) );
|
||||||
|
setExpandAlignProperties(keywords, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||||
keywords->set_headers_visible (false);
|
keywords->set_headers_visible (false);
|
||||||
keywords->set_size_request (50, 80);
|
keywords->set_size_request (50, 95);
|
||||||
Gtk::ScrolledWindow* scrolledWindowkw = Gtk::manage( new Gtk::ScrolledWindow() );
|
Gtk::ScrolledWindow* scrolledWindowkw = Gtk::manage( new Gtk::ScrolledWindow() );
|
||||||
|
setExpandAlignProperties(scrolledWindowkw, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||||
scrolledWindowkw->set_min_content_height (100);
|
scrolledWindowkw->set_min_content_height (100);
|
||||||
scrolledWindowkw->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
scrolledWindowkw->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
||||||
scrolledWindowkw->add(*keywords);
|
scrolledWindowkw->add(*keywords);
|
||||||
keyword = Gtk::manage( new Gtk::ComboBoxText (true) );
|
keyword = Gtk::manage(new MyComboBoxText (true));
|
||||||
keyword->set_size_request (32, -1);
|
setExpandAlignProperties(keyword, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
keyl->set_tooltip_text (M("IPTCPANEL_KEYWORDSHINT"));
|
keyword->set_size_request(35);
|
||||||
keywords->set_tooltip_text (M("IPTCPANEL_KEYWORDSHINT"));
|
keywords->set_tooltip_text (M("IPTCPANEL_KEYWORDSHINT"));
|
||||||
keyword->set_tooltip_text (M("IPTCPANEL_KEYWORDSHINT"));
|
keyword->set_tooltip_text (M("IPTCPANEL_KEYWORDSHINT"));
|
||||||
addKW = Gtk::manage( new Gtk::Button () );
|
addKW = Gtk::manage( new Gtk::Button () );
|
||||||
|
setExpandAlignProperties(addKW, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
delKW = Gtk::manage( new Gtk::Button () );
|
delKW = Gtk::manage( new Gtk::Button () );
|
||||||
|
setExpandAlignProperties(delKW, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
Gtk::Image* addKWImg = Gtk::manage( new RTImage ("list-add-small.png") );
|
Gtk::Image* addKWImg = Gtk::manage( new RTImage ("list-add-small.png") );
|
||||||
|
setExpandAlignProperties(addKWImg, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
Gtk::Image* delKWImg = Gtk::manage( new RTImage ("list-remove-red-small.png") );
|
Gtk::Image* delKWImg = Gtk::manage( new RTImage ("list-remove-red-small.png") );
|
||||||
|
setExpandAlignProperties(delKWImg, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
addKW->add (*addKWImg);
|
addKW->add (*addKWImg);
|
||||||
delKW->add (*delKWImg);
|
delKW->add (*delKWImg);
|
||||||
Gtk::HBox* kwhb = Gtk::manage( new Gtk::HBox () );
|
Gtk::Grid* kwgrid = Gtk::manage( new Gtk::Grid () );
|
||||||
kwhb->pack_start (*keyword);
|
setExpandAlignProperties(kwgrid, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
kwhb->pack_start (*addKW, Gtk::PACK_SHRINK, 2);
|
kwgrid->attach (*keyword, 0, 0, 1, 1);
|
||||||
kwhb->pack_start (*delKW, Gtk::PACK_SHRINK, 2);
|
kwgrid->attach (*addKW, 1, 0, 1, 1);
|
||||||
iptc->attach (*keyl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
kwgrid->attach (*delKW, 2, 0, 1, 1);
|
||||||
iptc->attach (*kwhb, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*keyl, 0, row, 1, 1);
|
||||||
|
iptc->attach (*kwgrid, 1, row, 1, 1);
|
||||||
row++;
|
row++;
|
||||||
iptc->attach (*scrolledWindowkw, 0, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*scrolledWindowkw, 0, row, 2, 1);
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::HSeparator* hsep2 = Gtk::manage( new Gtk::HSeparator () );
|
Gtk::HSeparator* hsep2 = Gtk::manage( new Gtk::HSeparator () );
|
||||||
iptc->attach (*hsep2, 0, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
setExpandAlignProperties(hsep2, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
|
iptc->attach (*hsep2, 0, row, 2, 1);
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* catl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CATEGORY") + ":") );
|
Gtk::Label* catl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CATEGORY") + ":") );
|
||||||
category = Gtk::manage( new Gtk::ComboBoxText (true) );
|
setExpandAlignProperties(catl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
category->set_size_request (32, -1);
|
category = Gtk::manage(new MyComboBoxText (true));
|
||||||
|
category->set_size_request(35);
|
||||||
|
setExpandAlignProperties(category, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
catl->set_tooltip_text (M("IPTCPANEL_CATEGORYHINT"));
|
catl->set_tooltip_text (M("IPTCPANEL_CATEGORYHINT"));
|
||||||
category->set_tooltip_text (M("IPTCPANEL_CATEGORYHINT"));
|
category->set_tooltip_text (M("IPTCPANEL_CATEGORYHINT"));
|
||||||
Gtk::Label* scl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_SUPPCATEGORIES") + ":") );
|
Gtk::Label* scl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_SUPPCATEGORIES") + ":") );
|
||||||
|
setExpandAlignProperties(scl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
suppCategories = Gtk::manage( new Gtk::ListViewText (1, false, Gtk::SELECTION_MULTIPLE) );
|
suppCategories = Gtk::manage( new Gtk::ListViewText (1, false, Gtk::SELECTION_MULTIPLE) );
|
||||||
|
setExpandAlignProperties(suppCategories, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
suppCategories->set_headers_visible (false);
|
suppCategories->set_headers_visible (false);
|
||||||
suppCategories->set_size_request(50, 80);
|
suppCategories->set_size_request(50, 95);
|
||||||
Gtk::ScrolledWindow* scrolledWindowsc = Gtk::manage( new Gtk::ScrolledWindow() );
|
Gtk::ScrolledWindow* scrolledWindowsc = Gtk::manage( new Gtk::ScrolledWindow() );
|
||||||
|
setExpandAlignProperties(scrolledWindowsc, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
||||||
scrolledWindowsc->set_min_content_height (100);
|
scrolledWindowsc->set_min_content_height (100);
|
||||||
scrolledWindowsc->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
scrolledWindowsc->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
||||||
scrolledWindowsc->add(*suppCategories);
|
scrolledWindowsc->add(*suppCategories);
|
||||||
suppCategory = Gtk::manage( new Gtk::ComboBoxText (true) );
|
suppCategory = Gtk::manage(new MyComboBoxText (true));
|
||||||
suppCategory->set_size_request (32, -1);
|
suppCategory->set_size_request(35);
|
||||||
|
setExpandAlignProperties(suppCategory, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
scl->set_tooltip_text (M("IPTCPANEL_SUPPCATEGORIESHINT"));
|
scl->set_tooltip_text (M("IPTCPANEL_SUPPCATEGORIESHINT"));
|
||||||
suppCategories->set_tooltip_text (M("IPTCPANEL_SUPPCATEGORIESHINT"));
|
suppCategories->set_tooltip_text (M("IPTCPANEL_SUPPCATEGORIESHINT"));
|
||||||
suppCategory->set_tooltip_text (M("IPTCPANEL_SUPPCATEGORIESHINT"));
|
suppCategory->set_tooltip_text (M("IPTCPANEL_SUPPCATEGORIESHINT"));
|
||||||
addSC = Gtk::manage( new Gtk::Button () );
|
addSC = Gtk::manage( new Gtk::Button () );
|
||||||
|
setExpandAlignProperties(addSC, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
delSC = Gtk::manage( new Gtk::Button () );
|
delSC = Gtk::manage( new Gtk::Button () );
|
||||||
|
setExpandAlignProperties(delSC, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
Gtk::Image* addSCImg = Gtk::manage( new RTImage ("list-add-small.png") );
|
Gtk::Image* addSCImg = Gtk::manage( new RTImage ("list-add-small.png") );
|
||||||
|
setExpandAlignProperties(addSCImg, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
Gtk::Image* delSCImg = Gtk::manage( new RTImage ("list-remove-red-small.png") );
|
Gtk::Image* delSCImg = Gtk::manage( new RTImage ("list-remove-red-small.png") );
|
||||||
|
setExpandAlignProperties(delSCImg, false, false, Gtk::ALIGN_CENTER, Gtk::ALIGN_CENTER);
|
||||||
addSC->add (*addSCImg);
|
addSC->add (*addSCImg);
|
||||||
delSC->add (*delSCImg);
|
delSC->add (*delSCImg);
|
||||||
Gtk::HBox* schb = Gtk::manage( new Gtk::HBox () );
|
Gtk::Grid* scgrid = Gtk::manage( new Gtk::Grid () );
|
||||||
schb->pack_start (*suppCategory);
|
setExpandAlignProperties(scgrid, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
schb->pack_start (*addSC, Gtk::PACK_SHRINK, 2);
|
scgrid->attach (*suppCategory, 0, 0, 1, 1);
|
||||||
schb->pack_start (*delSC, Gtk::PACK_SHRINK, 2);
|
scgrid->attach (*addSC, 1, 0, 1, 1);
|
||||||
iptc->attach (*catl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
scgrid->attach (*delSC, 2, 0, 1, 1);
|
||||||
iptc->attach (*category, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*catl, 0, row, 1, 1);
|
||||||
|
iptc->attach (*category, 1, row, 1, 1);
|
||||||
row++;
|
row++;
|
||||||
iptc->attach (*scl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*scl, 0, row, 1, 1);
|
||||||
iptc->attach (*schb, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*scgrid, 1, row, 1, 1);
|
||||||
row++;
|
row++;
|
||||||
iptc->attach (*scrolledWindowsc, 0, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*scrolledWindowsc, 0, row, 2, 1);
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::HSeparator* hsep3 = Gtk::manage( new Gtk::HSeparator () );
|
Gtk::HSeparator* hsep3 = Gtk::manage( new Gtk::HSeparator () );
|
||||||
iptc->attach (*hsep3, 0, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
setExpandAlignProperties(hsep3, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
|
iptc->attach (*hsep3, 0, row, 2, 1);
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* authl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_AUTHOR") + ":") );
|
Gtk::Label* authl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_AUTHOR") + ":") );
|
||||||
|
setExpandAlignProperties(authl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
author = Gtk::manage( new Gtk::Entry () );
|
author = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(author, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
authl->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
authl->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
||||||
author->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
author->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
||||||
iptc->attach (*authl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*authl, 0, row, 1, 1);
|
||||||
iptc->attach (*author, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*author, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* aupl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_AUTHORSPOSITION") + ":") );
|
Gtk::Label* aupl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_AUTHORSPOSITION") + ":") );
|
||||||
|
setExpandAlignProperties(aupl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
authorPos = Gtk::manage( new Gtk::Entry () );
|
authorPos = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(authorPos, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
aupl->set_tooltip_text (M("IPTCPANEL_AUTHORSPOSITIONHINT"));
|
aupl->set_tooltip_text (M("IPTCPANEL_AUTHORSPOSITIONHINT"));
|
||||||
authorPos->set_tooltip_text (M("IPTCPANEL_AUTHORSPOSITIONHINT"));
|
authorPos->set_tooltip_text (M("IPTCPANEL_AUTHORSPOSITIONHINT"));
|
||||||
iptc->attach (*aupl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*aupl, 0, row, 1, 1);
|
||||||
iptc->attach (*authorPos, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*authorPos, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* credl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CREDIT") + ":") );
|
Gtk::Label* credl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CREDIT") + ":") );
|
||||||
|
setExpandAlignProperties(credl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
credit = Gtk::manage( new Gtk::Entry () );
|
credit = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(credit, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
credl->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
credl->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
||||||
credit->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
credit->set_tooltip_text (M("IPTCPANEL_CREDITHINT"));
|
||||||
iptc->attach (*credl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*credl, 0, row, 1, 1);
|
||||||
iptc->attach (*credit, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*credit, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* sourl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_SOURCE") + ":") );
|
Gtk::Label* sourl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_SOURCE") + ":") );
|
||||||
|
setExpandAlignProperties(sourl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
source = Gtk::manage( new Gtk::Entry () );
|
source = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(source, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
sourl->set_tooltip_text (M("IPTCPANEL_SOURCEHINT"));
|
sourl->set_tooltip_text (M("IPTCPANEL_SOURCEHINT"));
|
||||||
source->set_tooltip_text (M("IPTCPANEL_SOURCEHINT"));
|
source->set_tooltip_text (M("IPTCPANEL_SOURCEHINT"));
|
||||||
iptc->attach (*sourl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*sourl, 0, row, 1, 1);
|
||||||
iptc->attach (*source, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*source, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* cprl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_COPYRIGHT") + ":") );
|
Gtk::Label* cprl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_COPYRIGHT") + ":") );
|
||||||
|
setExpandAlignProperties(cprl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
copyright = Gtk::manage( new Gtk::Entry () );
|
copyright = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(copyright, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
cprl->set_tooltip_text (M("IPTCPANEL_COPYRIGHTHINT"));
|
cprl->set_tooltip_text (M("IPTCPANEL_COPYRIGHTHINT"));
|
||||||
copyright->set_tooltip_text (M("IPTCPANEL_COPYRIGHTHINT"));
|
copyright->set_tooltip_text (M("IPTCPANEL_COPYRIGHTHINT"));
|
||||||
iptc->attach (*cprl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*cprl, 0, row, 1, 1);
|
||||||
iptc->attach (*copyright, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*copyright, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::HSeparator* hsep4 = Gtk::manage( new Gtk::HSeparator () );
|
Gtk::HSeparator* hsep4 = Gtk::manage( new Gtk::HSeparator () );
|
||||||
iptc->attach (*hsep4, 0, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
setExpandAlignProperties(hsep4, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
|
iptc->attach (*hsep4, 0, row, 2, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* cityl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CITY") + ":") );
|
Gtk::Label* cityl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_CITY") + ":") );
|
||||||
|
setExpandAlignProperties(cityl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
city = Gtk::manage( new Gtk::Entry () );
|
city = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(city, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
cityl->set_tooltip_text (M("IPTCPANEL_CITYHINT"));
|
cityl->set_tooltip_text (M("IPTCPANEL_CITYHINT"));
|
||||||
city->set_tooltip_text (M("IPTCPANEL_CITYHINT"));
|
city->set_tooltip_text (M("IPTCPANEL_CITYHINT"));
|
||||||
iptc->attach (*cityl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*cityl, 0, row, 1, 1);
|
||||||
iptc->attach (*city, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*city, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* provl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_PROVINCE") + ":") );
|
Gtk::Label* provl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_PROVINCE") + ":") );
|
||||||
|
setExpandAlignProperties(provl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
province = Gtk::manage( new Gtk::Entry () );
|
province = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(province, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
provl->set_tooltip_text (M("IPTCPANEL_PROVINCEHINT"));
|
provl->set_tooltip_text (M("IPTCPANEL_PROVINCEHINT"));
|
||||||
province->set_tooltip_text (M("IPTCPANEL_PROVINCEHINT"));
|
province->set_tooltip_text (M("IPTCPANEL_PROVINCEHINT"));
|
||||||
iptc->attach (*provl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*provl, 0, row, 1, 1);
|
||||||
iptc->attach (*province, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*province, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* ctrl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_COUNTRY") + ":") );
|
Gtk::Label* ctrl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_COUNTRY") + ":") );
|
||||||
|
setExpandAlignProperties(ctrl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
country = Gtk::manage( new Gtk::Entry () );
|
country = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(country, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
ctrl->set_tooltip_text (M("IPTCPANEL_COUNTRYHINT"));
|
ctrl->set_tooltip_text (M("IPTCPANEL_COUNTRYHINT"));
|
||||||
country->set_tooltip_text (M("IPTCPANEL_COUNTRYHINT"));
|
country->set_tooltip_text (M("IPTCPANEL_COUNTRYHINT"));
|
||||||
iptc->attach (*ctrl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*ctrl, 0, row, 1, 1);
|
||||||
iptc->attach (*country, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*country, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* titll = Gtk::manage( new Gtk::Label (M("IPTCPANEL_TITLE") + ":") );
|
Gtk::Label* titll = Gtk::manage( new Gtk::Label (M("IPTCPANEL_TITLE") + ":") );
|
||||||
|
setExpandAlignProperties(titll, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
title = Gtk::manage( new Gtk::Entry () );
|
title = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(title, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
titll->set_tooltip_text (M("IPTCPANEL_TITLEHINT"));
|
titll->set_tooltip_text (M("IPTCPANEL_TITLEHINT"));
|
||||||
title->set_tooltip_text (M("IPTCPANEL_TITLEHINT"));
|
title->set_tooltip_text (M("IPTCPANEL_TITLEHINT"));
|
||||||
iptc->attach (*titll, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*titll, 0, row, 1, 1);
|
||||||
iptc->attach (*title, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*title, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* dcl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_DATECREATED") + ":") );
|
Gtk::Label* dcl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_DATECREATED") + ":") );
|
||||||
|
setExpandAlignProperties(dcl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
dateCreated = Gtk::manage( new Gtk::Entry () );
|
dateCreated = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(dateCreated, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
dcl->set_tooltip_text (M("IPTCPANEL_DATECREATEDHINT"));
|
dcl->set_tooltip_text (M("IPTCPANEL_DATECREATEDHINT"));
|
||||||
dateCreated->set_tooltip_text (M("IPTCPANEL_DATECREATEDHINT"));
|
dateCreated->set_tooltip_text (M("IPTCPANEL_DATECREATEDHINT"));
|
||||||
iptc->attach (*dcl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*dcl, 0, row, 1, 1);
|
||||||
iptc->attach (*dateCreated, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*dateCreated, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::Label* trl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_TRANSREFERENCE") + ":") );
|
Gtk::Label* trl = Gtk::manage( new Gtk::Label (M("IPTCPANEL_TRANSREFERENCE") + ":") );
|
||||||
|
setExpandAlignProperties(trl, false, false, Gtk::ALIGN_END, Gtk::ALIGN_BASELINE);
|
||||||
transReference = Gtk::manage( new Gtk::Entry () );
|
transReference = Gtk::manage( new Gtk::Entry () );
|
||||||
|
setExpandAlignProperties(transReference, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_BASELINE);
|
||||||
trl->set_tooltip_text (M("IPTCPANEL_TRANSREFERENCEHINT"));
|
trl->set_tooltip_text (M("IPTCPANEL_TRANSREFERENCEHINT"));
|
||||||
transReference->set_tooltip_text (M("IPTCPANEL_TRANSREFERENCEHINT"));
|
transReference->set_tooltip_text (M("IPTCPANEL_TRANSREFERENCEHINT"));
|
||||||
iptc->attach (*trl, 0, 1, row, row + 1, Gtk::SHRINK, Gtk::SHRINK, 2, 2);
|
iptc->attach (*trl, 0, row, 1, 1);
|
||||||
iptc->attach (*transReference, 1, 2, row, row + 1, Gtk::EXPAND | Gtk::FILL, Gtk::SHRINK, 2, 2);
|
iptc->attach (*transReference, 1, row, 1, 1);
|
||||||
|
|
||||||
row++;
|
row++;
|
||||||
|
|
||||||
Gtk::ScrolledWindow* scrolledWindow = Gtk::manage( new Gtk::ScrolledWindow() );
|
Gtk::ScrolledWindow* scrolledWindow = Gtk::manage( new Gtk::ScrolledWindow() );
|
||||||
|
setExpandAlignProperties(scrolledWindow, false, true, Gtk::ALIGN_FILL, Gtk::ALIGN_FILL);
|
||||||
scrolledWindow->set_shadow_type(Gtk::SHADOW_NONE);
|
scrolledWindow->set_shadow_type(Gtk::SHADOW_NONE);
|
||||||
scrolledWindow->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
scrolledWindow->set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_ALWAYS);
|
||||||
scrolledWindow->property_window_placement().set_value(Gtk::CORNER_TOP_LEFT);
|
scrolledWindow->property_window_placement().set_value(Gtk::CORNER_TOP_RIGHT);
|
||||||
scrolledWindow->add(*iptc);
|
scrolledWindow->add(*iptc);
|
||||||
|
|
||||||
pack_start (*scrolledWindow);
|
pack_start (*scrolledWindow);
|
||||||
|
@@ -36,12 +36,12 @@ private:
|
|||||||
Gtk::Entry* captionWriter;
|
Gtk::Entry* captionWriter;
|
||||||
Gtk::Entry* headline;
|
Gtk::Entry* headline;
|
||||||
Gtk::Entry* instructions;
|
Gtk::Entry* instructions;
|
||||||
Gtk::ComboBoxText* keyword;
|
MyComboBoxText* keyword;
|
||||||
Gtk::ListViewText* keywords;
|
Gtk::ListViewText* keywords;
|
||||||
Gtk::Button* addKW;
|
Gtk::Button* addKW;
|
||||||
Gtk::Button* delKW;
|
Gtk::Button* delKW;
|
||||||
Gtk::ComboBoxText* category;
|
MyComboBoxText* category;
|
||||||
Gtk::ComboBoxText* suppCategory;
|
MyComboBoxText* suppCategory;
|
||||||
Gtk::ListViewText* suppCategories;
|
Gtk::ListViewText* suppCategories;
|
||||||
Gtk::Button* addSC;
|
Gtk::Button* addSC;
|
||||||
Gtk::Button* delSC;
|
Gtk::Button* delSC;
|
||||||
|
@@ -53,44 +53,40 @@ ProfilePanel::ProfilePanel () : storedPProfile(nullptr), lastFilename(""), image
|
|||||||
fillMode->add( options.filledProfile ? *profileFillModeOnImage : *profileFillModeOffImage );
|
fillMode->add( options.filledProfile ? *profileFillModeOnImage : *profileFillModeOffImage );
|
||||||
fillMode->signal_toggled().connect ( sigc::mem_fun(*this, &ProfilePanel::profileFillModeToggled) );
|
fillMode->signal_toggled().connect ( sigc::mem_fun(*this, &ProfilePanel::profileFillModeToggled) );
|
||||||
fillMode->set_tooltip_text(M("PROFILEPANEL_MODE_TIP"));
|
fillMode->set_tooltip_text(M("PROFILEPANEL_MODE_TIP"));
|
||||||
fillMode->set_margin_right(2);
|
setExpandAlignProperties(fillMode, false, true, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
||||||
setExpandAlignProperties(fillMode, false, true, Gtk::ALIGN_START, Gtk::ALIGN_FILL);
|
|
||||||
|
|
||||||
// Create the Combobox
|
// Create the Combobox
|
||||||
profiles = Gtk::manage (new ProfileStoreComboBox ());
|
profiles = Gtk::manage (new ProfileStoreComboBox ());
|
||||||
setExpandAlignProperties(profiles, true, true, Gtk::ALIGN_FILL, Gtk::ALIGN_FILL);
|
setExpandAlignProperties(profiles, true, true, Gtk::ALIGN_FILL, Gtk::ALIGN_FILL);
|
||||||
|
profiles->set_size_request(90);
|
||||||
Gtk::Grid* hgrid = Gtk::manage (new Gtk::Grid ());
|
|
||||||
hgrid->show ();
|
|
||||||
setExpandAlignProperties(hgrid, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_START);
|
|
||||||
|
|
||||||
pack_start (*hgrid, Gtk::PACK_SHRINK, 4);
|
|
||||||
|
|
||||||
|
|
||||||
load = Gtk::manage (new Gtk::Button ());
|
load = Gtk::manage (new Gtk::Button ());
|
||||||
load->add (*Gtk::manage (new RTImage ("gtk-open.png")));
|
load->add (*Gtk::manage (new RTImage ("gtk-open.png")));
|
||||||
load->get_style_context()->add_class("Left");
|
load->get_style_context()->add_class("Left");
|
||||||
load->set_margin_left(2);
|
load->set_margin_left(2);
|
||||||
setExpandAlignProperties(load, false, true, Gtk::ALIGN_END, Gtk::ALIGN_FILL);
|
setExpandAlignProperties(load, false, true, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
||||||
save = Gtk::manage (new Gtk::Button ());
|
save = Gtk::manage (new Gtk::Button ());
|
||||||
save->add (*Gtk::manage (new RTImage ("gtk-save-large.png")));
|
save->add (*Gtk::manage (new RTImage ("gtk-save-large.png")));
|
||||||
save->get_style_context()->add_class("MiddleH");
|
save->get_style_context()->add_class("MiddleH");
|
||||||
setExpandAlignProperties(save, false, true, Gtk::ALIGN_END, Gtk::ALIGN_FILL);
|
setExpandAlignProperties(save, false, true, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
||||||
copy = Gtk::manage (new Gtk::Button ());
|
copy = Gtk::manage (new Gtk::Button ());
|
||||||
copy->add (*Gtk::manage (new RTImage ("edit-copy.png")));
|
copy->add (*Gtk::manage (new RTImage ("edit-copy.png")));
|
||||||
copy->get_style_context()->add_class("MiddleH");
|
copy->get_style_context()->add_class("MiddleH");
|
||||||
setExpandAlignProperties(copy, false, true, Gtk::ALIGN_END, Gtk::ALIGN_FILL);
|
setExpandAlignProperties(copy, false, true, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
||||||
paste = Gtk::manage (new Gtk::Button ());
|
paste = Gtk::manage (new Gtk::Button ());
|
||||||
paste->add (*Gtk::manage (new RTImage ("edit-paste.png")));
|
paste->add (*Gtk::manage (new RTImage ("edit-paste.png")));
|
||||||
paste->get_style_context()->add_class("Right");
|
paste->get_style_context()->add_class("Right");
|
||||||
setExpandAlignProperties(paste, false, true, Gtk::ALIGN_END, Gtk::ALIGN_FILL);
|
setExpandAlignProperties(paste, false, true, Gtk::ALIGN_CENTER, Gtk::ALIGN_FILL);
|
||||||
|
|
||||||
hgrid->attach (*fillMode, 0, 0, 1, 1);
|
attach_next_to (*fillMode, Gtk::POS_RIGHT, 1, 1);
|
||||||
hgrid->attach (*profiles, 1, 0, 1, 1);
|
attach_next_to (*profiles, Gtk::POS_RIGHT, 1, 1);
|
||||||
hgrid->attach (*load, 2, 0, 1, 1);
|
attach_next_to (*load, Gtk::POS_RIGHT, 1, 1);
|
||||||
hgrid->attach (*save, 3, 0, 1, 1);
|
attach_next_to (*save, Gtk::POS_RIGHT, 1, 1);
|
||||||
hgrid->attach (*copy, 4, 0, 1, 1);
|
attach_next_to (*copy, Gtk::POS_RIGHT, 1, 1);
|
||||||
hgrid->attach (*paste, 5, 0, 1, 1);
|
attach_next_to (*paste, Gtk::POS_RIGHT, 1, 1);
|
||||||
|
|
||||||
|
setExpandAlignProperties(this, true, false, Gtk::ALIGN_FILL, Gtk::ALIGN_CENTER);
|
||||||
|
show ();
|
||||||
|
|
||||||
load->signal_button_release_event().connect_notify( sigc::mem_fun(*this, &ProfilePanel::load_clicked) );
|
load->signal_button_release_event().connect_notify( sigc::mem_fun(*this, &ProfilePanel::load_clicked) );
|
||||||
save->signal_button_release_event().connect_notify( sigc::mem_fun(*this, &ProfilePanel::save_clicked) );
|
save->signal_button_release_event().connect_notify( sigc::mem_fun(*this, &ProfilePanel::save_clicked) );
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
#include "guiutils.h"
|
#include "guiutils.h"
|
||||||
#include "rtimage.h"
|
#include "rtimage.h"
|
||||||
|
|
||||||
class ProfilePanel : public Gtk::VBox, public PParamsChangeListener, public ProfileStoreListener
|
class ProfilePanel : public Gtk::Grid, public PParamsChangeListener, public ProfileStoreListener
|
||||||
{
|
{
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -518,6 +518,7 @@ ProfileStoreComboBox::ProfileStoreComboBox ()
|
|||||||
updateProfileList();
|
updateProfileList();
|
||||||
Gtk::CellRendererText* cellRenderer = dynamic_cast<Gtk::CellRendererText*>(get_first_cell());
|
Gtk::CellRendererText* cellRenderer = dynamic_cast<Gtk::CellRendererText*>(get_first_cell());
|
||||||
cellRenderer->property_ellipsize() = Pango::ELLIPSIZE_MIDDLE;
|
cellRenderer->property_ellipsize() = Pango::ELLIPSIZE_MIDDLE;
|
||||||
|
cellRenderer->property_ellipsize_set() = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Glib::ustring ProfileStoreComboBox::getCurrentLabel()
|
Glib::ustring ProfileStoreComboBox::getCurrentLabel()
|
||||||
|
@@ -179,11 +179,11 @@ RTWindow::RTWindow ()
|
|||||||
if (options.mainNBVertical) {
|
if (options.mainNBVertical) {
|
||||||
mainNB->set_tab_pos (Gtk::POS_LEFT);
|
mainNB->set_tab_pos (Gtk::POS_LEFT);
|
||||||
fpl->set_angle (90);
|
fpl->set_angle (90);
|
||||||
fpanelLabelGrid->attach_next_to(*fpl, Gtk::POS_BOTTOM, 1, 1);
|
fpanelLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("gtk-directory.png")), Gtk::POS_TOP, 1, 1);
|
||||||
fpanelLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("gtk-directory.png")), Gtk::POS_BOTTOM, 1, 1);
|
fpanelLabelGrid->attach_next_to(*fpl, Gtk::POS_TOP, 1, 1);
|
||||||
} else {
|
} else {
|
||||||
fpanelLabelGrid->attach_next_to(*fpl, Gtk::POS_LEFT, 1, 1);
|
fpanelLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("gtk-directory.png")), Gtk::POS_RIGHT, 1, 1);
|
||||||
fpanelLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("gtk-directory.png")), Gtk::POS_LEFT, 1, 1);
|
fpanelLabelGrid->attach_next_to(*fpl, Gtk::POS_RIGHT, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
fpanelLabelGrid->set_tooltip_markup (M("MAIN_FRAME_FILEBROWSER_TOOLTIP"));
|
fpanelLabelGrid->set_tooltip_markup (M("MAIN_FRAME_FILEBROWSER_TOOLTIP"));
|
||||||
@@ -215,11 +215,11 @@ RTWindow::RTWindow ()
|
|||||||
|
|
||||||
if (options.mainNBVertical) {
|
if (options.mainNBVertical) {
|
||||||
el->set_angle (90);
|
el->set_angle (90);
|
||||||
editorLabelGrid->attach_next_to(*el, Gtk::POS_BOTTOM, 1, 1);
|
editorLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("rt-logo-small.png")), Gtk::POS_TOP, 1, 1);
|
||||||
editorLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("rt-logo-small.png")), Gtk::POS_BOTTOM, 1, 1);
|
editorLabelGrid->attach_next_to(*el, Gtk::POS_TOP, 1, 1);
|
||||||
} else {
|
} else {
|
||||||
editorLabelGrid->attach_next_to(*el, Gtk::POS_LEFT, 1, 1);
|
editorLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("rt-logo-small.png")), Gtk::POS_RIGHT, 1, 1);
|
||||||
editorLabelGrid->attach_next_to(*Gtk::manage (new RTImage ("rt-logo-small.png")), Gtk::POS_LEFT, 1, 1);
|
editorLabelGrid->attach_next_to(*el, Gtk::POS_RIGHT, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
editorLabelGrid->set_tooltip_markup (M("MAIN_FRAME_EDITOR_TOOLTIP"));
|
editorLabelGrid->set_tooltip_markup (M("MAIN_FRAME_EDITOR_TOOLTIP"));
|
||||||
@@ -437,23 +437,20 @@ void RTWindow::addEditorPanel (EditorPanel* ep, const std::string &name)
|
|||||||
ep->setParent (this);
|
ep->setParent (this);
|
||||||
|
|
||||||
// construct closeable tab for the image
|
// construct closeable tab for the image
|
||||||
Gtk::HBox* hb = Gtk::manage (new Gtk::HBox ());
|
Gtk::Grid* titleGrid = Gtk::manage (new Gtk::Grid ());
|
||||||
hb->pack_start (*Gtk::manage (new RTImage ("rtwindow.png")));
|
titleGrid->set_tooltip_markup (name);
|
||||||
hb->pack_start (*Gtk::manage (new Gtk::Label (Glib::path_get_basename (name))));
|
|
||||||
hb->set_tooltip_markup (name);
|
|
||||||
Gtk::Button* closeb = Gtk::manage (new Gtk::Button ());
|
Gtk::Button* closeb = Gtk::manage (new Gtk::Button ());
|
||||||
closeb->set_image (*Gtk::manage(new RTImage ("gtk-close.png")));
|
closeb->set_image (*Gtk::manage(new RTImage ("gtk-close.png")));
|
||||||
closeb->set_relief (Gtk::RELIEF_NONE);
|
closeb->set_relief (Gtk::RELIEF_NONE);
|
||||||
closeb->set_focus_on_click (false);
|
closeb->set_focus_on_click (false);
|
||||||
// make the button as small as possible
|
|
||||||
printf("TODO: make #tabClose as smalla s possible through css\n");
|
|
||||||
|
|
||||||
closeb->signal_clicked().connect( sigc::bind (sigc::mem_fun(*this, &RTWindow::remEditorPanel) , ep));
|
closeb->signal_clicked().connect( sigc::bind (sigc::mem_fun(*this, &RTWindow::remEditorPanel) , ep));
|
||||||
hb->pack_end (*closeb);
|
|
||||||
hb->set_spacing (2);
|
|
||||||
hb->show_all ();
|
|
||||||
|
|
||||||
mainNB->append_page (*ep, *hb);
|
titleGrid->attach_next_to(*Gtk::manage (new RTImage ("rtwindow.png")), Gtk::POS_RIGHT, 1, 1);
|
||||||
|
titleGrid->attach_next_to(*Gtk::manage (new Gtk::Label (Glib::path_get_basename (name))), Gtk::POS_RIGHT, 1, 1);
|
||||||
|
titleGrid->attach_next_to(*closeb, Gtk::POS_RIGHT, 1, 1);
|
||||||
|
titleGrid->show_all ();
|
||||||
|
|
||||||
|
mainNB->append_page (*ep, *titleGrid);
|
||||||
//ep->setAspect ();
|
//ep->setAspect ();
|
||||||
mainNB->set_current_page (mainNB->page_num (*ep));
|
mainNB->set_current_page (mainNB->page_num (*ep));
|
||||||
mainNB->set_tab_reorderable (*ep, true);
|
mainNB->set_tab_reorderable (*ep, true);
|
||||||
|
Reference in New Issue
Block a user