当前位置: 首页>>代码示例>>C++>>正文


C++ setHelpText函数代码示例

本文整理汇总了C++中setHelpText函数的典型用法代码示例。如果您正苦于以下问题:C++ setHelpText函数的具体用法?C++ setHelpText怎么用?C++ setHelpText使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了setHelpText函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SwitchTypeSetting

    SwitchTypeSetting(DiSEqCDevSwitch &switch_dev) :
        ComboBoxSetting(this), m_switch(switch_dev)
    {
        setLabel(DeviceTree::tr("Switch Type"));
        setHelpText(DeviceTree::tr("Select the type of switch from the list."));

        addSelection(DeviceTree::tr("Tone"),
                     QString::number((uint) DiSEqCDevSwitch::kTypeTone));
        addSelection(DeviceTree::tr("Voltage"),
                     QString::number((uint) DiSEqCDevSwitch::kTypeVoltage));
        addSelection(DeviceTree::tr("Mini DiSEqC"),
                     QString::number((uint) DiSEqCDevSwitch::kTypeMiniDiSEqC));
        addSelection(DeviceTree::tr("DiSEqC"),
                     QString::number((uint)
                                     DiSEqCDevSwitch::kTypeDiSEqCCommitted));
        addSelection(DeviceTree::tr("DiSEqC (Uncommitted)"),
                     QString::number((uint)
                                     DiSEqCDevSwitch::kTypeDiSEqCUncommitted));
        addSelection(DeviceTree::tr("Legacy SW21"),
                     QString::number((uint) DiSEqCDevSwitch::kTypeLegacySW21));
        addSelection(DeviceTree::tr("Legacy SW42"),
                     QString::number((uint) DiSEqCDevSwitch::kTypeLegacySW42));
        addSelection(DeviceTree::tr("Legacy SW64"),
                     QString::number((uint) DiSEqCDevSwitch::kTypeLegacySW64));
    }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:25,代码来源:diseqcsettings.cpp

示例2: DataSource

FlightGearDataSource::FlightGearDataSource() : DataSource() {
    connect(&tcpClient, &BasicTcpClient::connectedChanged,
            this, &FlightGearDataSource::connectedChanged);
    connect(&tcpClient, &BasicTcpClient::receivedLine,
            this, &FlightGearDataSource::readLine);
    connect(&tcpClient, &BasicTcpClient::networkErrorChanged,
            this, &FlightGearDataSource::networkErrorChanged);

    // Fill the mappings of X-Plane <-> FlightGear data refs.
    refMap.insert("sim/cockpit2/gauges/indicators/heading_electric_deg_mag_pilot", "/instrumentation/magnetic-compass/indicated-heading-deg");
    refMap.insert("sim/cockpit2/gauges/indicators/airspeed_kts_pilot", "/instrumentation/airspeed-indicator/indicated-speed-kt");
    refMap.insert("sim/cockpit2/gauges/indicators/pitch_vacuum_deg_pilot", "/instrumentation/attitude-indicator/indicated-pitch-deg");
    refMap.insert("sim/cockpit2/gauges/indicators/roll_vacuum_deg_pilot", "/instrumentation/attitude-indicator/indicated-roll-deg");
    refMap.insert("sim/flightmodel/misc/h_ind", "/instrumentation/altimeter/indicated-altitude-ft");
    refMap.insert("sim/flightmodel/position/vh_ind", "/instrumentation/vertical-speed-indicator/indicated-speed-fpm");
    refMap.insert("sim/cockpit2/gauges/indicators/slip_deg", "/instrumentation/slip-skid-ball/indicated-slip-skid");
    // Please add more here


    // These are updated for every frame, so they should be polled at some
    // interval. Subscribing causes Error:Tied properties cannot register listeners
    // todo: implement polling mechanism
    // refMap.insert("sim/cockpit2/gauges/actuators/barometer_setting_in_hg_pilot", "/instrumentation/altimeter/setting-inhg");


    tcpClient.setLineEnding("\r\n");
    setHelpText("Start FlightGear with --telnet=5401 to allow access to it's properties. \nSee http://wiki.flightgear.org/Telnet_usage for more info. \nTrying to connect to it..");
}
开发者ID:vranki,项目名称:ExtPlane,代码行数:28,代码来源:flightgeardatasource.cpp

示例3: setNetworkError

void FlightGearDataSource::connectedChanged(bool connected)
{
    if(connected) {
        setNetworkError(QString());
        setHelpText(QString("Connected to FlightGear at %1:%2").arg(tcpClient.hostName()).arg(tcpClient.port()));
        tcpClient.writeLine("data");
    }
}
开发者ID:vranki,项目名称:ExtPlane,代码行数:8,代码来源:flightgeardatasource.cpp

示例4: ChannelCheckBox

 ChannelCheckBox(const ChannelGroupConfig& _parent, const uint chanid, const QString channum,
            const QString channame, const QString grpname):
     CheckBoxSetting(this),
     ChannelGroupStorage(this, chanid, grpname)
 {
     setLabel(QString("%1 %2").arg(channum).arg(channame));
     setHelpText(QObject::tr("Select/Unselect channels for this channel group"));
 };
开发者ID:Openivo,项目名称:mythtv,代码行数:8,代码来源:channelgroupsettings.cpp

示例5: Extensions

 explicit Extensions(const PlayerId &parent)
     : TextEdit(parent, "extensions")
 {
     setLabel(TR("File Extensions"));
     setHelpText(TR("A comma separated list of all file extensions for this "
                    "emulator. Blank means any file under ROM PATH is "
                    "considered to be used with this emulator"));
 }
