Exemple #1
0
MLT3DHub::MLT3DHub() :
	mDataRate(-1),
	mT3DWaitTime(0),
	mEnabled(false),
	mUDPPortOffset(0),
	mReceivingT3d(false),
	mConnected(0),
	mShouldConnect(false),
	mShouldDisconnect(false)
{
	// initialize touch frame for output
	mOutputFrame.setDims(MLT3DHub::kFrameWidth, MLT3DHub::kFrameHeight);

	setShortName("<unnamed hub>");
	
	// build touch frame buffer
	//
	mFrameBuf.buffer = 0;
	MLSample* pFrameData;
	pFrameData = mTouchFrames.setDims(MLT3DHub::kFrameWidth, MLT3DHub::kFrameHeight, MLT3DHub::kFrameBufferSize);
	if (pFrameData)
	{
		PaUtil_InitializeRingBuffer(&mFrameBuf, mTouchFrames.getZStride(), MLT3DHub::kFrameBufferSize, pFrameData);
	}
	else
	{
		debug() << "MLT3DHub::initialize: couldn't get frame data!\n";
	}

	setPortOffset(0);
	
	// start protocol polling
	startTimer(500);
}
Exemple #2
0
void DataDialog::createGui() {

  if (_mode == New) {
    buttonBox()->button(QDialogButtonBox::Apply)->setVisible(false);
  }

  connect(this, SIGNAL(apply()), this, SLOT(slotApply()));

  QWidget *extension = extensionWidget();

  QVBoxLayout *extensionLayout = new QVBoxLayout(extension);
  extensionLayout->setContentsMargins(0, -1, 0, -1);

  _editMultipleWidget = new EditMultipleWidget();
  extensionLayout->addWidget(_editMultipleWidget);

  extension->setLayout(extensionLayout);

  QWidget *box = topCustomWidget();

  QHBoxLayout *layout = new QHBoxLayout(box);

  _nameLabel = new QLabel(tr("&Name:"), box);
  _tagString = new QLineEdit(box);
  connect(_tagString, SIGNAL(textChanged(QString)), this, SLOT(modified()));
  _nameLabel->setBuddy(_tagString);

  _shortName = new QLabel(QString(), box);

  _tagStringAuto = new QCheckBox(tr("&Auto","automatic"), box);
  connect(_tagStringAuto, SIGNAL(toggled(bool)), _tagString, SLOT(setDisabled(bool)));

  _editMultipleButton = new QPushButton(tr("Edit Multiple >>"));
  _editMultipleButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
  connect(_editMultipleButton, SIGNAL(clicked()), this, SLOT(slotEditMultiple()));

  QLabel *spacer = new QLabel();

  if (_dataObject) {
    setTagString(_dataObject->descriptiveName());
    setShortName(_dataObject->shortName());
    _tagStringAuto->setChecked(!_dataObject->descriptiveNameIsManual());
  } else {
    _tagStringAuto->setChecked(true);
    setTagString(QString());
    _editMultipleButton->setVisible(false);
  }

  layout->addWidget(_nameLabel);
  layout->addWidget(_tagString);
  layout->addWidget(_shortName);
  layout->addWidget(_tagStringAuto);
  layout->addWidget(spacer);
  layout->addWidget(_editMultipleButton);

  box->setLayout(layout);

}
JsScriptingComponent::JsScriptingComponent(QObject *parent)
    : BaseComponent("org.carousel.JsScripting", parent)
{
    setShortName("JsScripting");
    setProductName("JsScripting");
    setDescription(description);
    setProvider("Carousel");
    setVersion(1, 0);
}
GeometryComponent::GeometryComponent()
    : BaseComponent("org.carousel.demos.Geometry")
{
    IScriptExtension *scriptExtension = new GeometryScriptExtension(this);
    registerExtension<IScriptExtension>(scriptExtension);

    addParent("org.carousel.QmlScripting", 1, 0);
    setShortName("Geometry");
    setProductName(productName);
    setProvider("Carousel");
    setVersion(1, 0);
}
DisplayComponent::DisplayComponent(QObject *parent)
    : BaseComponent("org.carousel.demos.Display", parent)
{
    IScriptExtension *scriptExtension = new DisplayScriptExtension(this);
    registerExtension<IScriptExtension>(scriptExtension);

    addParent("org.carousel.QmlScripting", 1, 0);
    addParent("org.carousel.demos.Geometry", 1, 0);
    setShortName("Display");
    setProductName(productName);
    setProvider("Carousel");
    setVersion(1, 0);
}
JsScriptingUIComponent::JsScriptingUIComponent(QObject *parent)
    : BaseComponent("org.carousel.JsScriptingUI", parent)
{
    IInteractiveExtension *interactiveExtension = new JsScriptingUIInteractiveExtension(this);
    registerExtension<IInteractiveExtension>(interactiveExtension);

    setShortName("JsScriptingUI");
    setProductName("JsScriptingUI");
    setDescription(description);
    setProvider("Carousel");
    setVersion(1, 0);
    addParent("org.carousel.JsScripting", 1, 0);
    addParent("org.carousel.Interactivity", 1, 0);
}
NavigationOperationsComponent::NavigationOperationsComponent(QObject *parent /*= nullptr*/)
    : BaseComponent("org.carousel.demos.NavigationOperations", parent)
{
    IInteractiveExtension *interactiveExtension = new NavigationOperationsInteractiveExtension(this);
    registerExtension<IInteractiveExtension>(interactiveExtension);

    addParent("org.carousel.demos.Geodatabase", 1, 0);
    addParent("org.carousel.demos.Display", 1, 0);
    addParent("org.carousel.demos.Carto", 1, 0);
    addParent("org.carousel.demos.CartoUI", 1, 0);
    setShortName("Navigation Operations");
    setProductName(productName);
    setProvider("Carousel");
    setVersion(1, 0);
}
CartoComponent::CartoComponent()
    : BaseComponent("org.carousel.demos.Carto")
{
    IScriptExtension *scriptExtension = new CartoScriptExtension(this);
    registerExtension<IScriptExtension>(scriptExtension);

    addParent("org.carousel.QmlScripting", 1, 0);
    addParent("org.carousel.demos.Display", 1, 0);
    addParent("org.carousel.demos.Geodatabase", 1, 0);
    addParent("org.carousel.demos.Geometry", 1, 0);
    setShortName("Carto");
    setProductName(productName);
    setProvider("Carousel");
    setVersion(1, 0);
}
CoaSettingsWidgetChangeDebug::CoaSettingsWidgetChangeDebug(QWidget * const parent , Qt::WFlags f )
: CoaSettingsWidget (parent, f)
,actionModel(0)
{
   BEGIN;

   //Create the central form
   Q_INIT_RESOURCE(tools);
   CoaFormFactory factory(this);
   factory.formBuild(":/tools/settings/coachangedebug.ui");
   setIcon(":/tools/settings/icons/debug.png");

   initMainButtons();
   initDefaultModeButtons();

   loadModel();
   assert(actionModel);

   initTableView();
   setShortName( tr("Debug") );
   setGroupName( shortName() );

}
Exemple #10
0
void Part::setPlainShortName(const QString& s)
      {
      setShortName(XmlWriter::xmlString(s));
      }
