void prefDialog::connectSlots() { connect(ui.okPushButton, SIGNAL(clicked()), this, SLOT(onOK()) ); connect(ui.cancelPushButton, SIGNAL(clicked()), this, SLOT(onCancel()) ); connect(ui.selectsoundPushButton, SIGNAL(clicked()), this, SLOT(onSound()) ); connect(ui.selectPlayerPushButton, SIGNAL(clicked()), this, SLOT(onPlayer()) ); connect(ui.choosehttpPushButton, SIGNAL(clicked()), this, SLOT(onHttp()) ); connect(ui.browsePushButton, SIGNAL(clicked()), this, SLOT(onBrowse()) ); connect(ui.imagePushButton, SIGNAL(clicked()), this, SLOT(onImage()) ); connect(ui.poolPushButton, SIGNAL(clicked()), this, SLOT(onPool()) ); connect(ui.resetPushButton, SIGNAL(clicked()), this, SLOT(onReset()) ); }
void SysPref::setupLaunchers() { // Personal section AmeIconLink *appearance = new AmeIconLink("Appearance", ":/icons/object/appearance.png", "appearance", ""); connect(appearance, SIGNAL(clicked()), this, SLOT(onAppearance())); AmeIconLink *desktop = new AmeIconLink("Desktop\nWallpaper", ":/icons/object/desktop.png", "desktop", ""); connect(desktop, SIGNAL(clicked()), this, SLOT(onWallpaper())); //AmeIconLink *screensaver = new AmeIconLink("Screen\nSaver", path+"screensaver.png", "screensaver", ""); AmeIconLink *dock = new AmeIconLink("Dock", ":/icons/object/dock.png", "dock", ""); connect(dock, SIGNAL(clicked()), this, SLOT(onDock())); AmeIconLink *intnl = new AmeIconLink("Language\nsettings", ":/icons/object/language.png", "intnl", ""); connect(intnl, SIGNAL(clicked()), this, SLOT(onIntnl())); personal->addIcon(appearance); personal->addIcon(desktop); //personal->addIcon(screensaver); personal->addIcon(dock); personal->addIcon(intnl); browser->addSection(personal); // Hardware section AmeIconLink *asound = new AmeIconLink("Sound", ":/icons/object/sound.png", "sound", ""); hardware->addIcon(asound); connect(asound, SIGNAL(clicked()), this, SLOT(onSound())); browser->addSection(hardware); // System section AmeIconLink *aclock = new AmeIconLink("Date &\nTime", ":/icons/object/date-time.png", "datetime", ""); system->addIcon(aclock); connect(aclock, SIGNAL(clicked()), this, SLOT(onDateTime())); browser->addSection(system); browser->addStretch(); }