--- gigedit/trunk/src/gigedit/mainwindow.cpp 2016/04/15 13:45:12 2877
+++ gigedit/trunk/src/gigedit/mainwindow.cpp 2017/02/12 16:35:03 3109
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2006-2016 Andreas Persson
+ * Copyright (C) 2006-2017 Andreas Persson
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
@@ -57,19 +57,25 @@
#include "ReferencesView.h"
#include "../../gfx/status_attached.xpm"
#include "../../gfx/status_detached.xpm"
-
+#include "gfx/builtinpix.h"
MainWindow::MainWindow() :
m_DimRegionChooser(*this),
dimreg_label(_("Changes apply to:")),
dimreg_all_regions(_("all regions")),
dimreg_all_dimregs(_("all dimension splits")),
- dimreg_stereo(_("both channels"))
+ dimreg_stereo(_("both channels")),
+ labelLegend(_("Legend:")),
+ labelNoSample(_(" No Sample")),
+ labelMissingSample(_(" Missing some Sample(s)")),
+ labelLooped(_(" Looped")),
+ labelSomeLoops(_(" Some Loop(s)"))
{
+ loadBuiltInPix();
+
// set_border_width(5);
// set_default_size(400, 200);
-
add(m_VBox);
// Handle selection
@@ -103,6 +109,36 @@
dimreg_hbox.add(dimreg_stereo);
dimreg_vbox.add(dimreg_edit);
dimreg_vbox.pack_start(dimreg_hbox, Gtk::PACK_SHRINK);
+ {
+ legend_hbox.add(labelLegend);
+
+ imageNoSample.set(redDot);
+ imageNoSample.set_alignment(Gtk::ALIGN_END);
+ labelNoSample.set_alignment(Gtk::ALIGN_START);
+ legend_hbox.add(imageNoSample);
+ legend_hbox.add(labelNoSample);
+
+ imageMissingSample.set(yellowDot);
+ imageMissingSample.set_alignment(Gtk::ALIGN_END);
+ labelMissingSample.set_alignment(Gtk::ALIGN_START);
+ legend_hbox.add(imageMissingSample);
+ legend_hbox.add(labelMissingSample);
+
+ imageLooped.set(blackLoop);
+ imageLooped.set_alignment(Gtk::ALIGN_END);
+ labelLooped.set_alignment(Gtk::ALIGN_START);
+ legend_hbox.add(imageLooped);
+ legend_hbox.add(labelLooped);
+
+ imageSomeLoops.set(grayLoop);
+ imageSomeLoops.set_alignment(Gtk::ALIGN_END);
+ labelSomeLoops.set_alignment(Gtk::ALIGN_START);
+ legend_hbox.add(imageSomeLoops);
+ legend_hbox.add(labelSomeLoops);
+
+ legend_hbox.show_all_children();
+ }
+ dimreg_vbox.pack_start(legend_hbox, Gtk::PACK_SHRINK);
m_HPaned.add2(dimreg_vbox);
dimreg_label.set_tooltip_text(_("To automatically apply your changes above globally to the entire instrument, check all 3 check boxes on the right."));
@@ -192,6 +228,21 @@
actionGroup->add(toggle_action,
sigc::mem_fun(
*this, &MainWindow::on_action_view_status_bar));
+
+ toggle_action =
+ Gtk::ToggleAction::create("AutoRestoreWinDim", _("_Auto Restore Window Dimension"));
+ toggle_action->set_active(Settings::singleton()->autoRestoreWindowDimension);
+ actionGroup->add(toggle_action,
+ sigc::mem_fun(
+ *this, &MainWindow::on_auto_restore_win_dim));
+
+ toggle_action =
+ Gtk::ToggleAction::create("SaveWithTemporaryFile", _("Save with _temporary file"));
+ toggle_action->set_active(Settings::singleton()->saveWithTemporaryFile);
+ actionGroup->add(toggle_action,
+ sigc::mem_fun(
+ *this, &MainWindow::on_save_with_temporary_file));
+
actionGroup->add(
Gtk::Action::create("RefreshAll", _("_Refresh All")),
sigc::mem_fun(*this, &MainWindow::on_action_refresh_all)
@@ -364,6 +415,7 @@
" "
"
"
@@ -375,6 +427,7 @@
" "
" "
" "
+ " "
" "
"