Exemple #11
0
void ViMp3Codec::initialize()
{
	//Names
	setShortName("MPEG Audio Layer 3");
	setLongName("Moving Picture Experts Group Audio Layer 3");

	//Compression
	setCompression(ViAudio::LossyCompression);

	//Abbreviations
	addAbbreviation("MP3");
	addAbbreviation("MPEG3");
	addAbbreviation("MPA3");
	addAbbreviation("MPEGA3");

	//Extensions
	addExtension("mp3");
	addExtension("bit");

	/*******************************************************************/
	/*******************************************************************/
	/*******************************************************************/

	//Sample Types
	addSampleSize(8, "8 bit");
	addSampleSize(16, "16 bit");
	addSampleSize(32, "32 bit");
	setDefaultSampleSize(16);

	//Sample Rates
	addSampleRate(8000, "8000 Hz");
	addSampleRate(11025, "11025 Hz");
	addSampleRate(16000, "16000 Hz");
	addSampleRate(22050, "22050 Hz");
	addSampleRate(32000, "32000 Hz");
	addSampleRate(44056, "44056 Hz");
	addSampleRate(44100, "44100 Hz");
	addSampleRate(47250, "47250 Hz");
	addSampleRate(48000, "48000 Hz");
	addSampleRate(50000, "50000 Hz");
	addSampleRate(50400, "50400 Hz");
	addSampleRate(88200, "88200 Hz");
	addSampleRate(96000, "96000 Hz");
	setDefaultSampleRate(44100);

	//Sample Types
	addSampleType(ViAudioFormat::SignedInt, "Signed Integer");
	setDefaultSampleType(ViAudioFormat::SignedInt);

	//Endianness
	addEndianness(ViAudioFormat::LittleEndian, "Little Endian");
	setDefaultEndianness(ViAudioFormat::LittleEndian);

	//Bitrates
	addBitrate(8, "8 kbps");
	addBitrate(16, "16 kbps");
	addBitrate(24, "24 kbps");
	addBitrate(32, "32 kbps");
	addBitrate(40, "40 kbps");
	addBitrate(48, "48 kbps");
	addBitrate(56, "56 kbps");
	addBitrate(64, "64 kbps");
	addBitrate(72, "72 kbps");
	addBitrate(80, "80 kbps");
	addBitrate(88, "88 kbps");
	addBitrate(96, "96 kbps");
	addBitrate(104, "104 kbps");
	addBitrate(112, "112 kbps");
	addBitrate(120, "120 kbps");
	addBitrate(128, "128 kbps");
	addBitrate(136, "136 kbps");
	addBitrate(144, "144 kbps");
	addBitrate(152, "152 kbps");
	addBitrate(160, "160 kbps");
	addBitrate(168, "168 kbps");
	addBitrate(176, "176 kbps");
	addBitrate(184, "184 kbps");
	addBitrate(192, "192 kbps");
	addBitrate(200, "200 kbps");
	addBitrate(208, "208 kbps");
	addBitrate(216, "216 kbps");
	addBitrate(224, "224 kbps");
	addBitrate(232, "232 kbps");
	addBitrate(240, "240 kbps");
	addBitrate(248, "248 kbps");
	addBitrate(256, "256 kbps");
	addBitrate(264, "264 kbps");
	addBitrate(272, "272 kbps");
	addBitrate(280, "280 kbps");
	addBitrate(288, "288 kbps");
	addBitrate(296, "296 kbps");
	addBitrate(304, "304 kbps");
	addBitrate(312, "312 kbps");
	addBitrate(320, "320 kbps");
	addBitrate(330, "330 kbps");
	addBitrate(340, "340 kbps");
	addBitrate(350, "350 kbps");
	addBitrate(360, "360 kbps");
	addBitrate(370, "370 kbps");
	addBitrate(380, "380 kbps");
	addBitrate(390, "390 kbps");
	addBitrate(400, "400 kbps");
	addBitrate(410, "410 kbps");
	addBitrate(420, "420 kbps");
	addBitrate(430, "430 kbps");
	addBitrate(440, "440 kbps");
	addBitrate(450, "450 kbps");
	addBitrate(460, "460 kbps");
	addBitrate(470, "470 kbps");
	addBitrate(480, "480 kbps");
	addBitrate(490, "490 kbps");
	addBitrate(500, "500 kbps");
	setDefaultBitrate(192);

	//Bitrate Modes
	addBitrateMode(ViAudioBitrate::Constant, "Constant Bitrate");
	addBitrateMode(ViAudioBitrate::Variable, "Variable Bitrate");
	addBitrateMode(ViAudioBitrate::Average, "Average Bitrate");
	setDefaultBitrateMode(ViAudioBitrate::Variable);

	//Qualities
	addQuality(ViAudioFormat::InsaneHigh, "Insane High");
	addQuality(ViAudioFormat::ExtremeHigh, "Extreme High");
	addQuality(ViAudioFormat::VeryHigh, "Very High");
	addQuality(ViAudioFormat::High, "High");
	addQuality(ViAudioFormat::AboveAverage, "Above Average");
	addQuality(ViAudioFormat::Average, "Average");
	addQuality(ViAudioFormat::BelowAverage, "Below Average");
	addQuality(ViAudioFormat::Low, "Low");
	addQuality(ViAudioFormat::VeryLow, "Very Low");
	addQuality(ViAudioFormat::ExtremeLow, "Extreme Low");
	setDefaultQuality(ViAudioFormat::High);

	//Channels
	addChannel(1, "Mono");
	addChannel(2, "Stereo");
	setDefaultChannel(2);
}
void PHN_Settings::setCurrent(QString name) {
    setShortName(sketch_current, name);
}
void PHN_Settings::setToload(QString name) {
    setShortName(sketch_toload, name);
}
Exemple #14
0
Card::Card(const std::string& shortName) //e.g. "Qs"
{
  setShortName(shortName);
}