Exemplo n.º 1
0
	void Plugin::Init (ICoreProxy_ptr proxy)
	{
		Proxy_ = proxy;

		Util::InstallTranslator ("touchstreams");

		XSD_.reset (new Util::XmlSettingsDialog);
		XSD_->RegisterObject (&XmlSettingsManager::Instance (), "touchstreamssettings.xml");

		Queue_ = new Util::QueueManager (10000);

		AuthMgr_ = new Util::SvcAuth::VkAuthManager ("TouchStreams",
				"3298289",
				{ "audio", "friends" },
				XmlSettingsManager::Instance ().property ("Cookies").toByteArray (),
				proxy,
				Queue_);
		connect (AuthMgr_,
				SIGNAL (cookiesChanged (QByteArray)),
				this,
				SLOT (saveCookies (QByteArray)));

		AlbumsMgr_ = new AlbumsManager (AuthMgr_, Queue_, proxy, this);
		FriendsMgr_ = new FriendsManager (AuthMgr_, Queue_, proxy, this);

		connect (XSD_.get (),
				SIGNAL (pushButtonClicked (QString)),
				this,
				SLOT (handlePushButton (QString)));
	}
Exemplo n.º 2
0
calcDialog::calcDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::calcDialog)
{
    ui->setupUi(this);
	
	connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(pushButtonClicked()));
}
Exemplo n.º 3
0
RCTest::RCTest(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::RCTest)
{
    ui->setupUi(this);
    connect(ui->pushButton,SIGNAL(clicked()),this,SLOT(pushButtonClicked()));
    m_rc = new OVDataRelatedContent( QStringList() << "./" << "../plugins/build/" );
    connect(m_rc,SIGNAL(relatedContentResultsReady(quint16,QList<OVDataRelatedContentResult*>&)),this,SLOT(relatedContentResultsReadySlot(quint16,QList<OVDataRelatedContentResult*>&)));
    connect( ui->treeWidget, SIGNAL(itemClicked(QTreeWidgetItem*,int)), this, SLOT(itemChanged(QTreeWidgetItem*)) );
    m_rc->loadPlugins();
    m_equiv.clear();
    m_items.clear();
    m_slidePos=0;
}
Exemplo n.º 4
0
ConfDirBrowser::ConfDirBrowser(QWidget *parent, const QString &name, const QString &placeholderText,
                               const QVariant &value, const QString &buttonText, const QString &parameterName)
    : BaseConfComponent(parameterName, parent)
{
    lineEdit = new QLineEdit();
    connect(lineEdit, SIGNAL(textChanged(QString)), this, SLOT(lineEditTextChanged(QString)));
    lineEdit->setText(value.toString());
    lineEdit->setPlaceholderText(placeholderText);
    if (name.length() != 0)
    {
        lineEdit->setObjectName(name);
    } else {
        QMessageBox::warning(parent, STRS::incorrectName, QtUtils::stringFormat(STRS::specifyName, STRS::browserLineEdit));
    }
    pushButton = new QPushButton(buttonText);
    connect(pushButton, SIGNAL(clicked()), this, SLOT(pushButtonClicked()));

    getLayout()->addWidget(lineEdit);
    getLayout()->addWidget(pushButton);
    setLayout(getLayout());
}
Exemplo n.º 5
0
	CoreInstanceObject::CoreInstanceObject (QObject *parent)
	: QObject (parent)
	, XmlSettingsDialog_ (new Util::XmlSettingsDialog ())
	, SettingsTab_ (new SettingsTab)
	, CorePlugin2Manager_ (new CorePlugin2Manager)
	, ShortcutManager_ (new ShortcutManager)
	, CoreShortcutManager_ (new Util::ShortcutManager (ICoreProxy_ptr (new CoreProxy)))
	{
		CoreShortcutManager_->SetObject (this);

		XmlSettingsDialog_->RegisterObject (XmlSettingsManager::Instance (),
				"coresettings.xml");
		connect (XmlSettingsDialog_.get (),
				SIGNAL (pushButtonClicked (QString)),
				this,
				SLOT (handleSettingsButton (QString)));

		connect (SettingsTab_,
				SIGNAL (remove (QWidget*)),
				this,
				SIGNAL (removeTab (QWidget*)));
	}
Exemplo n.º 6
0
	void XmlSettingsDialog::handlePushButtonReleased ()
	{
		emit pushButtonClicked (sender ()->objectName ());
	}