Ejemplo n.º 1
0
const std::string Command::help() {
    std::string result;
    if (getShortName() != "")
        result = getShortName() + "|" + getName() + ": \t" + getInfoText();
    else
        result = getName() + ": \t" + getInfoText();

    return result;
}
TimeSeriesClassificationDataStream TimeSeriesClassificationDataStream::getSubset(const UINT startIndex,const UINT endIndex) const {
    
    TimeSeriesClassificationDataStream subset;
    
    if( endIndex >= totalNumSamples ){
        warningLog << "getSubset(const UINT startIndex,const UINT endIndex) - The endIndex is greater than or equal to the number of samples in the current dataset!" << endl;
        return subset;
    }
    
    if( startIndex >= endIndex ){
        warningLog << "getSubset(const UINT startIndex,const UINT endIndex) - The startIndex is greater than or equal to the endIndex!" << endl;
        return subset;
    }
    
    //Set the header info
    subset.setNumDimensions( getNumDimensions() );
    subset.setDatasetName( getDatasetName() );
    subset.setInfoText( getInfoText() );
    
    //Add the data
    for(UINT i=startIndex; i<=endIndex; i++){
        subset.addSample(data[i].getClassLabel(), data[i].getSample());
    }
    
    return subset;
}
void CBEChannelSelectWidget::paintDetails(int index)
{
	//details line
	dline->paint();
	
	std::string str = getInfoText(index);
	
	//info box
	ibox->setText(str, CTextBox::AUTO_WIDTH | CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_CHANNELLIST]);
	ibox->setColorBody(COL_MENUCONTENTDARK_PLUS_0);
	ibox->paint(false);
}
Ejemplo n.º 4
0
int CStatusObject::test(int initX, int initY, HWND hWnd, CInfoSquare &theInfoSquare, bool keyPressed)
{
	//MessageBox(hWnd, "I status objects TEST ska vi inte va", "Inte Här", MB_OK);

	if(getStatus() == MOUSE_OVER)
	{
		theInfoSquare.startTimer(hWnd, getString(), getInfoText(), initX, initY);
	}
	else if(getStatus() == NORMAL || getStatus() == PRESSED)
		theInfoSquare.stopTimer(hWnd, getString());		// Stop Drawing the timer, the name is the id

	if(isStatusChanged())
		return 1;								// return 1 because status was changed
	else
		return 0;
}