Changeset 43592 in vbox
- Timestamp:
- Oct 10, 2012 1:31:57 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.cpp
r43590 r43592 521 521 void UIGChooserModel::startEditingGroupItemName() 522 522 { 523 slt StartEditingSelectedGroup();523 sltEditGroupName(); 524 524 } 525 525 … … 693 693 } 694 694 695 void UIGChooserModel::slt AddGroupBasedOnChosenItems()695 void UIGChooserModel::sltGroupSelectedMachines() 696 696 { 697 697 /* Create new group in the current root: */ … … 713 713 /* Add name to busy: */ 714 714 busyGroupNames << pItem->name(); 715 /* Copy or move group 715 /* Copy or move group-item: */ 716 716 new UIGChooserItemGroup(pNewGroupItem, pItem->toGroupItem()); 717 717 delete pItem; … … 740 740 } 741 741 742 void UIGChooserModel::slt StartEditingSelectedGroup()742 void UIGChooserModel::sltEditGroupName() 743 743 { 744 744 /* Check if action is enabled: */ … … 756 756 void UIGChooserModel::sltSortGroup() 757 757 { 758 if (isSingleGroupSelected()) 759 sortItems(currentItem()); 760 } 761 762 void UIGChooserModel::sltRemoveCurrentlySelectedGroup() 758 /* Only for single selected group: */ 759 if (!isSingleGroupSelected()) 760 return; 761 762 /* Sorting group: */ 763 sortItems(currentItem()); 764 } 765 766 void UIGChooserModel::sltUngroupSelectedGroup() 763 767 { 764 768 /* Make sure focus item is of group type! */ … … 873 877 void UIGChooserModel::sltSortParentGroup() 874 878 { 875 if (!currentItems().isEmpty()) 876 sortItems(currentItem()->parentItem()); 879 /* Only if some item selected: */ 880 if (!currentItem()) 881 return; 882 883 /* Sorting parent group: */ 884 sortItems(currentItem()->parentItem()); 877 885 } 878 886 … … 910 918 } 911 919 912 void UIGChooserModel::sltRemove CurrentlySelectedMachine()920 void UIGChooserModel::sltRemoveSelectedMachine() 913 921 { 914 922 /* Enumerate all the selected machine-items: */ … … 1131 1139 this, SLOT(sltCreateNewMachine())); 1132 1140 connect(gActionPool->action(UIActionIndexSelector_Simple_Group_Rename), SIGNAL(triggered()), 1133 this, SLOT(slt StartEditingSelectedGroup()));1141 this, SLOT(sltEditGroupName())); 1134 1142 connect(gActionPool->action(UIActionIndexSelector_Simple_Group_Remove), SIGNAL(triggered()), 1135 this, SLOT(slt RemoveCurrentlySelectedGroup()));1143 this, SLOT(sltUngroupSelectedGroup())); 1136 1144 connect(gActionPool->action(UIActionIndexSelector_Simple_Machine_Remove), SIGNAL(triggered()), 1137 this, SLOT(sltRemove CurrentlySelectedMachine()));1145 this, SLOT(sltRemoveSelectedMachine())); 1138 1146 connect(gActionPool->action(UIActionIndexSelector_Simple_Machine_AddGroup), SIGNAL(triggered()), 1139 this, SLOT(slt AddGroupBasedOnChosenItems()));1147 this, SLOT(sltGroupSelectedMachines())); 1140 1148 connect(gActionPool->action(UIActionIndexSelector_Simple_Common_Refresh), SIGNAL(triggered()), 1141 1149 this, SLOT(sltPerformRefreshAction())); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserModel.h
r43565 r43592 175 175 176 176 /* Handlers: Group-item stuff: */ 177 void slt AddGroupBasedOnChosenItems();178 void slt StartEditingSelectedGroup();177 void sltGroupSelectedMachines(); 178 void sltEditGroupName(); 179 179 void sltSortGroup(); 180 void slt RemoveCurrentlySelectedGroup();180 void sltUngroupSelectedGroup(); 181 181 182 182 /* Handlers: Machine-item stuff: */ … … 185 185 void sltSortParentGroup(); 186 186 void sltPerformRefreshAction(); 187 void sltRemove CurrentlySelectedMachine();187 void sltRemoveSelectedMachine(); 188 188 189 189 /* Handlers: Drag&drop stuff: */
Note:
See TracChangeset
for help on using the changeset viewer.