Example #1
0
VSCDeviceIPC::VSCDeviceIPC(QTreeWidgetItem *parent, DeviceParam &pParam)
    : QTreeWidgetItem(parent)
{
	m_Param = pParam;
       UpdateOnline();

}
Example #2
0
MainWidget::MainWidget(Settings *_settings, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MainWidget)
{
    ui->setupUi(this);
    ui->textBrowser->verticalScrollBar()->hide();
    ui->textBrowser->horizontalScrollBar()->hide();

    settings = _settings;

    pageData = new QString[3];

    int _width  = 160;
    int _height = 55;
    realmWidget = new RealmMiniWidget*[4];
    for (int i = 0; i < 4; ++i)
    {
        realmWidget[i] = new RealmMiniWidget(ui->realmsWidget);
        connect(realmWidget[i], SIGNAL(clicked(RealmMiniWidget*)), this, SLOT(realmMiniWidget_clicked(RealmMiniWidget*)));
    }
    realmWidget[1]->setGeometry(_width,0,_width,_height);
    realmWidget[2]->setGeometry(0,_height,_width,_height);
    realmWidget[3]->setGeometry(_width,_height,_width,_height);

    connect(&page1, SIGNAL(DataCollected(ForumMgr*)), this, SLOT(Update1Forum()));
    connect(&page2, SIGNAL(DataCollected(ForumMgr*)), this, SLOT(Update2Forum()));
    connect(&page3, SIGNAL(DataCollected(ForumMgr*)), this, SLOT(Update3Forum()));
    connect(&onlineParser, SIGNAL(ParsingDone()), this, SLOT(UpdateOnline()));
    connect(&updateTimer, SIGNAL(timeout()), this, SLOT(UpdateAll()));

    UpdateAll();

    currCharIndex = 0;
    realmPage = 1;
    currOnlineIndex = settings->getDefaultOnlineShown();

    updateTimer.start(settings->getUpdateTime());
    characters = new Characters(settings->getGamePath());

    newUpdate = false;

    ui->synchButton->setVisible(false);
 }
Example #3
0
VSCVidItemStorConf::VSCVidItemStorConf(VidStor cStor, ClientFactory &pFactory, QTreeWidgetItem *parent)
: VSCVidItemInf(pFactory, parent), m_cStor(cStor), m_pItemAddCam(NULL)
{
	QIcon icon1;
	icon1.addFile(QStringLiteral(":/device/resources/stor.png"), QSize(), QIcon::Normal, QIcon::Off);
	
	setIcon(0, icon1);
	setText(0, QApplication::translate(" ", m_cStor.strname().c_str(), 0));
	this->setTextColor(0, QColor(41, 42, 43));
	
	//TreeUpdated();

	m_pFactory.GetStorFactory().RegChangeNotify((void *)this, VSCVidItemStorConf::CallChange);

	UpdateOnline(m_pFactory.GetStorFactory().GetOnline(m_cStor.strid()));
	if (m_pFactory.GetStorFactory().GetOnline(m_cStor.strid()) == true)
	{
		TreeUpdated();
	}
	
	
}
Example #4
0
VSCVidItemVidStor::VSCVidItemVidStor(VidStor cStor, ClientFactory &pFactory, QTreeWidgetItem *parent)
: m_cStor(cStor), VSCVidItemInf(pFactory, parent)
{
	//TreeUpdated();

	QIcon icon1;
	icon1.addFile(QStringLiteral(":/device/resources/stor.png"), QSize(), QIcon::Normal, QIcon::Off);
	
	setIcon(0, icon1);

	setText(0, QApplication::translate(" ", m_cStor.strname().c_str(), 0));
	//m_pFactory.GetStorFactory().RegChangeNotify((void *)this, VSCVidItemVidStor::CallChange);

	connect(&(m_pFactory.GetStorFactory()), SIGNAL(SignalCallChange(int, std::string, std::string)), 
		this, SLOT(SlotCallChange(int, std::string, std::string)));
	
	UpdateOnline(m_pFactory.GetStorFactory().GetOnline(m_cStor.strid()));

	if (m_pFactory.GetStorFactory().GetOnline(m_cStor.strid()) == true)
	{
		TreeUpdated();
	}
	
}
Example #5
0
void MainWidget::on_nextRealmsButton_clicked()
{
    UpdateOnline(realmPage + 1);
}
Example #6
0
void MainWidget::on_prevRealmsButton_clicked()
{
    UpdateOnline(realmPage - 1);
}
Example #7
0
VSCVidItemInf::VSCVidItemInf(ClientFactory &pFactory, QTreeWidgetItem *parent)
: QTreeWidgetItem(parent), m_pFactory(pFactory), m_bOnline(false), m_bRec(false)
{
	UpdateOnline(false);
}