/[svn]/gigedit/trunk/src/gigedit/MacrosSetup.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/MacrosSetup.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3176 by schoenebeck, Thu May 11 11:36:33 2017 UTC revision 3184 by schoenebeck, Wed May 17 12:28:39 2017 UTC
# Line 37  MacrosSetup::MacrosSetup() : Line 37  MacrosSetup::MacrosSetup() :
37    
38      set_default_size(680, 500);      set_default_size(680, 500);
39    
40        m_labelIntro.set_padding(10, 10);
41    #if GTKMM_MAJOR_VERSION >= 3
42        m_labelIntro.set_line_wrap();
43    #endif
44        m_labelIntro.set_text(
45            _("A macro is a list of parameters and corresponding values which "
46              "should be applied to the instrument editor when the macro is "
47              "triggered by the user. A macro is triggered either by selecting "
48              "the macro from the \"Macro\" menu, or by hitting the macro's "
49              "respective keyboard accelerator (F1 to F12), or by applying a "
50              "previously copied macro from the clipboard.")
51        );
52        m_vbox.pack_start(m_labelIntro, Gtk::PACK_SHRINK);
53    
54      m_addFromClipboardButton.set_image(      m_addFromClipboardButton.set_image(
55          *new Gtk::Image(Gtk::Stock::ADD, Gtk::ICON_SIZE_BUTTON)          *new Gtk::Image(Gtk::Stock::ADD, Gtk::ICON_SIZE_BUTTON)
56      );      );
# Line 54  MacrosSetup::MacrosSetup() : Line 68  MacrosSetup::MacrosSetup() :
68      );      );
69      m_addFromClipboardButton.set_tooltip_text(_("Create a new macro from the content currently available on the clipboard."));      m_addFromClipboardButton.set_tooltip_text(_("Create a new macro from the content currently available on the clipboard."));
70      m_addFromSelectionButton.set_tooltip_text(_("Create a new macro from the currently selected dimension region's parameters currently shown on the main window."));      m_addFromSelectionButton.set_tooltip_text(_("Create a new macro from the currently selected dimension region's parameters currently shown on the main window."));
71        m_buttonDuplicate.set_tooltip_text(_("Duplicate the selected macro(s). The new macro(s) will be appended to the end of the list."));
72        m_buttonUp.set_tooltip_text(
73            _("Move the selected macro up in the list, which changes its order of "
74              "appearance in the main window's \"Macro\" menu and changes to which "
75              "keyboard accelerator key (F1 to F12) the macro is assigned to."));
76        m_buttonDown.set_tooltip_text(
77            _("Move the selected macro down in the list, which changes its order of "
78              "appearance in the main window's \"Macro\" menu and changes to which "
79              "keyboard accelerator key (F1 to F12) the macro is assigned to."));
80        m_buttonEdit.set_tooltip_text(_("Open the Macro Editor for the selected macro."));
81        m_deleteButton.set_tooltip_text(_("Delete the selected macros."));
82        m_inverseDeleteButton.set_tooltip_text(_("Delete all macros except the selected ones."));
83      m_addHBox.pack_start(m_addFromClipboardButton, Gtk::PACK_EXPAND_WIDGET/*, 15*/);      m_addHBox.pack_start(m_addFromClipboardButton, Gtk::PACK_EXPAND_WIDGET/*, 15*/);
84      m_addHBox.pack_start(m_addFromSelectionButton, Gtk::PACK_EXPAND_WIDGET/*, 15*/);      m_addHBox.pack_start(m_addFromSelectionButton, Gtk::PACK_EXPAND_WIDGET/*, 15*/);
85      m_vbox.pack_start(m_addHBox, Gtk::PACK_SHRINK);      m_vbox.pack_start(m_addHBox, Gtk::PACK_SHRINK);
# Line 124  MacrosSetup::MacrosSetup() : Line 150  MacrosSetup::MacrosSetup() :
150      //m_textViewComment.set_left_margin(3);      //m_textViewComment.set_left_margin(3);
151      //m_textViewComment.set_right_margin(3);      //m_textViewComment.set_right_margin(3);
152      m_textViewComment.set_indent(2);      m_textViewComment.set_indent(2);
153        m_textViewComment.set_tooltip_text(
154            _("Write arbitrary comments for the selected macro which help you to "
155              "remember the purpose of your macro. The comment will be shown as "
156              "tooltip in the main window's \"Macro\" menu for example.")
157        );
158      m_scrolledWindowComment.add(m_textViewComment);      m_scrolledWindowComment.add(m_textViewComment);
159      m_scrolledWindowComment.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);      m_scrolledWindowComment.set_policy(Gtk::POLICY_AUTOMATIC, Gtk::POLICY_AUTOMATIC);
160      m_labelComment.set_markup(      m_labelComment.set_markup(
# Line 423  void MacrosSetup::reloadTreeView() { Line 454  void MacrosSetup::reloadTreeView() {
454          Gtk::TreeModel::Row row = *iter;          Gtk::TreeModel::Row row = *iter;
455          row[m_treeModelMacros.m_col_key] = indexToAccKey(iMacro);          row[m_treeModelMacros.m_col_key] = indexToAccKey(iMacro);
456          row[m_treeModelMacros.m_col_name] = macro.name().empty() ? _("Unnamed Macro") : gig_to_utf8(macro.name());          row[m_treeModelMacros.m_col_name] = macro.name().empty() ? _("Unnamed Macro") : gig_to_utf8(macro.name());
457          row[m_treeModelMacros.m_col_comment] = macro.comment().empty() ? _("No comment assigned yet.") : gig_to_utf8(macro.comment());          row[m_treeModelMacros.m_col_comment] = macro.comment().empty() ? _("No comment assigned to this macro yet.") : gig_to_utf8(macro.comment());
458          row[m_treeModelMacros.m_col_created] = humanShortStr(macro.dateTimeCreated());          row[m_treeModelMacros.m_col_created] = humanShortStr(macro.dateTimeCreated());
459          row[m_treeModelMacros.m_col_modified] = humanShortStr(macro.dateTimeModified());          row[m_treeModelMacros.m_col_modified] = humanShortStr(macro.dateTimeModified());
460          row[m_treeModelMacros.m_col_index] = iMacro;          row[m_treeModelMacros.m_col_index] = iMacro;

Legend:
Removed from v.3176  
changed lines
  Added in v.3184

  ViewVC Help
Powered by ViewVC