Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 225:d7ded015af32
* Make font size in panes configurable, with a smaller default
* Add [ and ] to select prev/next pane
author | Chris Cannam |
---|---|
date | Tue, 11 Dec 2007 14:58:29 +0000 |
parents | b5a2428f647b |
children | 718aaac046e7 |
comparison
equal
deleted
inserted
replaced
224:b5a2428f647b | 225:d7ded015af32 |
---|---|
601 connect(this, SIGNAL(canInsertInstantsAtBoundaries(bool)), action, SLOT(setEnabled(bool))); | 601 connect(this, SIGNAL(canInsertInstantsAtBoundaries(bool)), action, SLOT(setEnabled(bool))); |
602 m_keyReference->registerShortcut(action); | 602 m_keyReference->registerShortcut(action); |
603 menu->addAction(action); | 603 menu->addAction(action); |
604 | 604 |
605 QMenu *numberingMenu = menu->addMenu(tr("Number New Instants with")); | 605 QMenu *numberingMenu = menu->addMenu(tr("Number New Instants with")); |
606 numberingMenu->setTearOffEnabled(true); | |
606 QActionGroup *numberingGroup = new QActionGroup(this); | 607 QActionGroup *numberingGroup = new QActionGroup(this); |
607 | 608 |
608 Labeller::TypeNameMap types = m_labeller->getTypeNames(); | 609 Labeller::TypeNameMap types = m_labeller->getTypeNames(); |
609 for (Labeller::TypeNameMap::iterator i = types.begin(); i != types.end(); ++i) { | 610 for (Labeller::TypeNameMap::iterator i = types.begin(); i != types.end(); ++i) { |
610 | 611 |
1114 } | 1115 } |
1115 } | 1116 } |
1116 } | 1117 } |
1117 | 1118 |
1118 menu = m_paneMenu; | 1119 menu = m_paneMenu; |
1120 menu->addSeparator(); | |
1121 | |
1122 action = new QAction(tr("Switch to Previous Pane"), this); | |
1123 action->setShortcut(tr("[")); | |
1124 action->setStatusTip(tr("Make the next pane up in the pane stack current")); | |
1125 connect(action, SIGNAL(triggered()), this, SLOT(previousPane())); | |
1126 connect(this, SIGNAL(canSelectPreviousPane(bool)), action, SLOT(setEnabled(bool))); | |
1127 m_keyReference->registerShortcut(action); | |
1128 menu->addAction(action); | |
1129 | |
1130 action = new QAction(tr("Switch to Next Pane"), this); | |
1131 action->setShortcut(tr("]")); | |
1132 action->setStatusTip(tr("Make the next pane down in the pane stack current")); | |
1133 connect(action, SIGNAL(triggered()), this, SLOT(nextPane())); | |
1134 connect(this, SIGNAL(canSelectNextPane(bool)), action, SLOT(setEnabled(bool))); | |
1135 m_keyReference->registerShortcut(action); | |
1136 menu->addAction(action); | |
1119 | 1137 |
1120 menu->addSeparator(); | 1138 menu->addSeparator(); |
1121 | 1139 |
1122 action = new QAction(il.load("editdelete"), tr("&Delete Pane"), this); | 1140 action = new QAction(il.load("editdelete"), tr("&Delete Pane"), this); |
1123 action->setShortcut(tr("Ctrl+Shift+D")); | 1141 action->setShortcut(tr("Ctrl+Shift+D")); |
1146 m_sliceMenu->setTearOffEnabled(true); | 1164 m_sliceMenu->setTearOffEnabled(true); |
1147 m_rightButtonLayerMenu->addMenu(m_sliceMenu); | 1165 m_rightButtonLayerMenu->addMenu(m_sliceMenu); |
1148 | 1166 |
1149 setupExistingLayersMenus(); | 1167 setupExistingLayersMenus(); |
1150 | 1168 |
1169 /*!!! These don't work correctly -- fix or omit | |
1170 menu->addSeparator(); | |
1171 | |
1172 action = new QAction(tr("Switch to Previous Layer"), this); | |
1173 action->setShortcut(tr("{")); | |
1174 action->setStatusTip(tr("Make the previous layer in the pane current")); | |
1175 connect(action, SIGNAL(triggered()), this, SLOT(previousLayer())); | |
1176 connect(this, SIGNAL(canSelectPreviousLayer(bool)), action, SLOT(setEnabled(bool))); | |
1177 m_keyReference->registerShortcut(action); | |
1178 menu->addAction(action); | |
1179 | |
1180 action = new QAction(tr("Switch to Next Layer"), this); | |
1181 action->setShortcut(tr("}")); | |
1182 action->setStatusTip(tr("Make the next layer in the pane current")); | |
1183 connect(action, SIGNAL(triggered()), this, SLOT(nextLayer())); | |
1184 connect(this, SIGNAL(canSelectNextLayer(bool)), action, SLOT(setEnabled(bool))); | |
1185 m_keyReference->registerShortcut(action); | |
1186 menu->addAction(action); | |
1187 */ | |
1151 m_rightButtonLayerMenu->addSeparator(); | 1188 m_rightButtonLayerMenu->addSeparator(); |
1152 menu->addSeparator(); | 1189 menu->addSeparator(); |
1153 | 1190 |
1154 QAction *raction = new QAction(tr("&Rename Layer..."), this); | 1191 QAction *raction = new QAction(tr("&Rename Layer..."), this); |
1155 raction->setShortcut(tr("R")); | 1192 raction->setShortcut(tr("R")); |