- Timestamp:
- Aug 3, 2007 1:40:57 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r3971 r4022 754 754 usb_light->setStateIcon (CEnums::DeviceWriting, QPixmap::fromMimeSource ("usb_write_16px.png")); 755 755 usb_light->setStateIcon (CEnums::InvalidActivity, QPixmap::fromMimeSource ("usb_disabled_16px.png")); 756 /// @todo add proper read/write states for shared folders when it is implemented 757 sf_state = new QIStateIndicator (0, indicatorBox, "sf_state", WNoAutoErase); 758 sf_state->setStateIcon (0, QPixmap::fromMimeSource ("shared_folder_16px.png")); 759 sf_state->setStateIcon (1, QPixmap::fromMimeSource ("shared_folder_disabled_16px.png")); 756 /** @todo missing pictures for read & write shared folder states */ 757 sf_light = new QIStateIndicator (CEnums::DeviceIdle, indicatorBox, "sf_light", WNoAutoErase); 758 sf_light->setStateIcon (CEnums::DeviceIdle, QPixmap::fromMimeSource ("shared_folder_16px.png")); 759 sf_light->setStateIcon (CEnums::DeviceReading, QPixmap::fromMimeSource ("shared_folder_read_16px.png")); 760 sf_light->setStateIcon (CEnums::DeviceWriting, QPixmap::fromMimeSource ("shared_folder_write_16px.png")); 761 sf_light->setStateIcon (CEnums::InvalidActivity, QPixmap::fromMimeSource ("shared_folder_disabled_16px.png")); 760 762 761 763 (new QFrame (indicatorBox))->setFrameStyle (QFrame::VLine | QFrame::Sunken); … … 876 878 connect (usb_light, SIGNAL (contextMenuRequested (QIStateIndicator *, QContextMenuEvent *)), 877 879 this, SLOT (showIndicatorContextMenu (QIStateIndicator *, QContextMenuEvent *))); 878 connect (sf_ state, SIGNAL (contextMenuRequested (QIStateIndicator *, QContextMenuEvent *)),880 connect (sf_light, SIGNAL (contextMenuRequested (QIStateIndicator *, QContextMenuEvent *)), 879 881 this, SLOT (showIndicatorContextMenu (QIStateIndicator *, QContextMenuEvent *))); 880 882 connect (net_light, SIGNAL (contextMenuRequested (QIStateIndicator *, QContextMenuEvent *)), … … 1099 1101 devicesSFDialogAction->setVisible (false); 1100 1102 devicesMenu->setItemVisible (devicesSFMenuSeparatorId, false); 1101 sf_ state->setHidden (true);1103 sf_light->setHidden (true); 1102 1104 } 1103 1105 … … 1800 1802 "capture state. It can also be used in combination with other keys " 1801 1803 "to quickly perform actions from the main menu." )); 1802 QToolTip::add (sf_ state,1804 QToolTip::add (sf_light, 1803 1805 /// @todo add later, when activity is actually reported 1804 1806 // tr ("Indicates the activity of shared folders.")); … … 2906 2908 } 2907 2909 else 2908 if (ind == sf_ state)2910 if (ind == sf_light) 2909 2911 { 2910 2912 devicesSharedFolders->exec (e->globalPos()); … … 2949 2951 if (usb_light->state() != st) 2950 2952 usb_light->setState (st); 2953 } 2954 if (sf_light->state() != CEnums::InvalidActivity) { 2955 st = cconsole.GetDeviceActivity (CEnums::SharedFolderDevice); 2956 if (sf_light->state() != st) 2957 sf_light->setState (st); 2951 2958 } 2952 2959 }
Note:
See TracChangeset
for help on using the changeset viewer.