예제 #1
0
	QuarkManager::QuarkManager (ICoreProxy_ptr proxy, FavoritesManager *favMgr,
			ItemsFinder *finder, ItemImageProvider *prov, QObject *parent)
	: QObject (parent)
	, Proxy_ (proxy)
	, FavMgr_ (favMgr)
	, Finder_ (finder)
	, ImageProv_ (prov)
	, Model_ (new LaunchModel (this))
	{
		if (Finder_->IsReady ())
			init ();
		else
			connect (Finder_,
					SIGNAL (itemsListChanged ()),
					this,
					SLOT (init ()));

		connect (FavMgr_,
				SIGNAL (favoriteAdded (QString)),
				this,
				SLOT (addItem (QString)));
		connect (FavMgr_,
				SIGNAL (favoriteRemoved (QString)),
				this,
				SLOT (handleItemRemoved (QString)),
				Qt::QueuedConnection);
	}
예제 #2
0
void ItemsList::setText( const QString _colorText, const int & _itemIndex )
{
    if( _itemIndex == 14 ) m_topColor = _colorText;
    else if ( _itemIndex == 15 ) m_bottomColor = _colorText;
    m_itemsList.at(_itemIndex)->setProperty("tableText", (QVariant)_colorText);
    emit itemsListChanged(getItemsList());
}
예제 #3
0
void ItemsList::setColor( const QString _color, const int & _itemIndex )
{
    m_itemsList.at(_itemIndex)->setProperty("tableColor", (QVariant)_color);
    emit itemsListChanged(getItemsList());
}
예제 #4
0
void ItemsList::setItemsList(const QString & _buttonName)
{
    if(_buttonName == "Noxi T2")
    {
        m_itemsList.clear();
        m_itemsList.append(new MedicalTable("/images/images/electric_regulation_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/belt_holder_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/angle_regulation_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/electric_top_L.png", "UNCHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/chassis.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/bolser.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/chair_position_L.png", "UNCHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/foot_control.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/remote_control.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/pins_L.png", "UNCHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/sheet_holder.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/plug.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/inox_steel.png", "CHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/settings.png", "CHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/top_color.png", "CHECKED", true ,"#13AAB8", "6099"));
        m_itemsList.append(new MedicalTable("/images/images/bottom_color.png", "CHECKED", true,"gray", "9006"));
        emit itemsListChanged(getItemsList());
    }
    else if(_buttonName == "Noxi T3")
    {
        m_itemsList.clear();
        m_itemsList.append(new MedicalTable("/images/images/electric_regulation_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/belt_holder.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/angle_regulation_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/electric_top_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/chassis.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/bolser.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/chair_position.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/foot_control.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/remote_control.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/pins.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/sheet_holder.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/plug.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/inox_steel.png", "CHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/settings.png", "CHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/top_color.png", "CHECKED", true ,"#13AAB8", "6099"));
        m_itemsList.append(new MedicalTable("/images/images/bottom_color.png", "CHECKED", true,"gray", "9006"));
        emit itemsListChanged(getItemsList());
    }
    else if(_buttonName == "Noxi T7")
    {
        m_itemsList.clear();
        m_itemsList.append(new MedicalTable("/images/images/electric_regulation_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/belt_holder.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/angle_regulation_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/electric_top_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/chassis_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/bolser_CH.png", "CHECKED", false));
        m_itemsList.append(new MedicalTable("/images/images/chair_position.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/foot_control.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/remote_control.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/pins.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/sheet_holder.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/plug.png", "UNCHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/inox_steel.png", "CHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/settings.png", "CHECKED", true));
        m_itemsList.append(new MedicalTable("/images/images/top_color.png", "CHECKED", true ,"#13AAB8", "6099"));
        m_itemsList.append(new MedicalTable("/images/images/bottom_color.png", "CHECKED", true,"gray", "9006"));
        emit itemsListChanged(getItemsList());
    }
    else
        return;
}