1 |
/* |
/* |
2 |
* Copyright (C) 2006-2016 Andreas Persson |
* Copyright (C) 2006-2017 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
57 |
#include "ReferencesView.h" |
#include "ReferencesView.h" |
58 |
#include "../../gfx/status_attached.xpm" |
#include "../../gfx/status_attached.xpm" |
59 |
#include "../../gfx/status_detached.xpm" |
#include "../../gfx/status_detached.xpm" |
60 |
|
#include "gfx/builtinpix.h" |
61 |
|
|
62 |
MainWindow::MainWindow() : |
MainWindow::MainWindow() : |
63 |
m_DimRegionChooser(*this), |
m_DimRegionChooser(*this), |
64 |
dimreg_label(_("Changes apply to:")), |
dimreg_label(_("Changes apply to:")), |
65 |
dimreg_all_regions(_("all regions")), |
dimreg_all_regions(_("all regions")), |
66 |
dimreg_all_dimregs(_("all dimension splits")), |
dimreg_all_dimregs(_("all dimension splits")), |
67 |
dimreg_stereo(_("both channels")) |
dimreg_stereo(_("both channels")), |
68 |
|
labelNoSample(_(" No Sample")), |
69 |
|
labelMissingSample(_(" Missing some Sample(s)")), |
70 |
|
labelLooped(_(" Looped")), |
71 |
|
labelSomeLoops(_(" Some Loop(s)")) |
72 |
{ |
{ |
73 |
|
loadBuiltInPix(); |
74 |
|
|
75 |
// set_border_width(5); |
// set_border_width(5); |
76 |
// set_default_size(400, 200); |
// set_default_size(400, 200); |
77 |
|
|
|
|
|
78 |
add(m_VBox); |
add(m_VBox); |
79 |
|
|
80 |
// Handle selection |
// Handle selection |
108 |
dimreg_hbox.add(dimreg_stereo); |
dimreg_hbox.add(dimreg_stereo); |
109 |
dimreg_vbox.add(dimreg_edit); |
dimreg_vbox.add(dimreg_edit); |
110 |
dimreg_vbox.pack_start(dimreg_hbox, Gtk::PACK_SHRINK); |
dimreg_vbox.pack_start(dimreg_hbox, Gtk::PACK_SHRINK); |
111 |
|
{ |
112 |
|
imageNoSample.set(redDot); |
113 |
|
imageNoSample.set_alignment(Gtk::ALIGN_END); |
114 |
|
labelNoSample.set_alignment(Gtk::ALIGN_START); |
115 |
|
legend_hbox.add(imageNoSample); |
116 |
|
legend_hbox.add(labelNoSample); |
117 |
|
|
118 |
|
imageMissingSample.set(yellowDot); |
119 |
|
imageMissingSample.set_alignment(Gtk::ALIGN_END); |
120 |
|
labelMissingSample.set_alignment(Gtk::ALIGN_START); |
121 |
|
legend_hbox.add(imageMissingSample); |
122 |
|
legend_hbox.add(labelMissingSample); |
123 |
|
|
124 |
|
imageLooped.set(blackLoop); |
125 |
|
imageLooped.set_alignment(Gtk::ALIGN_END); |
126 |
|
labelLooped.set_alignment(Gtk::ALIGN_START); |
127 |
|
legend_hbox.add(imageLooped); |
128 |
|
legend_hbox.add(labelLooped); |
129 |
|
|
130 |
|
imageSomeLoops.set(grayLoop); |
131 |
|
imageSomeLoops.set_alignment(Gtk::ALIGN_END); |
132 |
|
labelSomeLoops.set_alignment(Gtk::ALIGN_START); |
133 |
|
legend_hbox.add(imageSomeLoops); |
134 |
|
legend_hbox.add(labelSomeLoops); |
135 |
|
|
136 |
|
legend_hbox.show_all_children(); |
137 |
|
} |
138 |
|
dimreg_vbox.pack_start(legend_hbox, Gtk::PACK_SHRINK); |
139 |
m_HPaned.add2(dimreg_vbox); |
m_HPaned.add2(dimreg_vbox); |
140 |
|
|
141 |
dimreg_label.set_tooltip_text(_("To automatically apply your changes above globally to the entire instrument, check all 3 check boxes on the right.")); |
dimreg_label.set_tooltip_text(_("To automatically apply your changes above globally to the entire instrument, check all 3 check boxes on the right.")); |
809 |
add_region_to_dimregs(region, stereo, all_dimregs); |
add_region_to_dimregs(region, stereo, all_dimregs); |
810 |
} |
} |
811 |
} |
} |
812 |
|
|
813 |
|
m_DimRegionChooser.setModifyAllRegions(all_regions); |
814 |
|
m_DimRegionChooser.setModifyAllDimensionRegions(all_dimregs); |
815 |
|
m_DimRegionChooser.setModifyBothChannels(stereo); |
816 |
} |
} |
817 |
|
|
818 |
void MainWindow::dimreg_all_dimregs_toggled() |
void MainWindow::dimreg_all_dimregs_toggled() |
864 |
progress_dispatcher(); |
progress_dispatcher(); |
865 |
} |
} |
866 |
|
|
867 |
|
#if defined(WIN32) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) |
868 |
|
// make sure stack is 16-byte aligned for SSE instructions |
869 |
|
__attribute__((force_align_arg_pointer)) |
870 |
|
#endif |
871 |
void Loader::thread_function() |
void Loader::thread_function() |
872 |
{ |
{ |
873 |
printf("thread_function self=%p\n", |
printf("thread_function self=%p\n", |
947 |
progress_dispatcher.emit(); |
progress_dispatcher.emit(); |
948 |
} |
} |
949 |
|
|
950 |
|
#if defined(WIN32) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)) |
951 |
|
// make sure stack is 16-byte aligned for SSE instructions |
952 |
|
__attribute__((force_align_arg_pointer)) |
953 |
|
#endif |
954 |
void Saver::thread_function() |
void Saver::thread_function() |
955 |
{ |
{ |
956 |
printf("thread_function self=%p\n", |
printf("thread_function self=%p\n", |
1564 |
dialog.set_name("Gigedit"); |
dialog.set_name("Gigedit"); |
1565 |
#endif |
#endif |
1566 |
dialog.set_version(VERSION); |
dialog.set_version(VERSION); |
1567 |
dialog.set_copyright("Copyright (C) 2006-2016 Andreas Persson"); |
dialog.set_copyright("Copyright (C) 2006-2017 Andreas Persson"); |
1568 |
const std::string sComment = |
const std::string sComment = |
1569 |
_("Built " __DATE__ "\nUsing ") + |
_("Built " __DATE__ "\nUsing ") + |
1570 |
::gig::libraryName() + " " + ::gig::libraryVersion() + "\n\n" + |
::gig::libraryName() + " " + ::gig::libraryVersion() + "\n\n" + |