コード例 #1
0
ファイル: ficherosconf.cpp プロジェクト: jmartinezin2/SRC
//Constructor
FicherosConf::FicherosConf(QWidget *parent)
	: InkjetForm(parent)
{
	//Titulos de las secciones
	this->SetTitleInfo("In2 Printing Solutions");
	this->SetTitleStatus("Estado");
	this->SetTitleOptions("Opciones");

	//Boton para control de usuarios
	m_LoadConfig = new QPushButton(this->m_OptionZone);
	m_LoadConfig->setText("Cargar\nConfiguración");    	
	m_LoadConfig->setIcon(QPixmap(":/res/images/load.png"));
	m_LoadConfig->setIconSize(QSize(WICONSIZE,HICONSIZE));

	m_SaveConfig = new QPushButton(this->m_OptionZone);
	m_SaveConfig->setText("Guardar\nConfiguración");    	
	m_SaveConfig->setIcon(QPixmap(":/res/images/save.png"));
	m_SaveConfig->setIconSize(QSize(WICONSIZE,HICONSIZE));

	m_BackButton = new QPushButton(this->m_OptionZone);
    m_BackButton->setText("Atrás");    	
	m_BackButton->setIcon(QPixmap(":res/images/back.png"));
	m_BackButton->setIconSize(QSize(WICONSIZE,HICONSIZE));

	this->ShowInfo();

	this->OrdenaBotonesOpciones();
	CargaDatos();
	QObject::connect(m_BackButton, SIGNAL(clicked()),this, SLOT(Atras()));
	QObject::connect(m_LoadConfig, SIGNAL(clicked()),this, SLOT(CargarConfiguracion()));
	QObject::connect(m_SaveConfig, SIGNAL(clicked()),this, SLOT(GuardarConfiguracion()));
	//connect((Principal*)this->GetMainWindow(), SIGNAL(ActualizaData()),this, SLOT(ActualizaDataSlot()));
	TestRoot();
}
コード例 #2
0
int FAR PASCAL WinMain(HINSTANCE hInstance,	HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
	InitTotalStatistics();
	InitEmptyString();
	FastFunctionsInit();

	TestStackPointers();
	TestClass();
	TestClassStorage();
	TestUnknowns();
	TestArrayUnknown();
	TestSetUnknown();
	TestArrayType();
	TestSetType();
	TestMapStringUnknown();
	TestEvent();
	TestActionEvent();
	TestExternalChannels();
	TestExternalChannelPadder();
	TestChannels();
	TestChannelsAccessor();
	TestSingleChannelAccessor();
	TestChunkFileNames();
	TestParameters();
	TestDistToRoot();
	TestDistToStack();
	TestObjectsSimple();
	TestRoot();
	TestObject();
	TestPointer();
	TestArrayCommonObject();
	TestNamedObject();
	TestObjectAllocator();
	TestObjectWriterChunked();
	TestObjectGraphSerialiser();
	TestObjectReaderSimple();
	TestObjectReaderChunked();
	TestObjectStackPointers();
	TestNamedIndexes();
	TestObjectGraphDeserialiser();
	TestObjectConverter();
	TestObjects();
	TestDehollowfication();
	TestUsage();
	TestArray();
	TestSet();
	TestKill();
	TestEmbedded();
	TestEmbeddedObjectRemapTos();

	FastFunctionsKill();
	KillEmptyString();
	return TestTotalStatistics();
}
コード例 #3
0
ファイル: listformattertest.cpp プロジェクト: Distrotech/icu
void ListFormatterTest::runIndexedTest(int32_t index, UBool exec,
                                       const char* &name, char* /*par */) {
    switch(index) {
        case 0: name = "TestRoot"; if (exec) TestRoot(); break;
        case 1: name = "TestBogus"; if (exec) TestBogus(); break;
        case 2: name = "TestEnglish"; if (exec) TestEnglish(); break;
        case 3: name = "TestEnglishUS"; if (exec) TestEnglishUS(); break;
        case 4: name = "TestRussian"; if (exec) TestRussian(); break;
        case 5: name = "TestMalayalam"; if (exec) TestMalayalam(); break;
        case 6: name = "TestZulu"; if (exec) TestZulu(); break;
        case 7: name = "TestOutOfOrderPatterns"; if (exec) TestOutOfOrderPatterns(); break;
        case 8: name = "Test9946"; if (exec) Test9946(); break;

        default: name = ""; break;
    }
}