AntProjectPart::AntProjectPart(QObject *parent, const char *name, const QStringList &) : KDevBuildTool(&data, parent, name ? name : "AntProjectPart") { setInstance(AntProjectFactory::instance()); setXMLFile("kdevantproject.rc"); m_buildProjectAction = new KAction(i18n("&Build Project"), "make_kdevelop", Key_F8, this, SLOT(slotBuild()), actionCollection(), "build_build" ); m_buildProjectAction->setToolTip(i18n("Build project")); m_buildProjectAction->setWhatsThis(i18n("<b>Build project</b><p>Executes <b>ant dist</b> command to build the project.")); KActionMenu *menu = new KActionMenu(i18n("Build &Target"), actionCollection(), "build_target" ); menu->setToolTip(i18n("Build target")); menu->setWhatsThis(i18n("<b>Build target</b><p>Executes <b>ant target_name</b> command to build the specified target.")); m_targetMenu = menu->popupMenu(); connect(m_targetMenu, SIGNAL(activated(int)), this, SLOT(slotTargetMenuActivated(int))); connect(core(), SIGNAL(projectConfigWidget(KDialogBase*)), this, SLOT(projectConfigWidget(KDialogBase*))); connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), this, SLOT(contextMenu(QPopupMenu *, const Context *))); m_antOptionsWidget = 0; }
CBuildToolbarsetDlg::CBuildToolbarsetDlg() { m_ui.setupUi(this); setWindowIcon(QIcon(":/images/fmlideico.ico")); QDir destDir( FmlCoreSettings::getDataDir() ); QString destDirPath = destDir.absolutePath(); if( !destDir.exists( destDirPath ) ) destDir.mkpath( destDirPath ); m_ui.m_path->insert( destDirPath ); destDir.setPath(FmlCoreSettings::getXmlBtnDir()); destDirPath = destDir.absolutePath(); if( !destDir.exists( destDirPath ) ) destDir.mkpath( destDirPath ); #ifdef Q_WS_MAC QSettings settings(QSettings::IniFormat, QSettings::UserScope, __COMPANY_DOMAIN_, QCoreApplication::applicationName() ); #else QSettings settings(QSettings::IniFormat, QSettings::UserScope, __COMPANY_NAME__, QCoreApplication::applicationName() ); #endif QStringList files = settings.value("XmlBtn/recentFileList").toStringList(); m_ui.m_src->addItems( files ); if( m_ui.m_src->count() == 0 ) { m_ui.btnDelete->setEnabled(false); m_ui.btnClear->setEnabled(false); m_ui.btnBuild->setEnabled(false); } m_ui.m_msg->setReadOnly(true); connect(m_ui.btnBrowse, SIGNAL(clicked()), this, SLOT(slotBrowse())); connect(m_ui.btnAdd, SIGNAL(clicked()), this, SLOT(slotAdd())); connect(m_ui.btnDelete, SIGNAL(clicked()), this, SLOT(slotDelete())); connect(m_ui.btnClear, SIGNAL(clicked()), this, SLOT(slotClear())); connect(m_ui.btnBuild, SIGNAL(clicked()), this, SLOT(slotBuild())); }