914 |
); |
); |
915 |
menuMacro->append(*item); |
menuMacro->append(*item); |
916 |
item->set_accel_path("<Macros>/macro_" + ToString(iMacro)); |
item->set_accel_path("<Macros>/macro_" + ToString(iMacro)); |
917 |
|
Glib::ustring comment = macro.comment(); |
918 |
|
if (!comment.empty()) |
919 |
|
item->set_tooltip_text(comment); |
920 |
} |
} |
921 |
// if there are no macros configured at all, then show a dummy entry instead |
// if there are no macros configured at all, then show a dummy entry instead |
922 |
if (m_macros.empty()) { |
if (m_macros.empty()) { |
960 |
|
|
961 |
void MainWindow::setupMacros() { |
void MainWindow::setupMacros() { |
962 |
MacrosSetup* setup = new MacrosSetup(); |
MacrosSetup* setup = new MacrosSetup(); |
963 |
setup->setMacros(m_macros); |
gig::DimensionRegion* pDimRgn = m_DimRegionChooser.get_main_dimregion(); |
964 |
|
setup->setMacros(m_macros, &m_serializationArchive, pDimRgn); |
965 |
setup->signal_macros_changed().connect( |
setup->signal_macros_changed().connect( |
966 |
sigc::mem_fun(*this, &MainWindow::onMacrosSetupChanged) |
sigc::mem_fun(*this, &MainWindow::onMacrosSetupChanged) |
967 |
); |
); |
3873 |
|
|
3874 |
void MainWindow::adjust_clipboard_content() { |
void MainWindow::adjust_clipboard_content() { |
3875 |
MacroEditor* editor = new MacroEditor(); |
MacroEditor* editor = new MacroEditor(); |
3876 |
editor->setMacro(&m_serializationArchive); |
editor->setMacro(&m_serializationArchive, true); |
3877 |
editor->show(); |
editor->show(); |
3878 |
} |
} |
3879 |
|
|
3923 |
itDimReg != dimreg_edit.dimregs.end(); ++itDimReg) |
itDimReg != dimreg_edit.dimregs.end(); ++itDimReg) |
3924 |
{ |
{ |
3925 |
gig::DimensionRegion* pDimRgn = *itDimReg; |
gig::DimensionRegion* pDimRgn = *itDimReg; |
3926 |
dimreg_to_be_changed_signal.emit(pDimRgn); |
DimRegionChangeGuard(this, pDimRgn); |
3927 |
m_serializationArchive.deserialize(pDimRgn); |
macro.deserialize(pDimRgn); |
|
dimreg_changed_signal.emit(pDimRgn); |
|
3928 |
} |
} |
3929 |
//region_changed() |
//region_changed() |
3930 |
file_changed(); |
file_changed(); |