VirtualBox

Changeset 54348 in vbox


Ignore:
Timestamp:
Feb 21, 2015 12:22:02 AM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Some code rework/cleanup for r98423.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r54337 r54348  
    644644        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_Keyboard:          strResult = "Keyboard"; break;
    645645        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_KeyboardSettings:  strResult = "KeyboardSettings"; break;
    646         case UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse:             strResult = "Mouse"; break;
    647         case UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration:  strResult = "MouseIntegration"; break;
    648646        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD:           strResult = "TypeCAD"; break;
    649647#ifdef Q_WS_X11
     
    652650        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak:     strResult = "TypeCtrlBreak"; break;
    653651        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert:        strResult = "TypeInsert"; break;
     652        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse:             strResult = "Mouse"; break;
     653        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration:  strResult = "MouseIntegration"; break;
    654654        case UIExtraDataMetaDefs::RuntimeMenuInputActionType_All:               strResult = "All"; break;
    655655        default:
     
    670670    keys << "Keyboard";          values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_Keyboard;
    671671    keys << "KeyboardSettings";  values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_KeyboardSettings;
    672     keys << "Mouse";             values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse;
    673     keys << "MouseIntegration";  values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration;
    674672    keys << "TypeCAD";           values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD;
    675673#ifdef Q_WS_X11
     
    678676    keys << "TypeCtrlBreak";     values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak;
    679677    keys << "TypeInsert";        values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert;
     678    keys << "Mouse";             values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_Mouse;
     679    keys << "MouseIntegration";  values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_MouseIntegration;
    680680    keys << "All";               values << UIExtraDataMetaDefs::RuntimeMenuInputActionType_All;
    681681    /* Invalid type for unknown words: */
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r54337 r54348  
    410410        RuntimeMenuInputActionType_Keyboard          = RT_BIT(0),
    411411        RuntimeMenuInputActionType_KeyboardSettings  = RT_BIT(1),
    412         RuntimeMenuInputActionType_Mouse             = RT_BIT(2),
    413         RuntimeMenuInputActionType_MouseIntegration  = RT_BIT(3),
    414         RuntimeMenuInputActionType_TypeCAD           = RT_BIT(4),
     412        RuntimeMenuInputActionType_TypeCAD           = RT_BIT(2),
    415413#ifdef Q_WS_X11
    416         RuntimeMenuInputActionType_TypeCABS          = RT_BIT(5),
     414        RuntimeMenuInputActionType_TypeCABS          = RT_BIT(3),
    417415#endif /* Q_WS_X11 */
    418         RuntimeMenuInputActionType_TypeCtrlBreak     = RT_BIT(6),
    419         RuntimeMenuInputActionType_TypeInsert        = RT_BIT(7),
     416        RuntimeMenuInputActionType_TypeCtrlBreak     = RT_BIT(4),
     417        RuntimeMenuInputActionType_TypeInsert        = RT_BIT(5),
     418        RuntimeMenuInputActionType_Mouse             = RT_BIT(6),
     419        RuntimeMenuInputActionType_MouseIntegration  = RT_BIT(7),
    420420        RuntimeMenuInputActionType_All               = 0xFFFF
    421421    };
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp

    r54337 r54348  
    10341034};
    10351035
     1036class UIActionSimplePerformTypeCAD : public UIActionSimple
     1037{
     1038    Q_OBJECT;
     1039
     1040public:
     1041
     1042    UIActionSimplePerformTypeCAD(UIActionPool *pParent)
     1043        : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
     1044
     1045protected:
     1046
     1047    /** Returns action extra-data ID. */
     1048    virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD; }
     1049    /** Returns action extra-data key. */
     1050    virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD); }
     1051    /** Returns whether action is allowed. */
     1052    virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD); }
     1053
     1054    QString shortcutExtraDataID() const
     1055    {
     1056        return QString("TypeCAD");
     1057    }
     1058
     1059    QKeySequence defaultShortcut(UIActionPoolType) const
     1060    {
     1061        return QKeySequence("Del");
     1062    }
     1063
     1064    void retranslateUi()
     1065    {
     1066        setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Ctrl-Alt-Del"));
     1067        setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ctrl-Alt-Del"));
     1068    }
     1069};
     1070
     1071#ifdef Q_WS_X11
     1072class UIActionSimplePerformTypeCABS : public UIActionSimple
     1073{
     1074    Q_OBJECT;
     1075
     1076public:
     1077
     1078    UIActionSimplePerformTypeCABS(UIActionPool *pParent)
     1079        : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
     1080
     1081protected:
     1082
     1083    /** Returns action extra-data ID. */
     1084    virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS; }
     1085    /** Returns action extra-data key. */
     1086    virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS); }
     1087    /** Returns whether action is allowed. */
     1088    virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS); }
     1089
     1090    QString shortcutExtraDataID() const
     1091    {
     1092        return QString("TypeCABS");
     1093    }
     1094
     1095    QKeySequence defaultShortcut(UIActionPoolType) const
     1096    {
     1097        return QKeySequence("Backspace");
     1098    }
     1099
     1100    void retranslateUi()
     1101    {
     1102        setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Ctrl-Alt-Backspace"));
     1103        setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ctrl-Alt-Backspace"));
     1104    }
     1105};
     1106#endif /* Q_WS_X11 */
     1107
     1108class UIActionSimplePerformTypeCtrlBreak : public UIActionSimple
     1109{
     1110    Q_OBJECT;
     1111
     1112public:
     1113
     1114    UIActionSimplePerformTypeCtrlBreak(UIActionPool *pParent)
     1115        : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
     1116
     1117protected:
     1118
     1119    /** Returns action extra-data ID. */
     1120    virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak; }
     1121    /** Returns action extra-data key. */
     1122    virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak); }
     1123    /** Returns whether action is allowed. */
     1124    virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak); }
     1125
     1126    QString shortcutExtraDataID() const
     1127    {
     1128        return QString("TypeCtrlBreak");
     1129    }
     1130
     1131    void retranslateUi()
     1132    {
     1133        setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Ctrl-Break"));
     1134        setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ctrl-Break"));
     1135    }
     1136};
     1137
     1138class UIActionSimplePerformTypeInsert : public UIActionSimple
     1139{
     1140    Q_OBJECT;
     1141
     1142public:
     1143
     1144    UIActionSimplePerformTypeInsert(UIActionPool *pParent)
     1145        : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
     1146
     1147protected:
     1148
     1149    /** Returns action extra-data ID. */
     1150    virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert; }
     1151    /** Returns action extra-data key. */
     1152    virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert); }
     1153    /** Returns whether action is allowed. */
     1154    virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert); }
     1155
     1156    QString shortcutExtraDataID() const
     1157    {
     1158        return QString("TypeInsert");
     1159    }
     1160
     1161    void retranslateUi()
     1162    {
     1163        setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Insert"));
     1164        setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Insert"));
     1165    }
     1166};
     1167
    10361168class UIActionMenuMouse : public UIActionMenu
    10371169{
     
    10921224        setName(QApplication::translate("UIActionPool", "Disable &Mouse Integration"));
    10931225        setStatusTip(QApplication::translate("UIActionPool", "Temporarily disable host mouse pointer integration"));
    1094     }
    1095 };
    1096 
    1097 class UIActionSimplePerformTypeCAD : public UIActionSimple
    1098 {
    1099     Q_OBJECT;
    1100 
    1101 public:
    1102 
    1103     UIActionSimplePerformTypeCAD(UIActionPool *pParent)
    1104         : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
    1105 
    1106 protected:
    1107 
    1108     /** Returns action extra-data ID. */
    1109     virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD; }
    1110     /** Returns action extra-data key. */
    1111     virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD); }
    1112     /** Returns whether action is allowed. */
    1113     virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCAD); }
    1114 
    1115     QString shortcutExtraDataID() const
    1116     {
    1117         return QString("TypeCAD");
    1118     }
    1119 
    1120     QKeySequence defaultShortcut(UIActionPoolType) const
    1121     {
    1122         return QKeySequence("Del");
    1123     }
    1124 
    1125     void retranslateUi()
    1126     {
    1127         setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Ctrl-Alt-Del"));
    1128         setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ctrl-Alt-Del"));
    1129     }
    1130 };
    1131 
    1132 #ifdef Q_WS_X11
    1133 class UIActionSimplePerformTypeCABS : public UIActionSimple
    1134 {
    1135     Q_OBJECT;
    1136 
    1137 public:
    1138 
    1139     UIActionSimplePerformTypeCABS(UIActionPool *pParent)
    1140         : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
    1141 
    1142 protected:
    1143 
    1144     /** Returns action extra-data ID. */
    1145     virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS; }
    1146     /** Returns action extra-data key. */
    1147     virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS); }
    1148     /** Returns whether action is allowed. */
    1149     virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCABS); }
    1150 
    1151     QString shortcutExtraDataID() const
    1152     {
    1153         return QString("TypeCABS");
    1154     }
    1155 
    1156     QKeySequence defaultShortcut(UIActionPoolType) const
    1157     {
    1158         return QKeySequence("Backspace");
    1159     }
    1160 
    1161     void retranslateUi()
    1162     {
    1163         setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Ctrl-Alt-Backspace"));
    1164         setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ctrl-Alt-Backspace"));
    1165     }
    1166 };
    1167 #endif /* Q_WS_X11 */
    1168 
    1169 class UIActionSimplePerformTypeCtrlBreak : public UIActionSimple
    1170 {
    1171     Q_OBJECT;
    1172 
    1173 public:
    1174 
    1175     UIActionSimplePerformTypeCtrlBreak(UIActionPool *pParent)
    1176         : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
    1177 
    1178 protected:
    1179 
    1180     /** Returns action extra-data ID. */
    1181     virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak; }
    1182     /** Returns action extra-data key. */
    1183     virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak); }
    1184     /** Returns whether action is allowed. */
    1185     virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeCtrlBreak); }
    1186 
    1187     QString shortcutExtraDataID() const
    1188     {
    1189         return QString("TypeCtrlBreak");
    1190     }
    1191 
    1192     void retranslateUi()
    1193     {
    1194         setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Ctrl-Break"));
    1195         setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Ctrl-Break"));
    1196     }
    1197 };
    1198 
    1199 class UIActionSimplePerformTypeInsert : public UIActionSimple
    1200 {
    1201     Q_OBJECT;
    1202 
    1203 public:
    1204 
    1205     UIActionSimplePerformTypeInsert(UIActionPool *pParent)
    1206         : UIActionSimple(pParent, ":/hostkey_16px.png", ":/hostkey_disabled_16px.png") {}
    1207 
    1208 protected:
    1209 
    1210     /** Returns action extra-data ID. */
    1211     virtual int extraDataID() const { return UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert; }
    1212     /** Returns action extra-data key. */
    1213     virtual QString extraDataKey() const { return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert); }
    1214     /** Returns whether action is allowed. */
    1215     virtual bool isAllowed() const { return actionPool()->toRuntime()->isAllowedInMenuInput(UIExtraDataMetaDefs::RuntimeMenuInputActionType_TypeInsert); }
    1216 
    1217     QString shortcutExtraDataID() const
    1218     {
    1219         return QString("TypeInsert");
    1220     }
    1221 
    1222     void retranslateUi()
    1223     {
    1224         setName(QApplication::translate("UIActionPool", "&Insert %1").arg("Insert"));
    1225         setStatusTip(QApplication::translate("UIActionPool", "Send the %1 sequence to the virtual machine").arg("Insert"));
    12261226    }
    12271227};
     
    20902090    m_pool[UIActionIndexRT_M_Input_M_Keyboard] = new UIActionMenuKeyboard(this);
    20912091    m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_Settings] = new UIActionSimpleKeyboardSettings(this);
     2092    m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD] = new UIActionSimplePerformTypeCAD(this);
     2093#ifdef Q_WS_X11
     2094    m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS] = new UIActionSimplePerformTypeCABS(this);
     2095#endif /* Q_WS_X11 */
     2096    m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak] = new UIActionSimplePerformTypeCtrlBreak(this);
     2097    m_pool[UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert] = new UIActionSimplePerformTypeInsert(this);
    20922098    m_pool[UIActionIndexRT_M_Input_M_Mouse] = new UIActionMenuMouse(this);
    20932099    m_pool[UIActionIndexRT_M_Input_M_Mouse_T_Integration] = new UIActionToggleMouseIntegration(this);
    2094     m_pool[UIActionIndexRT_M_Input_S_TypeCAD] = new UIActionSimplePerformTypeCAD(this);
    2095 #ifdef Q_WS_X11
    2096     m_pool[UIActionIndexRT_M_Input_S_TypeCABS] = new UIActionSimplePerformTypeCABS(this);
    2097 #endif /* Q_WS_X11 */
    2098     m_pool[UIActionIndexRT_M_Input_S_TypeCtrlBreak] = new UIActionSimplePerformTypeCtrlBreak(this);
    2099     m_pool[UIActionIndexRT_M_Input_S_TypeInsert] = new UIActionSimplePerformTypeInsert(this);
    21002100
    21012101    /* 'Devices' actions: */
     
    28012801
    28022802    /* 'Type CAD' action: */
    2803     fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_S_TypeCAD)) || fSeparator;
     2803    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD)) || fSeparator;
    28042804#ifdef Q_WS_X11
    28052805    /* 'Type CABS' action: */
    2806     fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_S_TypeCABS)) || fSeparator;
     2806    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS)) || fSeparator;
    28072807#endif /* Q_WS_X11 */
    28082808    /* 'Type Ctrl-Break' action: */
    2809     fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_S_TypeCtrlBreak)) || fSeparator;
     2809    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak)) || fSeparator;
    28102810    /* 'Type Insert' action: */
    2811     fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_S_TypeInsert)) || fSeparator;
     2811    fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert)) || fSeparator;
    28122812
    28132813    /* Mark menu as valid: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h

    r54337 r54348  
    7878    UIActionIndexRT_M_Input_M_Keyboard,
    7979    UIActionIndexRT_M_Input_M_Keyboard_S_Settings,
     80    UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD,
     81#ifdef Q_WS_X11
     82    UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS,
     83#endif /* Q_WS_X11 */
     84    UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak,
     85    UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert,
    8086    UIActionIndexRT_M_Input_M_Mouse,
    8187    UIActionIndexRT_M_Input_M_Mouse_T_Integration,
    82     UIActionIndexRT_M_Input_S_TypeCAD,
    83 #ifdef Q_WS_X11
    84     UIActionIndexRT_M_Input_S_TypeCABS,
    85 #endif /* Q_WS_X11 */
    86     UIActionIndexRT_M_Input_S_TypeCtrlBreak,
    87     UIActionIndexRT_M_Input_S_TypeInsert,
    8888
    8989    /* 'Devices' menu actions: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r54337 r54348  
    915915    m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize));
    916916    m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_View_S_AdjustWindow));
    917     m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_S_TypeCAD));
     917    m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD));
    918918#ifdef Q_WS_X11
    919     m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_S_TypeCABS));
     919    m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS));
    920920#endif /* Q_WS_X11 */
    921     m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_S_TypeCtrlBreak));
    922     m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_S_TypeInsert));
     921    m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak));
     922    m_pRunningActions->addAction(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert));
    923923
    924924    /* Move actions into running-n-paused actions group: */
     
    10111011    connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_Settings), SIGNAL(triggered()),
    10121012            this, SLOT(sltShowKeyboardSettings()));
     1013    connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCAD), SIGNAL(triggered()),
     1014            this, SLOT(sltTypeCAD()));
     1015#ifdef Q_WS_X11
     1016    connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCABS), SIGNAL(triggered()),
     1017            this, SLOT(sltTypeCABS()));
     1018#endif /* Q_WS_X11 */
     1019    connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeCtrlBreak), SIGNAL(triggered()),
     1020            this, SLOT(sltTypeCtrlBreak()));
     1021    connect(actionPool()->action(UIActionIndexRT_M_Input_M_Keyboard_S_TypeInsert), SIGNAL(triggered()),
     1022            this, SLOT(sltTypeInsert()));
    10131023    connect(actionPool()->action(UIActionIndexRT_M_Input_M_Mouse_T_Integration), SIGNAL(toggled(bool)),
    10141024            this, SLOT(sltToggleMouseIntegration(bool)));
    1015     connect(actionPool()->action(UIActionIndexRT_M_Input_S_TypeCAD), SIGNAL(triggered()),
    1016             this, SLOT(sltTypeCAD()));
    1017 #ifdef Q_WS_X11
    1018     connect(actionPool()->action(UIActionIndexRT_M_Input_S_TypeCABS), SIGNAL(triggered()),
    1019             this, SLOT(sltTypeCABS()));
    1020 #endif /* Q_WS_X11 */
    1021     connect(actionPool()->action(UIActionIndexRT_M_Input_S_TypeCtrlBreak), SIGNAL(triggered()),
    1022             this, SLOT(sltTypeCtrlBreak()));
    1023     connect(actionPool()->action(UIActionIndexRT_M_Input_S_TypeInsert), SIGNAL(triggered()),
    1024             this, SLOT(sltTypeInsert()));
    10251025
    10261026    /* 'Devices' actions connections: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette