|
@@ -27,11 +27,15 @@
|
|
#include "ktigcc.h"
|
|
#include "ktigcc.h"
|
|
#include "toolprops.h"
|
|
#include "toolprops.h"
|
|
|
|
|
|
-void ToolsDialog::init()
|
|
|
|
|
|
+ToolsDialog::ToolsDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
|
|
|
|
+ : QDialog(parent, name, modal, fl)
|
|
{
|
|
{
|
|
|
|
+ setupUi(this);
|
|
tempTools=tools;
|
|
tempTools=tools;
|
|
listView->clear();
|
|
listView->clear();
|
|
listView->setSorting(-1);
|
|
listView->setSorting(-1);
|
|
|
|
+ listView->header()->setClickEnabled(false);
|
|
|
|
+ listView->header()->setResizeEnabled(false);
|
|
Tools::iterator it;
|
|
Tools::iterator it;
|
|
for(it=tempTools.begin(); it!=tempTools.end(); ++it)
|
|
for(it=tempTools.begin(); it!=tempTools.end(); ++it)
|
|
new K3ListViewItem(listView,listView->lastItem(),(*it).title,
|
|
new K3ListViewItem(listView,listView->lastItem(),(*it).title,
|
|
@@ -39,6 +43,10 @@ void ToolsDialog::init()
|
|
(*it).runInTerminal?"Yes":"No");
|
|
(*it).runInTerminal?"Yes":"No");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ToolsDialog::~ToolsDialog()
|
|
|
|
+{
|
|
|
|
+}
|
|
|
|
+
|
|
void ToolsDialog::addButton_clicked()
|
|
void ToolsDialog::addButton_clicked()
|
|
{
|
|
{
|
|
toolIndex=-1;
|
|
toolIndex=-1;
|
|
@@ -85,35 +93,8 @@ void ToolsDialog::accept()
|
|
QDialog::accept();
|
|
QDialog::accept();
|
|
}
|
|
}
|
|
|
|
|
|
-/*
|
|
|
|
- * Constructs a ToolsDialog as a child of 'parent', with the
|
|
|
|
- * name 'name' and widget flags set to 'f'.
|
|
|
|
- *
|
|
|
|
- * The dialog will by default be modeless, unless you set 'modal' to
|
|
|
|
- * true to construct a modal dialog.
|
|
|
|
- */
|
|
|
|
-ToolsDialog::ToolsDialog(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
|
|
|
|
- : QDialog(parent, name, modal, fl)
|
|
|
|
-{
|
|
|
|
- setupUi(this);
|
|
|
|
-
|
|
|
|
- init();
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
- * Destroys the object and frees any allocated resources
|
|
|
|
- */
|
|
|
|
-ToolsDialog::~ToolsDialog()
|
|
|
|
-{
|
|
|
|
- // no need to delete child widgets, Qt does it all for us
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-/*
|
|
|
|
- * Sets the strings of the subwidgets using the current
|
|
|
|
- * language.
|
|
|
|
- */
|
|
|
|
void ToolsDialog::languageChange()
|
|
void ToolsDialog::languageChange()
|
|
{
|
|
{
|
|
- retranslateUi(this);
|
|
|
|
|
|
+ retranslateUi(this);
|
|
}
|
|
}
|
|
|
|
|