开发者ID:tomhughes,项目名称:mythtv,代码行数:8,代码来源:gamesettings.cpp

示例6: LNBLOFSwitchSetting

 LNBLOFSwitchSetting(DiSEqCDevLNB &lnb) : LineEditSetting(this), m_lnb(lnb)
 {
     setLabel(DeviceTree::tr("LNB LOF Switch (MHz)"));
     QString help = DeviceTree::tr(
         "This defines at what frequency the LNB will do a "
         "switch from high to low setting, and vice versa.");
     setHelpText(help);
 }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:8,代码来源:diseqcsettings.cpp

示例7: WorkingDirPath

 WorkingDirPath(const MythGamePlayerSettings &parent) :
     LineEditSetting(this), GameDBStorage(this, parent, "workingpath")
 {
     setLabel(MythGamePlayerSettings::tr("Working Directory"));
     setHelpText(MythGamePlayerSettings::tr("Directory to change to before "
                                            "launching emulator. Blank is "
                                            "usually fine"));
 };
开发者ID:Beirdo,项目名称:mythtv-stabilize,代码行数:8,代码来源:gamesettings.cpp

示例8: DeviceDescrSetting

 DeviceDescrSetting(DiSEqCDevDevice &device) :
     LineEditSetting(this), m_device(device)
 {
     setLabel(DeviceTree::tr("Description"));
     QString help = DeviceTree::tr(
         "Optional descriptive name for this device, to "
         "make it easier to configure settings later.");
     setHelpText(help);
 }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:9,代码来源:diseqcsettings.cpp

示例9: LNBLOFHighSetting

 LNBLOFHighSetting(DiSEqCDevLNB &lnb) : LineEditSetting(this), m_lnb(lnb)
 {
     setLabel(DeviceTree::tr("LNB LOF High (MHz)"));
     QString help = DeviceTree::tr(
         "This defines the offset the frequency coming from "
         "the LNB will be in high setting. For bandstacked "
         "LNBs this is the horizontal/left polarization band.");
     setHelpText(help);
 }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:9,代码来源:diseqcsettings.cpp

示例10: LNBLOFLowSetting

 LNBLOFLowSetting(DiSEqCDevLNB &lnb) : LineEditSetting(this), m_lnb(lnb)
 {
     setLabel(DeviceTree::tr("LNB LOF Low (MHz)"));
     QString help = DeviceTree::tr(
         "This defines the offset the frequency coming "
         "from the LNB will be in low setting. For bandstacked "
         "LNBs this is the vertical/right polarization band.");
     setHelpText(help);
 }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:9,代码来源:diseqcsettings.cpp

示例11: RotorHiSpeedSetting

 RotorHiSpeedSetting(DiSEqCDevRotor &rotor) :
     LineEditSetting(this), m_rotor(rotor)
 {
     setLabel(DeviceTree::tr("Rotor High Speed (deg/sec)"));
     QString help = DeviceTree::tr(
         "To allow the approximate monitoring of rotor movement, enter "
         "the rated angular speed of the rotor when powered at 18V.");
     setHelpText(help);
 }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:9,代码来源:diseqcsettings.cpp

示例12: DeviceRepeatSetting

 DeviceRepeatSetting(DiSEqCDevDevice &device) :
     SpinBoxSetting(this, 0, 5, 1), m_device(device)
 {
     setLabel(DeviceTree::tr("Repeat Count"));
     QString help = DeviceTree::tr(
         "Number of times to repeat DiSEqC commands sent to this device. "
         "Larger values may help with less reliable devices.");
     setHelpText(help);
 }
开发者ID:matt-schrader,项目名称:mythtv,代码行数:9,代码来源:diseqcsettings.cpp

示例13: Freqid

 Freqid(const ChannelID &id) :
     LineEditSetting(this), ChannelDBStorage(this, id, "freqid")
 {
     setLabel(QCoreApplication::translate("(ChannelSettings)",
                                          "Frequency or Channel"));
     setHelpText(QCoreApplication::translate("(ChannelSettings)",
         "Specify either the exact frequency (in kHz) or a valid channel "
         "for your 'TV Format'."));
 }
开发者ID:JGunning,项目名称:OpenAOL-TV,代码行数:9,代码来源:channelsettings.cpp

示例14: Icon

    Icon(const ChannelID &id) :
        LineEditSetting(this), ChannelDBStorage(this, id, "icon")
    {
        setLabel(QCoreApplication::translate("(ChannelSettings)", "Icon"));

        setHelpText(QCoreApplication::translate("(ChannelSettings)",
            "Image file to use as the icon for this channel on various MythTV "
            "displays."));
    }
开发者ID:JGunning,项目名称:OpenAOL-TV,代码行数:9,代码来源:channelsettings.cpp

示例15: setNetworkError

void CondorDatasource::connectToSource() {
    setNetworkError(QString());

    connect(&m_udpSocket, &QUdpSocket::readyRead, this, &CondorDatasource::readPendingDatagrams);
    if(m_udpSocket.bind(QHostAddress::LocalHost, m_port)) {
        setHelpText(QString("Listening to UDP transmissions on port %1. Please run Condor.\nSee config help at http://www.condorsoaring.com/manual/#simkits-and-udp-outputs").arg(m_port));
    } else {
        setNetworkError(QString("Unable to bind to UDP port %1!").arg(m_port));
    }
}
开发者ID:vranki,项目名称:ExtPlane,代码行数:10,代码来源:condordatasource.cpp


注:本文中的setHelpText函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。