Solving issue 997: Selection of crop selection tool should open crop settings
Now clicking on the toolbar's white balance, straighten or crop button jump to the corresponding tool.
This commit is contained in:
@@ -184,6 +184,7 @@ ToolPanelCoordinator::ToolPanelCoordinator () : ipc(NULL) {
|
||||
icm->setICMPanelListener (this);
|
||||
|
||||
toolBar = new ToolBar ();
|
||||
toolBar->setToolBarListener(this);
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::addPanel (Gtk::Box* where, FoldableToolPanel* panel, Glib::ustring label) {
|
||||
@@ -562,3 +563,23 @@ void ToolPanelCoordinator::updateTPVScrollbar (bool hide) {
|
||||
void ToolPanelCoordinator::updateTabsUsesIcons (bool useIcons) {
|
||||
updateTabsHeader (useIcons);
|
||||
}
|
||||
|
||||
void ToolPanelCoordinator::toolSelected (ToolMode tool) {
|
||||
switch (tool) {
|
||||
case TMCropSelect:
|
||||
crop->exp->set_expanded(true);
|
||||
toolPanelNotebook->set_current_page(toolPanelNotebook->page_num(*transformPanelSW));
|
||||
break;
|
||||
case TMSpotWB:
|
||||
whitebalance->exp->set_expanded(true);
|
||||
toolPanelNotebook->set_current_page(toolPanelNotebook->page_num(*colorPanelSW));
|
||||
break;
|
||||
case TMStraighten:
|
||||
lensgeom->exp->set_expanded(true);
|
||||
rotate->exp->set_expanded(true);
|
||||
toolPanelNotebook->set_current_page(toolPanelNotebook->page_num(*transformPanelSW));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user