示例#1
0
void GoodsDialogView::addAllPriceComponents()
{
    priceValidator = new QRegExpValidator(QRegExp("[0-9]+([.]|,)[0-9]{0,2}"),this);
    setComponents(pricesLayout,tablePrices,2,1,1,4);
    setComponents(pricesLayout,boxTax,"VAT: ",0,1,1,4);
    pricesLayout->addWidget(pushAddTax = new Button(ButtonStruct("+",QSize(25,28))),0,5,1,1);
    pricesLayout->addWidget(pushDeleteTax = new Button(ButtonStruct("-",QSize(25,28))),0,6,1,1);
    setComponents(pricesLayout,linePriceMagNet,"Cena zakupu: ",1,1,1,2);
    linePriceMagNet->setValidator(priceValidator);
    connect(boxTax,SIGNAL(activated(int)),controller,SLOT(calculatePricesForTax(int)));
    connect(linePriceMagNet,SIGNAL(editingFinished()),controller,SLOT(calculateAllPricesFromMag()));
    connect(tablePrices,SIGNAL(itemChanged(QTableWidgetItem*)),controller,SLOT(calculatePrices(QTableWidgetItem*)));

}
示例#2
0
void GoodsDialogView::addAllStandardComponents()
{
    radioGood->setText("Towar");
    radioService->setText("Usługa");

    setComponents(standardLayout,lineSymbol,"<b>Symbol:</b>",1,1,1,2);
    setComponents(standardLayout,lineName,"<b>Nazwa:</b>",2,1,1,2);
    setComponents(standardLayout,radioGood,"",3,1,1,1);
    setComponents(standardLayout,radioService,"",3,2,1,1);
    setComponents(standardLayout,boxUnit,"Jednostka: ",4,1,1,2);
    setComponents(standardLayout,linePkwiu,"PKWiU SWW: ",5,1,1,2);
    setComponents(standardLayout,lineWeight,"Waga: ",6,1,1,2);
    standardLayout->addWidget(picture,0,3,5,3);
    standardLayout->addWidget(framePicture,0,3,5,3);
    setComponents(standardLayout,textDescription,"Opis: ",7,1,5,5);
}
void ComponentListBox::setVehicle( LogisticsVehicle* pVeh )
{
	removeAllItems( true );

	if ( pVeh )
	{
		LogisticsComponent* components[256];
		long componentCount = 256;

		pVeh->getComponents( componentCount, components );

		setComponents( componentCount, components );	

	}
}
示例#4
0
//**************************************************************************************************************
LLTextureAtlas::LLTextureAtlas(U8 ncomponents, S16 atlas_dim) : LLImageGL(),
	mAtlasDim(atlas_dim)
{
	setComponents(ncomponents) ;

	mCanAddToAtlas = FALSE ;//do not add one atlas to another.
	mNumSlotsReserved = 0 ;
	mMaxSlotsInAtlas = mAtlasDim * mAtlasDim ;

	generateEmptyUsageBits() ;

	//generate an empty texture
	S32 dim = mAtlasDim * sSlotSize ; //number of pixels per dimension 
	LLPointer<LLImageRaw> image_raw = new LLImageRaw(dim, dim, getComponents());
	createGLTexture(0, image_raw, 0);
	image_raw = NULL;
	dontDiscard();
}
void ComponentListBox::setMech( LogisticsVariant* pMech )
{
	removeAllItems( true );

	if ( pMech )
	{
		LogisticsComponent* components[256];
		long componentCount = 256;

		pMech->getComponents( componentCount, components );

		setComponents( componentCount, components );
		
		int sensor = pMech->getSensorID();
		int ECM = pMech->getECM();

		if ( sensor > 0 )
		{
			aTextListItem* textItem = new aTextListItem( IDS_SALVAGE_AREA_COMPONENTS );
			textItem->setText( 32000 + sensor );
			textItem->setColor( 0xffc29b00 );
			textItem->setHelpID( IDS_HELP_COMP0 + sensor );
			AddItem( textItem );			
		}

		if ( ECM > 0 )
		{
			aTextListItem* textItem = new aTextListItem( IDS_SALVAGE_AREA_COMPONENTS );
			textItem->setText( 32000 + ECM );
			textItem->setColor( 0xffc29b00 );
			textItem->setHelpID( IDS_HELP_COMP0 + ECM );
			AddItem( textItem );
		}

	}
}
示例#6
0
void GoodsDialogView::addAllFeatureComponents()
{
    setComponents(featuresLayout,boxGoodGroup,"Grupa dóbr: ",0,1,1,2);
    featuresLayout->addWidget(tableFeature,1,0,3,3);
    connect(boxGoodGroup,SIGNAL(currentIndexChanged(int)),controller,SLOT(updateFeatureModel(int)));
}
示例#7
0
void GoodsDialogView::addWarehouseSelection() {
    addToWarehouseComboBox->addItem("Wszystkie", 0);
    addToWarehouseComboBox->addItem("Aktualny: " + ApplicationManager::getInstance()->getWarehouse()->getName(), ApplicationManager::getInstance()->getWarehouseId());
    setComponents(standardLayout, addToWarehouseComboBox, "Dodaj do magazynu: ", 0, 1, 1, 2);
}
示例#8
0
Vector& Vector::operator-=(const Vector& v) {
	setComponents(componentX() - v.componentX(), componentY() - v.componentY());
	return *this;
}
示例#9
0
// Set the Y component
void Vector::setComponentY(double y) {
	setComponents(componentX(), y);
}
示例#10
0
// Set the X component
void Vector::setComponentX(double x) {
	setComponents(x, componentY());
}
示例#11
0
void Vertex::setNormal(ofVec3f n){
    normal.set(n);
    setComponents();
}