nftdialog::nftdialog(QWidget* parent, QString lang, QString templateDir) : QDialog(parent) { setupUi(this); setModal(true); settings = new nftsettings(lang, templateDir); setWindowIcon(loadIcon("AppIcon.png")); // context menu removeAction = new QAction(tr("&Remove"), tnailGrid); openAction = new QAction(tr("&Open"), tnailGrid); tnailGrid->addAction(removeAction); tnailGrid->addAction(openAction); setupAbout(); toolBox->setItemIcon(0, loadIcon("16/information.png")); toolBox->setItemIcon(1, loadIcon("16/image-x-generic.png")); toolBox->setItemIcon(2, loadIcon("16/help-browser.png")); tnailGrid->setIconSize(QSize(60, 60)); // Signals and Slots Connections connect(categoryList, SIGNAL(itemSelectionChanged()), this, SLOT(setTNails())); connect(tnailGrid, SIGNAL(itemSelectionChanged()), this, SLOT(setInfo())); connect(tnailGrid, SIGNAL(itemDoubleClicked(QListWidgetItem*)), this, SLOT(accept())); connect(removeAction, SIGNAL(triggered()), this, SLOT(removeTemplate())); connect(openAction, SIGNAL(triggered()), this, SLOT(accept())); setupListItems(); setupCategories(); }
MenuManager::MenuManager(Logic* logic) { this->logic = logic; setupMainMenu(); setupAbout(); setupLostLife(); }