Changeset 105312 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 12, 2024 3:53:10 PM (7 months ago)
- svn:sync-xref-src-repo-rev:
- 163965
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r105265 r105312 814 814 , m_pAnimation(0) 815 815 , m_dRotationAngle(0) 816 , m_enmState(RecordingState_Unavailable) 816 817 { 817 818 /* Assign state-icons: */ … … 874 875 setToolTip(s_strTable.arg(strFullData)); 875 876 /* Set initial indicator state: */ 876 RecordingStateenmState = RecordingState_Unavailable;877 m_enmState = RecordingState_Unavailable; 877 878 if (m_pMachine->machineState() != KMachineState_Null) 878 879 { 879 880 if (!fRecordingEnabled) 880 enmState = RecordingState_Disabled;881 m_enmState = RecordingState_Disabled; 881 882 else if (!fMachinePaused) 882 enmState = RecordingState_Enabled;883 m_enmState = RecordingState_Enabled; 883 884 else 884 enmState = RecordingState_Paused;885 m_enmState = RecordingState_Paused; 885 886 } 886 setState( enmState);887 setState(m_enmState); 887 888 888 889 /* Retranslate finally: */ 889 890 sltRetranslateUI(); 891 } 892 893 /** Handles translation event. */ 894 virtual void sltRetranslateUI() RT_OVERRIDE 895 { 896 /* Call to base-class: */ 897 UISessionStateStatusBarIndicator::sltRetranslateUI(); 898 899 /* Append description with more info: */ 900 switch (m_enmState) 901 { 902 case RecordingState_Disabled: 903 m_strDescription = QString("%1, %2").arg(m_strDescription, tr("Recording stopped")); break; 904 case RecordingState_Enabled: 905 m_strDescription = QString("%1, %2").arg(m_strDescription, tr("Recording started")); break; 906 case RecordingState_Paused: 907 m_strDescription = QString("%1, %2").arg(m_strDescription, tr("Recording paused")); break; 908 default: 909 break; 910 } 890 911 } 891 912 … … 929 950 UIAnimationLoop *m_pAnimation; 930 951 /** Holds current rotation angle. */ 931 double m_dRotationAngle; 952 double m_dRotationAngle; 953 954 /** Holds the recording state. */ 955 RecordingState m_enmState; 932 956 }; 933 957
Note:
See TracChangeset
for help on using the changeset viewer.