Ejemplo n.º 1
0
void CanThrottle::setup() {
	TickHandler::getInstance()->detach(this);

	loadConfiguration();
	Throttle::setup();

	requestFrame.length = 0x08;
	requestFrame.rtr = 0x00;
	requestFrame.extended = 0x00;

	CanThrottleConfiguration *config = (CanThrottleConfiguration *)getConfiguration();
	switch (config->carType) {
	case Volvo_S80_Gas:
		// Request: dlc=0x08 fid=0x7e0 id=0x7e0 ide=0x00 rtr=0x00 data=0x03,0x22,0xEE,0xCB,0x00,0x00,0x00,0x00 (vida: [0x00, 0x00, 0x07, 0xe0, 0x22, 0xee, 0xcb])
		// Raw response: dlc=0x08 fid=0x7e8 id=0x7e8 ide=0x00 rtr=0x00 data=0x04,0x62,0xEE,0xCB,0x14,0x00,0x00,0x00 (vida: [0x00, 0x00, 0x07, 0xe8, 0x62, 0xee, 0xcb, 0x14])
		requestFrame.id = 0x7e0;
		memcpy(requestFrame.data.bytes, (const uint8_t[]){ 0x03, 0x22, 0xee, 0xcb, 0x00, 0x00, 0x00, 0x00 }, 8);
		responseId = 0x7e8;
		break;
	case Volvo_V50_Diesel:
		// Request: dlc=0x08 fid=0xFFFFE id=0x3FFFE ide=0x01 rtr=0x00 data=0xCD,0x11,0xA6,0x00,0x24,0x01,0x00,0x00 ([0x00, 0xf, 0xff, 0xfe, 0xcd, 0x11, 0xa6, 0x00, 0x24, 0x01, 0x00, 0x00])
		// Response: dlc=0x08 fid=0x400021 id=0x21 ide=0x01 rtr=0x00 data=0xCE,0x11,0xE6,0x00,0x24,0x03,0xFD,0x00 (vida: [0x00, 0x40, 0x00, 0x21, 0xce, 0x11, 0xe6, 0x00, 0x24, 0x03, 0xfd, 0x00])
		requestFrame.id = 0x3FFFE;
		requestFrame.extended = 0x01;
		memcpy(requestFrame.data.bytes, (const uint8_t[]){ 0xce, 0x11, 0xe6, 0x00, 0x24, 0x03, 0xfd, 0x00 }, 8);
Ejemplo n.º 2
0
BOOL CBranch_patcherDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	// Extra initialization here

	RECT cltRect;
	GetClientRect( &cltRect ),
	m_Display = new CRichEditCtrl();
	m_Display->Create( WS_CHILD|WS_VISIBLE|WS_BORDER|WS_HSCROLL|WS_VSCROLL|ES_AUTOHSCROLL|ES_AUTOVSCROLL|ES_MULTILINE,
					   CRect( 20, 180, cltRect.right-20, cltRect.bottom-20 ), this, 1 );

	// Initialize directories
	loadConfiguration();
	processCommandLine();
	displayTokens();

	EnteringTokens = false;
	m_SrcDirLabel = "Source Dir";
	m_TargetDirLabel = "Target Dir";
	UpdateData( false );
	((CButton*)GetDlgItem( IDC_DoPatch ))->EnableWindow( FALSE );

	return TRUE;  // return TRUE  unless you set the focus to a control
}
BuddyListBackgroundColorsWidget::BuddyListBackgroundColorsWidget(MainConfigurationWindow* mainWindow)
{
    createGui(mainWindow);
    loadConfiguration();

    connect(mainWindow, SIGNAL(configurationWindowApplied()), this, SLOT(configurationApplied()));
}
Ejemplo n.º 4
0
OsStatus ACDAudioManager::start(void)
{
   // Load the configuration
   loadConfiguration();

   return OS_SUCCESS;
}
Ejemplo n.º 5
0
void IOToaster::setup()
{
	// Set the pin configuration
	setupPins();

	// Open serial communication
	Serial.begin(9600);
	Serial.setTimeout(5000);	

	// Load the configuration
	if (isConfigured())
	{
		// Normal mode
		_setupMode = false;
		loadConfiguration();	
		connectServer();
		setActivityLedState(HIGH);		
	}
		
	else {
		// Setup mode
		setActivityLedState(LOW);
		_setupMode = true;		
		createServer();
	}
}
Ejemplo n.º 6
0
void createCommonObjects() {
	maska = goc_elementCreate( GOC_ELEMENT_MASK, 1, 3, MAPWIDTH, MAPHEIGHT, GOC_EFLAGA_PAINTED | GOC_EFLAGA_ENABLE,
			GOC_WHITE, GOC_HANDLER_SYSTEM );
	terrain = goc_elementCreate(GOC_ELEMENT_RAWMAP, 1, 1, MAPWIDTH, MAPHEIGHT,
			GOC_EFLAGA_PAINTED | GOC_EFLAGA_ENABLE, GOC_WHITE, maska);

	build = goc_elementCreate(GOC_ELEMENT_POSMAP, 1, 1, MAPWIDTH, MAPHEIGHT,
			GOC_EFLAGA_PAINTED | GOC_EFLAGA_ENABLE, GOC_WHITE, maska);
	// dodanie nasluchiwania oraz zmiana sposobu zwalniania punktow, ktore sa predefiniowane
	goc_elementSetFunc(build, GOC_FUNID_LISTENER, buildCommonListener);

	front = goc_elementCreate(GOC_ELEMENT_RAWMAP, 1, 1, MAPWIDTH, MAPHEIGHT,
			GOC_EFLAGA_PAINTED | GOC_EFLAGA_ENABLE, GOC_WHITE, maska);
	// definiuj wartosci
	loadConfiguration( terrain, build, front );

	goc_maskAddMap(maska, terrain);
	goc_maskAddMap(maska, build);
	goc_maskAddMap(maska, front);
	goc_maskCharSpace(maska, 2, 1);
	goc_elementSetFunc(maska, GOC_FUNID_LISTENER, mapaCommonListener);

	// przestrzen do opisywania
	labelDesc = goc_elementCreate( GOC_ELEMENT_LABEL, 50, 2, 30, 20, GOC_EFLAGA_PAINTED | GOC_EFLAGA_ENABLE,
			GOC_WHITE, GOC_HANDLER_SYSTEM );

}
Ejemplo n.º 7
0
Observables::Observables(Config* cfg,Hamiltonian *hamiltonian, Wavefunction *wavefunction):
    cfg(cfg),
    hamiltonian(hamiltonian),
    wavefunction(wavefunction)
{
    loadConfiguration();
}
Ejemplo n.º 8
0
Archivo: main.cpp Proyecto: Sun42/zia
int	main(void)
{
  signal(SIGINT, stopServer);
  Server		*server;
  unsigned short	portSSL, portHttp, portAdmin;
  XmlParser		parser;
  Configuration		ziaConf;

  parser.read("ZiaConf.xml", ziaConf);
  loadConfiguration(ziaConf, portSSL, portHttp, portAdmin);
  try
    {
      server = Server::getInstance(static_cast<const Dictionnary &>(ziaConf.getHive("Main")), portSSL, portHttp, portAdmin);
    }
  catch (const std::exception& e)
    {
      std::cerr << e.what() << std::endl;
      return (EXIT_FAILURE);
    }
  server->loadStartingPlugins(ziaConf.getHive("Plugins"));
  server->run();
  std::cerr << "DEBUG ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CA TERMINE PROPREMENT ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" << std::endl;
  Server::destroyInstance();
  return (EXIT_SUCCESS);
}
Ejemplo n.º 9
0
void Butter_translateMat(float dx, float dy, float dz) { 

  resetInPointer();
  writeInMemFloat(1.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);

  writeInMemFloat(0.0);
  writeInMemFloat(1.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);

  writeInMemFloat(0.0);
  writeInMemFloat(0.0);
  writeInMemFloat(1.0);
  writeInMemFloat(0.0);

  writeInMemFloat(dx);
  writeInMemFloat(dy);
  writeInMemFloat(dz);
  writeInMemFloat(1.0);

  Butter_a_processVec4(4);
  
  swapBufferDirection();
  confInputMuxes(conf_buf_0);
  loadConfiguration(1, &conf_1, 0);
  setMaxCount(1);
  enableContext(0);
  while(isActive());
  
  

}
Ejemplo n.º 10
0
void Butter_initTMat(){
  
  confInputMuxes(conf_buf_0);
  loadConfiguration(1, &conf_1, 0);
  resetInPointer();
  writeInMemFloat(1.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);

  writeInMemFloat(0.0);
  writeInMemFloat(1.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);

  writeInMemFloat(0.0);
  writeInMemFloat(0.0);
  writeInMemFloat(1.0);
  writeInMemFloat(0.0);

  writeInMemFloat(0.0);
  writeInMemFloat(0.0);
  writeInMemFloat(0.0);
  writeInMemFloat(1.0);
  setMaxCount(1);
  enableContext(0);
  while(isActive());

}  
Ejemplo n.º 11
0
void CompassMarks::init()
{
	// Because the plug-in has no configuration GUI, users rely on what's
	// written in the configuration file to know what can be configured.
	Q_ASSERT(conf);
	if (!conf->childGroups().contains("CompassMarks"))
		restoreDefaultConfiguration();

	loadConfiguration();

	try
	{
		addAction("actionShow_Compass_Marks", N_("Compass Marks"), N_("Compass marks"), "marksVisible");

		StelGui* gui = dynamic_cast<StelGui*>(StelApp::getInstance().getGui());
		if (gui != Q_NULLPTR)
		{
			toolbarButton = new StelButton(Q_NULLPTR,
						       QPixmap(":/compassMarks/bt_compass_on.png"),
						       QPixmap(":/compassMarks/bt_compass_off.png"),
						       QPixmap(":/graphicGui/glow32x32.png"),
						       "actionShow_Compass_Marks");
			gui->getButtonBar()->addButton(toolbarButton, "065-pluginsGroup");			
		}
		connect(GETSTELMODULE(LandscapeMgr), SIGNAL(cardinalsPointsDisplayedChanged(bool)), this, SLOT(cardinalPointsChanged(bool)));
		cardinalPointsState = false;

		setCompassMarks(displayedAtStartup);
	}
	catch (std::runtime_error& e)
	{
		qWarning() << "WARNING: unable create toolbar button for CompassMarks plugin: " << e.what();
	}
}
SMSMessageBuilder::SMSMessageBuilder(ConfigurationHandler *config)
{
    this->config = config;
    this->templateMessage = new SMSMessageBuilder::SMSMessage();
    initialize();
    loadConfiguration();
}
Ejemplo n.º 13
0
TouchScreen::TouchScreen()
{
    TOP_MARGIN = BOTTOM_MARGIN = RIGHT_MARGIN = LEFT_MARGIN = 33; // margins in %

    loadConfiguration();

    w = Device::getWidth();
    h = Device::getHeight();

    lpx = w * LEFT_MARGIN / 100;
    rpx = w * RIGHT_MARGIN / 100;
    tpx = h * TOP_MARGIN / 100;
    bpx = h * BOTTOM_MARGIN / 100;

    MIN_SWIPE_PIXELS = w * MIN_SWIPE / 100;
    LONG_TAP_ZONE_PIXELS = w * LONG_TAP_ZONE / 100;

    buttonState = 0;
    newButtonState = 0;
    lastEvent = 0;

    wasFocusInReader = true;
    isGestureEnabled = true;
    wasGestureEnabled = true;
    isLongTapHandled = false;
    isSimulatedClick = false;

    oldX = 0;
    oldY = 0;

    longTapTimer = new QTimer(this);
    longTapTimer->setSingleShot(true);
    connect(longTapTimer, SIGNAL(timeout()), this, SLOT(longTap()));
}
Ejemplo n.º 14
0
void CanBrake::setup() {
	TickHandler::getInstance()->detach(this);

	loadConfiguration();
	Throttle::setup();

	requestFrame.length = 0x08;
	requestFrame.rtr = 0x00;
	requestFrame.extended = 0x00;

	CanBrakeConfiguration *config = (CanBrakeConfiguration *)getConfiguration();
	switch (config->carType) {
	case Volvo_S80_Gas:
		// Request: dlc=0x8 fid=0x760 id=0x760 ide=0x0 rtr=0x0 data=0x03,0x22,0x2B,0x0D,0x00,0x00,0x00,0x00 (vida: [0x00, 0x00, 0x07, 0x60, 0x22, 0x2B, 0x0D])
		// Response: dlc=0x8 fid=0x768 id=0x768 ide=0x0 rtr=0x0 data=0x05,0x62,0x2B,0x0D,0x00,0x01,0x00,0x00 (vida: [0x00, 0x00, 0x07, 0x68, 0x62, 0x2B, 0x0D, 0x00, 0x01]), 6th byte
		requestFrame.id = 0x760;
		memcpy(requestFrame.data.bytes, (const uint8_t[]){ 0x03, 0x22, 0x2B, 0x0D, 0x00, 0x00, 0x00, 0x00 }, 8);
		responseId = 0x768;
		break;
	case Volvo_V50_Diesel:
		// Request: dlc=0x08 fid=0xFFFFE id=0x3FFFE ide=0x01 rtr=0x00 data=0xCD,0x11,0xA6,0x00,0x24,0x01,0x00,0x00 ([0x00, 0xf, 0xff, 0xfe, 0xcd, 0x11, 0xa6, 0x00, 0x24, 0x01, 0x00, 0x00])
		// Response: dlc=0x08 fid=0x400021 id=0x21 ide=0x01 rtr=0x00 data=0xCE,0x11,0xE6,0x00,0x24,0x03,0xFD,0x00 (vida: [0x00, 0x40, 0x00, 0x21, 0xce, 0x11, 0xe6, 0x00, 0x24, 0x03, 0xfd, 0x00])
//		requestFrame.id = 0x3FFFE;
//		requestFrame.ide = 0x01;
//		memcpy(requestFrame.data, (uint8_t[]){ 0xce, 0x11, 0xe6, 0x00, 0x24, 0x03, 0xfd, 0x00 }, 8);
//		responseId = 0x21;
//		responseExtended = true;
		break;
	default:
		Logger::error(CANBRAKEPEDAL, "no valid car type defined.");
	}
Ejemplo n.º 15
0
void BeeServer::initialize(Application& self)
{	
	loadConfiguration(); // load default configuration files, if present
	ServerApplication::initialize(self);
	_processName = Poco::Util::Application::instance().config().getString("app.no");
	
	
}
Ejemplo n.º 16
0
extern "C"  void Init(int argc,const char *argv[],pfun_RecvCheck fromSyn,sim61580irq irq)
{

	GenIRQ = irq;
	CheckRecv = fromSyn;
	loadConfiguration("configure.txt",false);

}
Ejemplo n.º 17
0
bool SelectDestination::Create(void)
{
    bool foundtheme = false;

    // Load the theme for this screen
    foundtheme = LoadWindowFromXML("mytharchive-ui.xml", "selectdestination", this);

    if (!foundtheme)
        return false;

    bool err = false;
    UIUtilE::Assign(this, m_createISOCheck, "makeisoimage_check", &err);
    UIUtilE::Assign(this, m_doBurnCheck, "burntodvdr_check", &err);
    UIUtilE::Assign(this, m_doBurnText, "burntodvdr_text", &err);
    UIUtilE::Assign(this, m_eraseDvdRwCheck, "erasedvdrw_check", &err);
    UIUtilE::Assign(this, m_eraseDvdRwText, "erasedvdrw_text", &err);
    UIUtilE::Assign(this, m_nextButton, "next_button", &err);
    UIUtilE::Assign(this, m_prevButton, "prev_button", &err);
    UIUtilE::Assign(this, m_cancelButton, "cancel_button", &err);
    UIUtilE::Assign(this, m_destinationSelector, "destination_selector", &err);
    UIUtilE::Assign(this, m_destinationText, "destination_text", &err);
    UIUtilE::Assign(this, m_findButton, "find_button", &err);
    UIUtilE::Assign(this, m_filenameEdit, "filename_edit", &err);
    UIUtilE::Assign(this, m_freespaceText, "freespace_text", &err);

    if (err)
    {
        LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'selectdestination'");
        return false;
    }

    connect(m_nextButton, SIGNAL(Clicked()), this, SLOT(handleNextPage()));
    connect(m_prevButton, SIGNAL(Clicked()), this, SLOT(handlePrevPage()));
    connect(m_cancelButton, SIGNAL(Clicked()), this, SLOT(handleCancel()));

    connect(m_destinationSelector, SIGNAL(itemSelected(MythUIButtonListItem*)),
            this, SLOT(setDestination(MythUIButtonListItem*)));

    for (int x = 0; x < ArchiveDestinationsCount; x++)
    {
        MythUIButtonListItem *item = new 
            MythUIButtonListItem(m_destinationSelector, tr(ArchiveDestinations[x].name));
        item->SetData(qVariantFromValue(ArchiveDestinations[x].type));
    }
    connect(m_findButton, SIGNAL(Clicked()), this, SLOT(handleFind()));

    connect(m_filenameEdit, SIGNAL(LosingFocus()), this,
            SLOT(filenameEditLostFocus()));

    BuildFocusList();

    SetFocusWidget(m_nextButton);

    loadConfiguration();

    return true;
}
Ejemplo n.º 18
0
void NavStars::restoreDefaultConfiguration(void)
{
	// Remove the whole section from the configuration file
	conf->remove("NavigationalStars");
	// Load the default values...
	loadConfiguration();
	// ... then save them.
	saveConfiguration();
}
Ejemplo n.º 19
0
bool ExportNative::Create(void)
{
    bool foundtheme = false;

    // Load the theme for this screen
    foundtheme = LoadWindowFromXML("mythnative-ui.xml", "exportnative", this);

    if (!foundtheme)
        return false;

    bool err = false;
    UIUtilE::Assign(this, m_nextButton, "next_button", &err);
    UIUtilE::Assign(this, m_prevButton, "prev_button", &err);
    UIUtilE::Assign(this, m_cancelButton, "cancel_button", &err);

    UIUtilE::Assign(this, m_titleText, "progtitle", &err);
    UIUtilE::Assign(this, m_datetimeText, "progdatetime", &err);
    UIUtilE::Assign(this, m_descriptionText, "progdescription", &err);
    UIUtilE::Assign(this, m_filesizeText, "filesize", &err);
    UIUtilE::Assign(this, m_nofilesText, "nofiles", &err);
    UIUtilE::Assign(this, m_sizeBar, "size_bar", &err);
    UIUtilE::Assign(this, m_archiveButtonList, "archivelist", &err);
    UIUtilE::Assign(this, m_addrecordingButton, "addrecording_button", &err);
    UIUtilE::Assign(this, m_addvideoButton, "addvideo_button", &err);

    UIUtilW::Assign(this, m_maxsizeText, "maxsize");
    UIUtilW::Assign(this, m_minsizeText, "minsize");
    UIUtilW::Assign(this, m_currsizeText, "currentsize");
    UIUtilW::Assign(this, m_currsizeErrText, "currentsize_error");

    if (err)
    {
        LOG(VB_GENERAL, LOG_ERR, "Cannot load screen 'exportnative'");
        return false;
    }

    connect(m_nextButton, SIGNAL(Clicked()), this, SLOT(handleNextPage()));
    connect(m_prevButton, SIGNAL(Clicked()), this, SLOT(handlePrevPage()));
    connect(m_cancelButton, SIGNAL(Clicked()), this, SLOT(handleCancel()));


    getArchiveList();
    connect(m_archiveButtonList, SIGNAL(itemSelected(MythUIButtonListItem *)),
            this, SLOT(titleChanged(MythUIButtonListItem *)));

    connect(m_addrecordingButton, SIGNAL(Clicked()), this, SLOT(handleAddRecording()));
    connect(m_addvideoButton, SIGNAL(Clicked()), this, SLOT(handleAddVideo()));

    BuildFocusList();

    SetFocusWidget(m_nextButton);

    loadConfiguration();

    return true;
}
Ejemplo n.º 20
0
void MyApp::initialize(Application &self)
{
    loadConfiguration();

    configureLog();

    self.addSubsystem(new MyAppSubsystem(&task_manager));

    Application::initialize(self);
}
Ejemplo n.º 21
0
Archivo: SDLApp.cpp Proyecto: dicta/ray
SDLApp::SDLApp(int argc, char** argv) :stopApp(false), surface(NULL), camera(NULL), animation(NULL) {
   if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) {
      fprintf(stderr, "Couldn't initialize SDL: %s\n", SDL_GetError());
      exit(1);
   }

   IMG_Init(IMG_INIT_JPG | IMG_INIT_PNG);

   loadConfiguration(argc, argv);
}
Ejemplo n.º 22
0
Archivo: nosh.c Proyecto: jparris/nosh
int main(void) {
    char *line;
    config_t config = loadConfiguration("./conf/config");
    
    while((line = linenoise("nosh: ")) != NULL) {
        parms = parse(line, config);
        exec(parms, config);
    }
    free(line);
}
Ejemplo n.º 23
0
void CanPIDListener::setup() {
	//TickHandler::getInstance()->detach(this);

	loadConfiguration();
	Device::setup();

	//TODO: FIXME Quickly coded as hard coded values. This is naughty. 
	CanHandler::getInstanceEV()->attach(this, 0x7DF, 0x7DF, false);
	CanHandler::getInstanceEV()->attach(this, 0x7E0, 0x7E0, false);
	//TickHandler::getInstance()->attach(this, CFG_TICK_INTERVAL_CAN_THROTTLE);
}
Ejemplo n.º 24
0
void DCDCController::setup()
{
	TickHandler::getInstance()->detach(this);

	loadConfiguration();
	Device::setup(); // run the parent class version of this function

	     CanHandler::getInstanceCar()->attach(this, 0x1D5, 0x7ff, false);
        //Watch for 0x1D5 messages from Delphi converter
	TickHandler::getInstance()->attach(this, CFG_TICK_INTERVAL_DCDC);
}
Ejemplo n.º 25
0
void CompassMarks::restoreDefaultConfiguration()
{
	Q_ASSERT(conf);
	// Remove the whole section from the configuration file
	conf->remove("CompassMarks");
	// Load the default values...
	loadConfiguration();	
	// But this doesn't save the color, so...
	conf->beginGroup("CompassMarks");
	conf->setValue("mark_color", "1,0,0");
	conf->endGroup();
}
Ejemplo n.º 26
0
const KaaRootConfiguration& ConfigurationManager::getConfiguration()
{
    KAA_MUTEX_LOCKING("configurationGuard_");
    KAA_MUTEX_UNIQUE_DECLARE(configurationGuardLock, configurationGuard_);
    KAA_MUTEX_LOCKED("configurationGuard_");

    if (!isConfigurationLoaded_) {
        loadConfiguration();
    }

    return configuration_;
}
Ejemplo n.º 27
0
void ConfigurationManager::init()
{
    KAA_MUTEX_LOCKING("configurationGuard_");
    KAA_MUTEX_UNIQUE_DECLARE(configurationGuardLock, configurationGuard_);
    KAA_MUTEX_LOCKED("configurationGuard_");

    if (!isConfigurationLoaded_) {
        loadConfiguration();
    }

    notifySubscribers(configuration_);
}
Ejemplo n.º 28
0
	void initialize(Application& self)
	{
		loadConfiguration(); // 加载默认的配置文件,如果存在的话 
		
		Context::Ptr ctx=new Context(Context::CLIENT_USE,"",Context::VERIFY_NONE);
		
		SSLManager& man=SSLManager::instance();
		SSLManager::PrivateKeyPassphraseHandlerPtr pkey=man.clientPassphraseHandler();
		man.initializeClient(pkey,new AcceptCertificateHandler(false),ctx);
		
		ServerApplication::initialize(self);
	}
Ejemplo n.º 29
0
LoadSettings::LoadSettings(QObject *parent):QObject(parent)
{
    KScreen::GetConfigOperation *operation = new KScreen::GetConfigOperation();
    connect(operation, &KScreen::GetConfigOperation::finished, [this, operation] (KScreen::ConfigOperation *op) {
        KScreen::GetConfigOperation *configOp = qobject_cast<KScreen::GetConfigOperation *>(op);
        if (configOp)
        {
            loadConfiguration(configOp->config());
            operation->deleteLater();
        }
    });
}
Ejemplo n.º 30
0
//--------------------------------------------------------------
void Animation::loadConfigurationNext()
{
	if (m_configurations.size()>1 && m_configurationCurrent!="")
	{
		int index = getConfigurationIndex(m_configurationCurrent);
		if (index>=0){
			index = (index+1)%m_configurations.size();
			m_configurationCurrent = m_configurations[index];
			loadConfiguration(m_configurationCurrent);
		}
	}
}