Rename KIcon to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 9d6a3e0894
commit 799fae5fee

@ -73,11 +73,11 @@ AddApplicationDialog::~AddApplicationDialog()
void AddApplicationDialog::iconClicked() void AddApplicationDialog::iconClicked()
{ {
KIconLoader *loader = AutoProjectFactory::instance()->iconLoader(); TDEIconLoader *loader = AutoProjectFactory::instance()->iconLoader();
TQString name = KIconDialog::getIcon(KIcon::Desktop); TQString name = TDEIconDialog::getIcon(TDEIcon::Desktop);
if (!name.isNull()) { if (!name.isNull()) {
iconName = name; iconName = name;
icon_button->setPixmap(loader->loadIcon(name, KIcon::Desktop)); icon_button->setPixmap(loader->loadIcon(name, TDEIcon::Desktop));
} }
} }

@ -84,7 +84,7 @@ void AddExistingDirectoriesDialog::init()
{ {
progressBar->hide(); progressBar->hide();
importView->setMode ( KIconView::Select ); importView->setMode ( TDEIconView::Select );
importView->setItemsMovable ( false ); importView->setItemsMovable ( false );
connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) ); connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) );

@ -125,7 +125,7 @@ void AddExistingFilesDialog::init()
{ {
progressBar->hide(); progressBar->hide();
importView->setMode ( KIconView::Select ); importView->setMode ( TDEIconView::Select );
importView->setItemsMovable ( false ); importView->setItemsMovable ( false );
connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) ); connect ( okButton, TQT_SIGNAL ( clicked () ), this, TQT_SLOT ( slotOk () ) );

@ -88,7 +88,7 @@ void AddIconDialog::accept()
TQString destpath = destdir + "/" + name; TQString destpath = destdir + "/" + name;
TQString size = size_combo->currentText(); TQString size = size_combo->currentText();
TQString unknown = KIconTheme::defaultThemeName()+ "/" + size + "x" + size + "/mimetypes/unknown.png"; TQString unknown = TDEIconTheme::defaultThemeName()+ "/" + size + "x" + size + "/mimetypes/unknown.png";
TQString templateFileName = locate("icon", unknown); TQString templateFileName = locate("icon", unknown);
kdDebug(9020) << "Unknown: " << unknown << ", template: " << templateFileName << endl; kdDebug(9020) << "Unknown: " << unknown << ", template: " << templateFileName << endl;

@ -93,11 +93,11 @@ void AddServiceDialog::updateProperties()
void AddServiceDialog::iconClicked() void AddServiceDialog::iconClicked()
{ {
KIconLoader *loader = AutoProjectFactory::instance()->iconLoader(); TDEIconLoader *loader = AutoProjectFactory::instance()->iconLoader();
TQString name = KIconDialog::getIcon(KIcon::Desktop); TQString name = TDEIconDialog::getIcon(TDEIcon::Desktop);
if (!name.isNull()) { if (!name.isNull()) {
iconName = name; iconName = name;
icon_button->setPixmap(loader->loadIcon(name, KIcon::Desktop)); icon_button->setPixmap(loader->loadIcon(name, TDEIcon::Desktop));
} }
} }

@ -193,14 +193,14 @@ CustomProjectPart::~CustomProjectPart()
void CustomProjectPart::projectConfigWidget( KDialogBase *dlg ) void CustomProjectPart::projectConfigWidget( KDialogBase *dlg )
{ {
TQVBox *vbox; TQVBox *vbox;
vbox = dlg->addVBoxPage( i18n( "Custom Manager" ), i18n( "Custom Manager" ), BarIcon( "make", KIcon::SizeMedium ) ); vbox = dlg->addVBoxPage( i18n( "Custom Manager" ), i18n( "Custom Manager" ), BarIcon( "make", TDEIcon::SizeMedium ) );
CustomManagerWidget *w0 = new CustomManagerWidget( this, vbox ); CustomManagerWidget *w0 = new CustomManagerWidget( this, vbox );
connect( dlg, TQT_SIGNAL( okClicked() ), w0, TQT_SLOT( accept() ) ); connect( dlg, TQT_SIGNAL( okClicked() ), w0, TQT_SLOT( accept() ) );
vbox = dlg->addVBoxPage( i18n( "Run Options" ), i18n( "Run Options" ), BarIcon( "make", KIcon::SizeMedium ) ); vbox = dlg->addVBoxPage( i18n( "Run Options" ), i18n( "Run Options" ), BarIcon( "make", TDEIcon::SizeMedium ) );
RunOptionsWidget *w1 = new RunOptionsWidget( *projectDom(), "/kdevcustomproject", buildDirectory(), vbox ); RunOptionsWidget *w1 = new RunOptionsWidget( *projectDom(), "/kdevcustomproject", buildDirectory(), vbox );
connect( dlg, TQT_SIGNAL( okClicked() ), w1, TQT_SLOT( accept() ) ); connect( dlg, TQT_SIGNAL( okClicked() ), w1, TQT_SLOT( accept() ) );
vbox = dlg->addVBoxPage( i18n( "Build Options" ), i18n( "Build Options" ), BarIcon( "make", KIcon::SizeMedium ) ); vbox = dlg->addVBoxPage( i18n( "Build Options" ), i18n( "Build Options" ), BarIcon( "make", TDEIcon::SizeMedium ) );
TQTabWidget *buildtab = new TQTabWidget( vbox ); TQTabWidget *buildtab = new TQTabWidget( vbox );
CustomBuildOptionsWidget *w2 = new CustomBuildOptionsWidget( *projectDom(), buildtab ); CustomBuildOptionsWidget *w2 = new CustomBuildOptionsWidget( *projectDom(), buildtab );

@ -400,7 +400,7 @@ void PascalProjectPart::projectConfigWidget( KDialogBase * dlg )
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
connect( dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(loadProjectConfig()) ); connect( dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(loadProjectConfig()) );
vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", KIcon::SizeMedium )); vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", TDEIcon::SizeMedium ));
RunOptionsWidget *w3 = new RunOptionsWidget(*projectDom(), "/kdevpascalproject", buildDirectory(), vbox); RunOptionsWidget *w3 = new RunOptionsWidget(*projectDom(), "/kdevpascalproject", buildDirectory(), vbox);
connect( dlg, TQT_SIGNAL(okClicked()), w3, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w3, TQT_SLOT(accept()) );

@ -270,13 +270,13 @@ TQString TrollProjectPart::makeEnvironment()
void TrollProjectPart::projectConfigWidget(KDialogBase *dlg) void TrollProjectPart::projectConfigWidget(KDialogBase *dlg)
{ {
TQVBox *vbox; TQVBox *vbox;
vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", KIcon::SizeMedium )); vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", TDEIcon::SizeMedium ));
RunOptionsWidget *optdlg = new RunOptionsWidget(*projectDom(), "/kdevtrollproject", buildDirectory(), vbox); RunOptionsWidget *optdlg = new RunOptionsWidget(*projectDom(), "/kdevtrollproject", buildDirectory(), vbox);
vbox = dlg->addVBoxPage(i18n("Make Options"), i18n("Make Options"), BarIcon( "make", KIcon::SizeMedium )); vbox = dlg->addVBoxPage(i18n("Make Options"), i18n("Make Options"), BarIcon( "make", TDEIcon::SizeMedium ));
MakeOptionsWidget *w4 = new MakeOptionsWidget(*projectDom(), "/kdevtrollproject", vbox); MakeOptionsWidget *w4 = new MakeOptionsWidget(*projectDom(), "/kdevtrollproject", vbox);
vbox = dlg->addVBoxPage(i18n("TQMake Manager"), i18n("TQMake Manager"), BarIcon( "make", KIcon::SizeMedium )); vbox = dlg->addVBoxPage(i18n("TQMake Manager"), i18n("TQMake Manager"), BarIcon( "make", TDEIcon::SizeMedium ));
QMakeOptionsWidget *qm = new QMakeOptionsWidget( projectDirectory(), *projectDom(), "/kdevtrollproject", vbox); QMakeOptionsWidget *qm = new QMakeOptionsWidget( projectDirectory(), *projectDom(), "/kdevtrollproject", vbox);

@ -72,7 +72,7 @@ ScriptProjectPart::~ScriptProjectPart()
void ScriptProjectPart::projectConfigWidget(KDialogBase *dlg) void ScriptProjectPart::projectConfigWidget(KDialogBase *dlg)
{ {
TQVBox *vbox; TQVBox *vbox;
vbox = dlg->addVBoxPage(i18n("Script Project Options"), i18n("Script Project Options"), BarIcon("tdevelop", KIcon::SizeMedium)); vbox = dlg->addVBoxPage(i18n("Script Project Options"), i18n("Script Project Options"), BarIcon("tdevelop", TDEIcon::SizeMedium));
ScriptOptionsWidget *w = new ScriptOptionsWidget(this, vbox); ScriptOptionsWidget *w = new ScriptOptionsWidget(this, vbox);
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
} }

@ -1126,7 +1126,7 @@ and capable of more functionality than what Qt alone is offering. The tdeui libr
TDEListView: a more powerful version of <classname>QListView</classname> TDEListView: a more powerful version of <classname>QListView</classname>
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
KIconView: a graphical viewer of icon files TDEIconView: a graphical viewer of icon files
</para></listitem> </para></listitem>
</orderedlist> </orderedlist>
</para> </para>

@ -311,15 +311,15 @@ Image processing - icon loading and manipulating.
<itemizedlist> <itemizedlist>
<listitem><formalpara><title><ulink url="kdeapi:tdecore/KIconLoader">KIconLoader</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEIconLoader">TDEIconLoader</ulink></title>
<para> <para>
Loads icons in a theme-conforming way. Loads icons in a theme-conforming way.
</para> </para>
</formalpara></listitem> </formalpara></listitem>
<listitem><formalpara><title><ulink url="kdeapi:tdecore/KIconTheme">KIconTheme</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdecore/TDEIconTheme">TDEIconTheme</ulink></title>
<para> <para>
Helper classes for KIconLoader. Helper classes for TDEIconLoader.
</para> </para>
</formalpara></listitem> </formalpara></listitem>
@ -413,7 +413,7 @@ A variant of <classname>QListBox</classname> that honors KDE's system-wide setti
</para> </para>
</formalpara></listitem> </formalpara></listitem>
<listitem><formalpara><title><ulink url="kdeapi:tdeui/TDEListView">KIconView</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdeui/TDEListView">TDEIconView</ulink></title>
<para> <para>
A variant of <classname>QIconView</classname> that honors KDE's system-wide settings. A variant of <classname>QIconView</classname> that honors KDE's system-wide settings.
</para> </para>
@ -512,7 +512,7 @@ A font selection dialog.
</para> </para>
</formalpara></listitem> </formalpara></listitem>
<listitem><formalpara><title><ulink url="kdeapi:tdefile/KIconDialog">KIconDialog</ulink></title> <listitem><formalpara><title><ulink url="kdeapi:tdefile/TDEIconDialog">TDEIconDialog</ulink></title>
<para> <para>
An icon selection dialog. An icon selection dialog.
</para> </para>

@ -494,7 +494,7 @@ When you &RMB; click on a <emphasis>file name</emphasis> in the detail view the
The <guimenuitem>CVS</guimenuitem> item offers a variety of CVS operations on the file. The <guimenuitem>CVS</guimenuitem> item offers a variety of CVS operations on the file.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
The <guimenuitem>Open With</guimenuitem> item allows you to open the file with a variety of editors or with any application at all (&eg; you can open the icon file in our example with <application>KIcon</application>). The <guimenuitem>Open With</guimenuitem> item allows you to open the file with a variety of editors or with any application at all (&eg; you can open the icon file in our example with <application>TDEIcon</application>).
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
The <guimenuitem>Perforce</guimenuitem> item is used for similar operations as in CVS using the commercial <quote><application>Perforce</application></quote> version control system. The <guimenuitem>Perforce</guimenuitem> item is used for similar operations as in CVS using the commercial <quote><application>Perforce</application></quote> version control system.

@ -32,7 +32,7 @@ EditorChooserPart::~EditorChooserPart()
void EditorChooserPart::configWidget(KDialogBase *dlg) void EditorChooserPart::configWidget(KDialogBase *dlg)
{ {
TQVBox *vbox = dlg->addVBoxPage(i18n("Editor"), i18n("Editor"), BarIcon("kate", KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage(i18n("Editor"), i18n("Editor"), BarIcon("kate", TDEIcon::SizeMedium) );
EditorChooserWidget *w = new EditorChooserWidget(vbox); EditorChooserWidget *w = new EditorChooserWidget(vbox);
connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept())); connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
} }

@ -68,7 +68,7 @@ void VisualBoyAdvancePart::slotExecute(){
void VisualBoyAdvancePart::projectConfigWidget(KDialogBase *dlg){ void VisualBoyAdvancePart::projectConfigWidget(KDialogBase *dlg){
TQVBox *vbox; TQVBox *vbox;
vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", KIcon::SizeMedium )); vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", TDEIcon::SizeMedium ));
VBAConfigWidget* w = new VBAConfigWidget(this,vbox); VBAConfigWidget* w = new VBAConfigWidget(this,vbox);
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
} }

@ -2,7 +2,7 @@ KDevDesigner is a port of Qt Designer (code taken from Qt 3.3 distribution) to K
1) XML GUI 1) XML GUI
2) KParts 2) KParts
3) KFileDialog 3) KFileDialog
4) KIconLoader 4) TDEIconLoader
KDevDesigner consists of a part and a shell. KDevDesigner consists of a part and a shell.
Part can be used in Konqueror and KDevelop to edit and view ui files and projects. Part can be used in Konqueror and KDevelop to edit and view ui files and projects.

@ -253,7 +253,7 @@ void ProblemReporter::configure()
void ProblemReporter::configWidget( KDialogBase* dlg ) void ProblemReporter::configWidget( KDialogBase* dlg )
{ {
kdDebug() << "ProblemReporter::configWidget()" << endl; kdDebug() << "ProblemReporter::configWidget()" << endl;
TQVBox *vbox = dlg->addVBoxPage(i18n("Ada Parsing"), i18n("Ada Parsing"), BarIcon( "source", KIcon::SizeMedium )); TQVBox *vbox = dlg->addVBoxPage(i18n("Ada Parsing"), i18n("Ada Parsing"), BarIcon( "source", TDEIcon::SizeMedium ));
ConfigureProblemReporter* w = new ConfigureProblemReporter( vbox ); ConfigureProblemReporter* w = new ConfigureProblemReporter( vbox );
connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept())); connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(configure())); connect(dlg, TQT_SIGNAL(okClicked()), this, TQT_SLOT(configure()));

@ -50,7 +50,7 @@ public:
Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0); Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0);
TQString configPageName(uint) const { return i18n("%{APPNAME}"); }; TQString configPageName(uint) const { return i18n("%{APPNAME}"); };
TQString configPageFullName(uint) const { return i18n("Configure KatePlugin%{APPNAME}"); }; TQString configPageFullName(uint) const { return i18n("Configure KatePlugin%{APPNAME}"); };
TQPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const { return 0L; }; TQPixmap configPagePixmap (uint number = 0, int size = TDEIcon::SizeSmall) const { return 0L; };
public slots: public slots:
void slotInsertHello(); void slotInsertHello();

@ -53,7 +53,7 @@ void %{APPNAME}::setupActions()
TDEStandardAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); TDEStandardAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection());
// custom menu and menu item - the slot is in the class %{APPNAME}View // custom menu and menu item - the slot is in the class %{APPNAME}View
TDEAction *custom = new TDEAction(KIcon("colorize"), i18n("Swi&tch Colors"), this); TDEAction *custom = new TDEAction(TDEIcon("colorize"), i18n("Swi&tch Colors"), this);
actionCollection()->addAction( TQLatin1String("switch_action"), custom ); actionCollection()->addAction( TQLatin1String("switch_action"), custom );
connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors())); connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors()));
} }

@ -436,7 +436,7 @@ void CppSupportPart::projectConfigWidget( KDialogBase* dlg )
TQVBox * vbox = 0; TQVBox * vbox = 0;
vbox = dlg->addVBoxPage( i18n( "C++ Support" ), i18n( "C++ Support" ), vbox = dlg->addVBoxPage( i18n( "C++ Support" ), i18n( "C++ Support" ),
BarIcon( info() ->icon(), KIcon::SizeMedium ) ); BarIcon( info() ->icon(), TDEIcon::SizeMedium ) );
CCConfigWidget* w = new CCConfigWidget( this, vbox ); CCConfigWidget* w = new CCConfigWidget( this, vbox );
connect( dlg, TQT_SIGNAL( okClicked( ) ), w, TQT_SLOT( accept( ) ) ); connect( dlg, TQT_SIGNAL( okClicked( ) ), w, TQT_SLOT( accept( ) ) );
} }
@ -444,12 +444,12 @@ void CppSupportPart::projectConfigWidget( KDialogBase* dlg )
void CppSupportPart::configWidget( KDialogBase *dlg ) void CppSupportPart::configWidget( KDialogBase *dlg )
{ {
TQVBox * vbox = dlg->addVBoxPage( i18n( "C++ Class Generator" ), i18n( "C++ Class Generator" ), TQVBox * vbox = dlg->addVBoxPage( i18n( "C++ Class Generator" ), i18n( "C++ Class Generator" ),
BarIcon( info() ->icon(), KIcon::SizeMedium ) ); BarIcon( info() ->icon(), TDEIcon::SizeMedium ) );
ClassGeneratorConfig *w = new ClassGeneratorConfig( vbox, "classgenerator config widget" ); ClassGeneratorConfig *w = new ClassGeneratorConfig( vbox, "classgenerator config widget" );
connect( dlg, TQT_SIGNAL( okClicked() ), w, TQT_SLOT( storeConfig() ) ); connect( dlg, TQT_SIGNAL( okClicked() ), w, TQT_SLOT( storeConfig() ) );
vbox = dlg->addVBoxPage(i18n("C++ Parsing"), i18n("C++ Parsing"), vbox = dlg->addVBoxPage(i18n("C++ Parsing"), i18n("C++ Parsing"),
BarIcon( "source_cpp", KIcon::SizeMedium) ); BarIcon( "source_cpp", TDEIcon::SizeMedium) );
ConfigureProblemReporter* ww = new ConfigureProblemReporter( vbox ); ConfigureProblemReporter* ww = new ConfigureProblemReporter( vbox );
ww->setPart( this ); ww->setPart( this );
connect(dlg, TQT_SIGNAL(okClicked()), ww, TQT_SLOT(accept())); connect(dlg, TQT_SIGNAL(okClicked()), ww, TQT_SLOT(accept()));

@ -560,7 +560,7 @@ void DebuggerPart::contextEvaluate()
void DebuggerPart::projectConfigWidget(KDialogBase *dlg) void DebuggerPart::projectConfigWidget(KDialogBase *dlg)
{ {
TQVBox *vbox = dlg->addVBoxPage(i18n("Debugger"), i18n("Debugger"), BarIcon( info()->icon(), KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage(i18n("Debugger"), i18n("Debugger"), BarIcon( info()->icon(), TDEIcon::SizeMedium) );
DebuggerConfigWidget *w = new DebuggerConfigWidget(this, vbox, "debugger config widget"); DebuggerConfigWidget *w = new DebuggerConfigWidget(this, vbox, "debugger config widget");
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
connect( dlg, TQT_SIGNAL(finished()), controller, TQT_SLOT(configure()) ); connect( dlg, TQT_SIGNAL(finished()), controller, TQT_SLOT(configure()) );

@ -157,7 +157,7 @@ void FortranSupportPart::slotFtnchek()
void FortranSupportPart::projectConfigWidget(KDialogBase *dlg) void FortranSupportPart::projectConfigWidget(KDialogBase *dlg)
{ {
TQVBox *vbox = dlg->addVBoxPage(i18n("Ftnchek"), i18n("Ftnchek"), BarIcon("tdevelop", KIcon::SizeMedium)); TQVBox *vbox = dlg->addVBoxPage(i18n("Ftnchek"), i18n("Ftnchek"), BarIcon("tdevelop", TDEIcon::SizeMedium));
FtnchekConfigWidget *w = new FtnchekConfigWidget(*projectDom(), vbox, "ftnchek config widget"); FtnchekConfigWidget *w = new FtnchekConfigWidget(*projectDom(), vbox, "ftnchek config widget");
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
} }

@ -208,7 +208,7 @@ void PHPSupportPart::slotConfigStored() {
} }
void PHPSupportPart::projectConfigWidget(KDialogBase *dlg) { void PHPSupportPart::projectConfigWidget(KDialogBase *dlg) {
TQVBox *vbox = dlg->addVBoxPage(i18n( "PHP Specific" ), i18n("PHP Settings"), BarIcon( "source", KIcon::SizeMedium )); TQVBox *vbox = dlg->addVBoxPage(i18n( "PHP Specific" ), i18n("PHP Settings"), BarIcon( "source", TDEIcon::SizeMedium ));
PHPConfigWidget* w = new PHPConfigWidget(configData,vbox, "php config widget"); PHPConfigWidget* w = new PHPConfigWidget(configData,vbox, "php config widget");
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
} }

@ -73,7 +73,7 @@ RubySupportPart::RubySupportPart(TQObject *parent, const char *name, const TQStr
kdDebug() << "Creating RubySupportPart" << endl; kdDebug() << "Creating RubySupportPart" << endl;
m_shellWidget = new KDevShellWidget( 0, "irb console"); m_shellWidget = new KDevShellWidget( 0, "irb console");
m_shellWidget->setIcon( SmallIcon("ruby_config.png", KIcon::SizeMedium, KIcon::DefaultState, RubySupportPart::instance())); m_shellWidget->setIcon( SmallIcon("ruby_config.png", TDEIcon::SizeMedium, TDEIcon::DefaultState, RubySupportPart::instance()));
m_shellWidget->setCaption(i18n("Ruby Shell")); m_shellWidget->setCaption(i18n("Ruby Shell"));
mainWindow()->embedOutputView( m_shellWidget, i18n("Ruby Shell"), i18n("Ruby Shell")); mainWindow()->embedOutputView( m_shellWidget, i18n("Ruby Shell"), i18n("Ruby Shell"));
mainWindow()->raiseView( m_shellWidget ); mainWindow()->raiseView( m_shellWidget );
@ -99,7 +99,7 @@ RubySupportPart::~RubySupportPart()
void RubySupportPart::projectConfigWidget(KDialogBase *dlg) void RubySupportPart::projectConfigWidget(KDialogBase *dlg)
{ {
TQVBox *vbox = dlg->addVBoxPage(i18n("Ruby"), i18n("Ruby"), BarIcon("ruby_config.png", KIcon::SizeMedium, KIcon::DefaultState, RubySupportPart::instance())); TQVBox *vbox = dlg->addVBoxPage(i18n("Ruby"), i18n("Ruby"), BarIcon("ruby_config.png", TDEIcon::SizeMedium, TDEIcon::DefaultState, RubySupportPart::instance()));
RubyConfigWidget *w = new RubyConfigWidget(*projectDom(), (TQWidget *)vbox, "ruby config widget"); RubyConfigWidget *w = new RubyConfigWidget(*projectDom(), (TQWidget *)vbox, "ruby config widget");
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
} }

@ -132,7 +132,7 @@ void SQLSupportPart::loadConfig()
void SQLSupportPart::projectConfigWidget( KDialogBase *dlg ) void SQLSupportPart::projectConfigWidget( KDialogBase *dlg )
{ {
TQVBox *vbox = dlg->addVBoxPage( TQString( "SQL" ), i18n( "Specify Your Database Connections" ), BarIcon("source", KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage( TQString( "SQL" ), i18n( "Specify Your Database Connections" ), BarIcon("source", TDEIcon::SizeMedium) );
SqlConfigWidget *w = new SqlConfigWidget( (TQWidget*)vbox, "SQL config widget" ); SqlConfigWidget *w = new SqlConfigWidget( (TQWidget*)vbox, "SQL config widget" );
w->setProjectDom( projectDom() ); w->setProjectDom( projectDom() );
w->loadConfig(); w->loadConfig();

@ -62,7 +62,7 @@ void ConfigWidgetProxy::slotConfigWidget( KDialogBase * dlg )
TitleMap::Iterator it = _globalTitleMap.begin(); TitleMap::Iterator it = _globalTitleMap.begin();
while ( it != _globalTitleMap.end() ) while ( it != _globalTitleMap.end() )
{ {
_pageMap.insert( dlg->addVBoxPage( it.data().first, it.data().first, BarIcon( it.data().second, KIcon::SizeMedium ) ), it.key() ); _pageMap.insert( dlg->addVBoxPage( it.data().first, it.data().first, BarIcon( it.data().second, TDEIcon::SizeMedium ) ), it.key() );
++it; ++it;
} }
@ -75,7 +75,7 @@ void ConfigWidgetProxy::slotProjectConfigWidget( KDialogBase * dlg )
TitleMap::Iterator it = _projectTitleMap.begin(); TitleMap::Iterator it = _projectTitleMap.begin();
while ( it != _projectTitleMap.end() ) while ( it != _projectTitleMap.end() )
{ {
_pageMap.insert( dlg->addVBoxPage( it.data().first, it.data().first, BarIcon( it.data().second, KIcon::SizeMedium ) ), it.key() ); _pageMap.insert( dlg->addVBoxPage( it.data().first, it.data().first, BarIcon( it.data().second, TDEIcon::SizeMedium ) ), it.key() );
++it; ++it;
} }

@ -30,7 +30,7 @@ KTabBar::KTabBar(TQWidget *parent, const char *name) : TQTabBar(parent,name)
{ {
m_pPopupMenu = new TQPopupMenu(this); m_pPopupMenu = new TQPopupMenu(this);
TQPixmap closePixmap = TDEGlobal::instance()->iconLoader()->loadIcon( "tab_remove", KIcon::Small, 0, KIcon::DefaultState, 0, true ); TQPixmap closePixmap = TDEGlobal::instance()->iconLoader()->loadIcon( "tab_remove", TDEIcon::Small, 0, TDEIcon::DefaultState, 0, true );
if (closePixmap.isNull()) if (closePixmap.isNull())
closePixmap = SmallIcon("fileclose"); closePixmap = SmallIcon("fileclose");

@ -241,7 +241,7 @@ TQString AbbrevPart::currentWord() const
void AbbrevPart::configWidget(KDialogBase *dlg) void AbbrevPart::configWidget(KDialogBase *dlg)
{ {
TQVBox *vbox = dlg->addVBoxPage(i18n("Abbreviations"), i18n("Abbreviations"), BarIcon( info()->icon(), KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage(i18n("Abbreviations"), i18n("Abbreviations"), BarIcon( info()->icon(), TDEIcon::SizeMedium) );
AbbrevConfigWidget *w = new AbbrevConfigWidget(this, vbox, "abbrev config widget"); AbbrevConfigWidget *w = new AbbrevConfigWidget(this, vbox, "abbrev config widget");
connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept())); connect(dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()));
} }

@ -1112,7 +1112,7 @@ void AppWizardDialog::addFavourite(TQListViewItem* item, TQString favouriteName)
if(!info->favourite) if(!info->favourite)
{ {
info->favourite = new KIconViewItem(favourites_iconview, info->favourite = new TDEIconViewItem(favourites_iconview,
((favouriteName=="")?info->name:favouriteName), ((favouriteName=="")?info->name:favouriteName),
DesktopIcon("tdevelop")); DesktopIcon("tdevelop"));

@ -110,7 +110,7 @@
<property name="name"> <property name="name">
<cstring>unnamed</cstring> <cstring>unnamed</cstring>
</property> </property>
<widget class="KIconView" row="0" column="0"> <widget class="TDEIconView" row="0" column="0">
<property name="name"> <property name="name">
<cstring>favourites_iconview</cstring> <cstring>favourites_iconview</cstring>
</property> </property>

@ -39,37 +39,37 @@ ClassToolDialog::ClassToolDialog( ClassViewPart *part )
TQPushButton *close_button = new KPushButton(KStdGuiItem::close(), this); TQPushButton *close_button = new KPushButton(KStdGuiItem::close(), this);
parents_button = new TQToolButton(this); parents_button = new TQToolButton(this);
parents_button->setPixmap( UserIcon("CTparents", KIcon::DefaultState, ClassViewFactory::instance()) ); parents_button->setPixmap( UserIcon("CTparents", TDEIcon::DefaultState, ClassViewFactory::instance()) );
parents_button->setToggleButton(true); parents_button->setToggleButton(true);
parents_button->setFixedSize(parents_button->sizeHint()); parents_button->setFixedSize(parents_button->sizeHint());
TQToolTip::add(parents_button, i18n("Show parents")); TQToolTip::add(parents_button, i18n("Show parents"));
children_button = new TQToolButton(this); children_button = new TQToolButton(this);
children_button->setPixmap( UserIcon("CTchildren", KIcon::DefaultState, ClassViewFactory::instance()) ); children_button->setPixmap( UserIcon("CTchildren", TDEIcon::DefaultState, ClassViewFactory::instance()) );
children_button->setToggleButton(true); children_button->setToggleButton(true);
children_button->setFixedSize(children_button->sizeHint()); children_button->setFixedSize(children_button->sizeHint());
TQToolTip::add(children_button, i18n("Show children")); TQToolTip::add(children_button, i18n("Show children"));
clients_button = new TQToolButton(this); clients_button = new TQToolButton(this);
clients_button->setPixmap( UserIcon("CTclients", KIcon::DefaultState, ClassViewFactory::instance()) ); clients_button->setPixmap( UserIcon("CTclients", TDEIcon::DefaultState, ClassViewFactory::instance()) );
clients_button->setToggleButton(true); clients_button->setToggleButton(true);
clients_button->setFixedSize(clients_button->sizeHint()); clients_button->setFixedSize(clients_button->sizeHint());
TQToolTip::add(clients_button, i18n("Show clients")); TQToolTip::add(clients_button, i18n("Show clients"));
suppliers_button = new TQToolButton(this); suppliers_button = new TQToolButton(this);
suppliers_button->setPixmap( UserIcon("CTsuppliers", KIcon::DefaultState, ClassViewFactory::instance()) ); suppliers_button->setPixmap( UserIcon("CTsuppliers", TDEIcon::DefaultState, ClassViewFactory::instance()) );
suppliers_button->setToggleButton(true); suppliers_button->setToggleButton(true);
suppliers_button->setFixedSize(suppliers_button->sizeHint()); suppliers_button->setFixedSize(suppliers_button->sizeHint());
TQToolTip::add(suppliers_button, i18n("Show suppliers")); TQToolTip::add(suppliers_button, i18n("Show suppliers"));
methods_button = new TQToolButton(this); methods_button = new TQToolButton(this);
methods_button->setPixmap( UserIcon("CVpublic_meth", KIcon::DefaultState, ClassViewFactory::instance()) ); methods_button->setPixmap( UserIcon("CVpublic_meth", TDEIcon::DefaultState, ClassViewFactory::instance()) );
methods_button->setToggleButton(true); methods_button->setToggleButton(true);
methods_button->setFixedSize(methods_button->sizeHint()); methods_button->setFixedSize(methods_button->sizeHint());
TQToolTip::add(methods_button, i18n("Show methods")); TQToolTip::add(methods_button, i18n("Show methods"));
attributes_button = new TQToolButton(this); attributes_button = new TQToolButton(this);
attributes_button->setPixmap( UserIcon("CVpublic_var", KIcon::DefaultState, ClassViewFactory::instance()) ); attributes_button->setPixmap( UserIcon("CVpublic_var", TDEIcon::DefaultState, ClassViewFactory::instance()) );
attributes_button->setToggleButton(true); attributes_button->setToggleButton(true);
attributes_button->setFixedSize(attributes_button->sizeHint()); attributes_button->setFixedSize(attributes_button->sizeHint());
TQToolTip::add(attributes_button, i18n("Show attributes")); TQToolTip::add(attributes_button, i18n("Show attributes"));

@ -142,7 +142,7 @@ void ClassTreeOrganizerItem::init()
void ClassTreeScopeItem::init() void ClassTreeScopeItem::init()
{ {
setExpandable(true); setExpandable(true);
setPixmap(0, UserIcon("CVnamespace", KIcon::DefaultState, ClassViewFactory::instance())); setPixmap(0, UserIcon("CVnamespace", TDEIcon::DefaultState, ClassViewFactory::instance()));
} }
@ -217,7 +217,7 @@ void ClassTreeScopeItem::setOpen(bool o)
void ClassTreeClassItem::init() void ClassTreeClassItem::init()
{ {
setExpandable(true); setExpandable(true);
setPixmap(0, UserIcon(m_isStruct ? "CVstruct" : "CVclass", KIcon::DefaultState, ClassViewFactory::instance())); setPixmap(0, UserIcon(m_isStruct ? "CVstruct" : "CVclass", TDEIcon::DefaultState, ClassViewFactory::instance()));
} }
@ -302,7 +302,7 @@ ClassTreeMethodItem::ClassTreeMethodItem(ClassTreeItem *parent, ClassTreeItem *l
else else
icon = "CVglobal_meth"; icon = "CVglobal_meth";
setPixmap(0, UserIcon(icon, KIcon::DefaultState, ClassViewFactory::instance())); setPixmap(0, UserIcon(icon, TDEIcon::DefaultState, ClassViewFactory::instance()));
} }
TQString ClassTreeMethodItem::text( int ) const TQString ClassTreeMethodItem::text( int ) const
@ -356,7 +356,7 @@ ClassTreeAttrItem::ClassTreeAttrItem(ClassTreeItem *parent, ClassTreeItem *lastS
else else
icon = "CVglobal_var"; icon = "CVglobal_var";
setPixmap(0, UserIcon(icon, KIcon::DefaultState, ClassViewFactory::instance())); setPixmap(0, UserIcon(icon, TDEIcon::DefaultState, ClassViewFactory::instance()));
} }
@ -380,7 +380,7 @@ ClassTreeScriptItem::ClassTreeScriptItem(ClassTreeItem *parent, ClassTreeItem *l
//need a icon for scripts //need a icon for scripts
icon = "CVpublic_var"; icon = "CVpublic_var";
setPixmap(0, UserIcon(icon, KIcon::DefaultState, ClassViewFactory::instance())); setPixmap(0, UserIcon(icon, TDEIcon::DefaultState, ClassViewFactory::instance()));
} }

@ -948,7 +948,7 @@ void FolderBrowserItem::setup( )
void NamespaceDomBrowserItem::setup( ) void NamespaceDomBrowserItem::setup( )
{ {
ClassViewItem::setup(); ClassViewItem::setup();
setPixmap( 0, UserIcon("CVnamespace", KIcon::DefaultState, listView()->m_part->instance()) ); setPixmap( 0, UserIcon("CVnamespace", TDEIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( true ); setExpandable( true );
TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true); TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
@ -958,7 +958,7 @@ void NamespaceDomBrowserItem::setup( )
void ClassDomBrowserItem::setup( ) void ClassDomBrowserItem::setup( )
{ {
ClassViewItem::setup(); ClassViewItem::setup();
setPixmap( 0, UserIcon("CVclass", KIcon::DefaultState, listView()->m_part->instance()) ); setPixmap( 0, UserIcon("CVclass", TDEIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( true ); setExpandable( true );
TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true); TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
@ -968,7 +968,7 @@ void ClassDomBrowserItem::setup( )
void TypeAliasDomBrowserItem::setup( ) void TypeAliasDomBrowserItem::setup( )
{ {
ClassViewItem::setup(); ClassViewItem::setup();
setPixmap( 0, UserIcon("CVtypedef", KIcon::DefaultState, listView()->m_part->instance()) ); setPixmap( 0, UserIcon("CVtypedef", TDEIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( false ); setExpandable( false );
TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true); TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
@ -996,7 +996,7 @@ void FunctionDomBrowserItem::setup( )
else else
iconName = "CVpublic_" + methodType; iconName = "CVpublic_" + methodType;
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, listView()->m_part->instance()) ); setPixmap( 0, UserIcon(iconName, TDEIcon::DefaultState, listView()->m_part->instance()) );
TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true); TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
@ -1058,7 +1058,7 @@ void VariableDomBrowserItem::setup( )
else else
iconName = "CVpublic_var"; iconName = "CVpublic_var";
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, listView()->m_part->instance()) ); setPixmap( 0, UserIcon(iconName, TDEIcon::DefaultState, listView()->m_part->instance()) );
TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true); TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt ); setText( 0, txt );

@ -94,7 +94,7 @@ public:
virtual void setup() virtual void setup()
{ {
FancyListViewItem::setup(); FancyListViewItem::setup();
setPixmap( 0, UserIcon("CVpublic_meth", KIcon::DefaultState, m_part->instance()) ); setPixmap( 0, UserIcon("CVpublic_meth", TDEIcon::DefaultState, m_part->instance()) );
} }
Type type() { return m_type; } Type type() { return m_type; }

@ -49,7 +49,7 @@ NamespaceDom NamespaceItem::dom() const
void NamespaceItem::setup() void NamespaceItem::setup()
{ {
TQListViewItem::setup(); TQListViewItem::setup();
setPixmap( 0, UserIcon("CVnamespace", KIcon::DefaultState, m_part->instance()) ); setPixmap( 0, UserIcon("CVnamespace", TDEIcon::DefaultState, m_part->instance()) );
} }
@ -75,7 +75,7 @@ ClassDom ClassItem::dom() const
void ClassItem::setup() void ClassItem::setup()
{ {
TQListViewItem::setup(); TQListViewItem::setup();
setPixmap( 0, UserIcon("CVclass", KIcon::DefaultState, m_part->instance()) ); setPixmap( 0, UserIcon("CVclass", TDEIcon::DefaultState, m_part->instance()) );
} }
@ -108,7 +108,7 @@ void FunctionItem::setup()
iconName = "CVprotected_meth"; iconName = "CVprotected_meth";
else else
iconName = "CVpublic_meth"; iconName = "CVpublic_meth";
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, m_part->instance()) ); setPixmap( 0, UserIcon(iconName, TDEIcon::DefaultState, m_part->instance()) );
} }
@ -120,7 +120,7 @@ void refreshNamespaces(ClassViewPart *part, KComboView *view)
NamespaceItem *global_item = new NamespaceItem( part, view->listView(), i18n("(Global Namespace)"), part->codeModel()->globalNamespace() ); NamespaceItem *global_item = new NamespaceItem( part, view->listView(), i18n("(Global Namespace)"), part->codeModel()->globalNamespace() );
view->addItem(global_item); view->addItem(global_item);
global_item->setPixmap( 0, UserIcon("CVnamespace", KIcon::DefaultState, part->instance()) ); global_item->setPixmap( 0, UserIcon("CVnamespace", TDEIcon::DefaultState, part->instance()) );
NamespaceList namespaces = part->codeModel()->globalNamespace()->namespaceList(); NamespaceList namespaces = part->codeModel()->globalNamespace()->namespaceList();
for (NamespaceList::const_iterator it = namespaces.begin(); it != namespaces.end(); ++it) for (NamespaceList::const_iterator it = namespaces.begin(); it != namespaces.end(); ++it)
{ {

@ -121,7 +121,7 @@
</widget> </widget>
</vbox> </vbox>
</widget> </widget>
<widget class="KIconButton" row="0" column="2" rowspan="2" colspan="1"> <widget class="TDEIconButton" row="0" column="2" rowspan="2" colspan="1">
<property name="name"> <property name="name">
<cstring>icon_url</cstring> <cstring>icon_url</cstring>
</property> </property>

@ -82,10 +82,10 @@ namespace FileCreate {
setText(0, m_filetype->ext()!="" ? TQString("." + m_filetype->ext()) : TQString("") ); setText(0, m_filetype->ext()!="" ? TQString("." + m_filetype->ext()) : TQString("") );
setText(1, "<qt><b>"+m_filetype->name()+"</b>. " + m_filetype->descr() ); setText(1, "<qt><b>"+m_filetype->name()+"</b>. " + m_filetype->descr() );
KIconLoader * loader = TDEGlobal::iconLoader(); TDEIconLoader * loader = TDEGlobal::iconLoader();
TQPixmap iconPix = loader->loadIcon(m_filetype->icon(), KIcon::Desktop, TQPixmap iconPix = loader->loadIcon(m_filetype->icon(), TDEIcon::Desktop,
KIcon::SizeMedium, TDEIcon::SizeMedium,
KIcon::DefaultState, NULL, TDEIcon::DefaultState, NULL,
true); true);
if (!iconPix.isNull()) { if (!iconPix.isNull()) {
setPixmap(0, iconPix); setPixmap(0, iconPix);

@ -120,7 +120,7 @@ void FileCreatePart::insertConfigWidget( const KDialogBase * dlg, TQWidget * pag
void FileCreatePart::slotAboutToShowNewPopupMenu() void FileCreatePart::slotAboutToShowNewPopupMenu()
{ {
KIconLoader * m_iconLoader = TDEGlobal::iconLoader(); TDEIconLoader * m_iconLoader = TDEGlobal::iconLoader();
m_newPopupMenu->clear(); m_newPopupMenu->clear();
delete m_subPopups; delete m_subPopups;
m_subPopups = NULL; m_subPopups = NULL;
@ -133,8 +133,8 @@ void FileCreatePart::slotAboutToShowNewPopupMenu()
if (filetype->subtypes().count()==0) if (filetype->subtypes().count()==0)
{ {
TQPixmap iconPix = m_iconLoader->loadIcon( TQPixmap iconPix = m_iconLoader->loadIcon(
filetype->icon(), KIcon::Desktop, KIcon::SizeSmall, filetype->icon(), TDEIcon::Desktop, TDEIcon::SizeSmall,
KIcon::DefaultState, NULL, true); TDEIcon::DefaultState, NULL, true);
m_newPopupMenu->insertItem(iconPix, filetype->name(), this, m_newPopupMenu->insertItem(iconPix, filetype->name(), this,
TQT_SLOT(slotNewFilePopup(int)), 0, ++id ); TQT_SLOT(slotNewFilePopup(int)), 0, ++id );
m_newPopupMenu->setItemParameter( id, (long)filetype ); m_newPopupMenu->setItemParameter( id, (long)filetype );
@ -148,8 +148,8 @@ void FileCreatePart::slotAboutToShowNewPopupMenu()
if( !subMenu ) if( !subMenu )
subMenu = new TDEPopupMenu(0,0); subMenu = new TDEPopupMenu(0,0);
TQPixmap iconPix = m_iconLoader->loadIcon( TQPixmap iconPix = m_iconLoader->loadIcon(
subtype->icon(), KIcon::Desktop, KIcon::SizeSmall, subtype->icon(), TDEIcon::Desktop, TDEIcon::SizeSmall,
KIcon::DefaultState, NULL, true); TDEIcon::DefaultState, NULL, true);
subMenu->insertItem(iconPix, subtype->name(), this, subMenu->insertItem(iconPix, subtype->name(), this,
TQT_SLOT(slotNewFilePopup(int)), 0, ++id ); TQT_SLOT(slotNewFilePopup(int)), 0, ++id );
subMenu->setItemParameter( id, (long)subtype ); subMenu->setItemParameter( id, (long)subtype );

@ -130,8 +130,8 @@ namespace FileCreate {
item(row,1)->setWordWrap(true); item(row,1)->setWordWrap(true);
item(row,3)->setWordWrap(true); item(row,3)->setWordWrap(true);
//setRowStretchable(row,true); //setRowStretchable(row,true);
TQPixmap iconPix = m_iconLoader->loadIcon(filetype->icon(), KIcon::Desktop, KIcon::SizeMedium, TQPixmap iconPix = m_iconLoader->loadIcon(filetype->icon(), TDEIcon::Desktop, TDEIcon::SizeMedium,
KIcon::DefaultState, NULL, TDEIcon::DefaultState, NULL,
true); true);
if (!iconPix.isNull()) { if (!iconPix.isNull()) {
setPixmap(row, 0, iconPix); setPixmap(row, 0, iconPix);

@ -20,7 +20,7 @@
#include "filecreate_typechooser.h" #include "filecreate_typechooser.h"
class KIconLoader; class TDEIconLoader;
class KDevProject; class KDevProject;
class FileCreatePart; class FileCreatePart;
@ -79,7 +79,7 @@ namespace FileCreate {
/** /**
* The default icon loader, here for convenience. * The default icon loader, here for convenience.
*/ */
KIconLoader * m_iconLoader; TDEIconLoader * m_iconLoader;
/** /**
* A mapping of each row number to a file type. * A mapping of each row number to a file type.
*/ */

@ -26,7 +26,7 @@ FileListItem::FileListItem( TQListView * parent, KURL const & url, DocumentState
{ {
KFileItem fileItem( KFileItem::Unknown, KFileItem::Unknown, _url ); KFileItem fileItem( KFileItem::Unknown, KFileItem::Unknown, _url );
_icon = fileItem.pixmap(KIcon::SizeSmall); _icon = fileItem.pixmap(TDEIcon::SizeSmall);
setState( state ); setState( state );
} }
@ -64,7 +64,7 @@ void FileListItem::setState( DocumentState state )
void FileListItem::setHeight( int ) void FileListItem::setHeight( int )
{ {
TQListViewItem::setHeight( KIcon::SizeSmall > listView()->fontMetrics().height() ? KIcon::SizeSmall : listView()->fontMetrics().height() ); TQListViewItem::setHeight( TDEIcon::SizeSmall > listView()->fontMetrics().height() ? TDEIcon::SizeSmall : listView()->fontMetrics().height() );
} }
void FileListItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align ) void FileListItem::paintCell( TQPainter * p, const TQColorGroup & cg, int column, int width, int align )

@ -82,7 +82,7 @@ void FileSelectorPart::slotProjectOpened()
void FileSelectorPart::slotConfigWidget( KDialogBase * dlg ) void FileSelectorPart::slotConfigWidget( KDialogBase * dlg )
{ {
TQVBox* vbox = dlg->addVBoxPage( i18n("File Selector"), i18n("File Selector"), BarIcon( info()->icon(), KIcon::SizeMedium) ); TQVBox* vbox = dlg->addVBoxPage( i18n("File Selector"), i18n("File Selector"), BarIcon( info()->icon(), TDEIcon::SizeMedium) );
KFSConfigPage* page = new KFSConfigPage( vbox, 0, m_filetree ); KFSConfigPage* page = new KFSConfigPage( vbox, 0, m_filetree );
connect( dlg, TQT_SIGNAL( okClicked( ) ), page, TQT_SLOT( apply( ) ) ); connect( dlg, TQT_SIGNAL( okClicked( ) ), page, TQT_SLOT( apply( ) ) );
// ### implement reload // ### implement reload

@ -61,7 +61,7 @@ TDEActionSelector::TDEActionSelector( TQWidget *parent, const char *name )
d->selectedInsertionPolicy = BelowCurrent; d->selectedInsertionPolicy = BelowCurrent;
d->showUpDownButtons = true; d->showUpDownButtons = true;
//int isz = IconSize( KIcon::Small ); //int isz = IconSize( TDEIcon::Small );
TQHBoxLayout *lo = new TQHBoxLayout( this ); TQHBoxLayout *lo = new TQHBoxLayout( this );
lo->setSpacing( KDialog::spacingHint() ); lo->setSpacing( KDialog::spacingHint() );

@ -113,7 +113,7 @@ public:
/** /**
This enum identifies the icon sizes, used for the move buttons. This enum identifies the icon sizes, used for the move buttons.
The values correspond to the following pixel sizes: The values correspond to the following pixel sizes:
@li SmallIcon - the return value of IconSize( KIcon::Small ), the user defined size @li SmallIcon - the return value of IconSize( TDEIcon::Small ), the user defined size
of a small icon in KDE. This is the default setting. of a small icon in KDE. This is the default setting.
@li Small - 16px @li Small - 16px
@li Medium - 22px @li Medium - 22px
@ -272,7 +272,7 @@ public:
Sets the iconset for button @p button to @p iconset. Sets the iconset for button @p button to @p iconset.
You can use this method to et a costum icon set. Either You can use this method to et a costum icon set. Either
created by @ref TQIconSet, or use the application instance of created by @ref TQIconSet, or use the application instance of
@ref KIconLoader (recommended). @ref TDEIconLoader (recommended).
*/ */
void setButtonIconSet( const TQIconSet &iconset, MoveButton button ); void setButtonIconSet( const TQIconSet &iconset, MoveButton button );

@ -120,7 +120,7 @@ void FileTreeWidget::openDirectory( const TQString& dirName )
addProjectFiles( m_part->project()->allFiles(), true ); addProjectFiles( m_part->project()->allFiles(), true );
KURL url = KURL::fromPathOrURL( dirName ); KURL url = KURL::fromPathOrURL( dirName );
const TQPixmap& pix = KMimeType::mimeType("inode/directory")->pixmap( KIcon::Small ); const TQPixmap& pix = KMimeType::mimeType("inode/directory")->pixmap( TDEIcon::Small );
// this is a bit odd, but the order of these calls seems to be important // this is a bit odd, but the order of these calls seems to be important
//FileTreeBranch *b = new FileTreeBranch( this, url, url.prettyURL(), pix ); //FileTreeBranch *b = new FileTreeBranch( this, url, url.prettyURL(), pix );

@ -97,7 +97,7 @@ TDEAboutData* SnippetPart::aboutData()
*/ */
void SnippetPart::slotConfigWidget( KDialogBase *dlg ) void SnippetPart::slotConfigWidget( KDialogBase *dlg )
{ {
TQVBox *vbox = dlg->addVBoxPage( i18n("Code Snippets"), i18n("Code Snippets"), BarIcon( info()->icon(), KIcon::SizeMedium ) ); TQVBox *vbox = dlg->addVBoxPage( i18n("Code Snippets"), i18n("Code Snippets"), BarIcon( info()->icon(), TDEIcon::SizeMedium ) );
SnippetSettings * w = new SnippetSettings( m_widget, vbox ); SnippetSettings * w = new SnippetSettings( m_widget, vbox );

@ -54,7 +54,7 @@ void KDevIDEExtension::init()
void KDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg) void KDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg)
{ {
TDEConfig* config = kapp->config(); TDEConfig* config = kapp->config();
TQVBox *vbox = dlg->addVBoxPage(i18n("General"), i18n("General"), BarIcon("tdevelop", KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage(i18n("General"), i18n("General"), BarIcon("tdevelop", TDEIcon::SizeMedium) );
gsw = new SettingsWidget(vbox, "general settings widget"); gsw = new SettingsWidget(vbox, "general settings widget");
gsw->projectsURL->setMode((int)KFile::Directory); gsw->projectsURL->setMode((int)KFile::Directory);

@ -149,7 +149,7 @@ void ProjectManager::slotProjectOptions()
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, TopLevel::getInstance()->main(), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, TopLevel::getInstance()->main(),
"project options dialog"); "project options dialog");
TQVBox *box = dlg.addVBoxPage( i18n("General"), i18n("General"), BarIcon( "tdevelop", KIcon::SizeMedium ) ); TQVBox *box = dlg.addVBoxPage( i18n("General"), i18n("General"), BarIcon( "tdevelop", TDEIcon::SizeMedium ) );
GeneralInfoWidget *g = new GeneralInfoWidget(*API::getInstance()->projectDom(), box, "general informations widget"); GeneralInfoWidget *g = new GeneralInfoWidget(*API::getInstance()->projectDom(), box, "general informations widget");
connect (&dlg, TQT_SIGNAL(okClicked()), g, TQT_SLOT(accept())); connect (&dlg, TQT_SIGNAL(okClicked()), g, TQT_SLOT(accept()));

@ -129,7 +129,7 @@ void CvsServicePart::init()
connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)), connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)),
this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) ); this, TQT_SLOT(slotStopButtonClicked(KDevPlugin*)) );
m_impl->m_widget->setIcon( UserIcon( "kdev_cvs", KIcon::DefaultState, CvsFactory::instance()) ); m_impl->m_widget->setIcon( UserIcon( "kdev_cvs", TDEIcon::DefaultState, CvsFactory::instance()) );
TQWhatsThis::add( m_impl->processWidget(), i18n("<b>CVS</b><p>Concurrent Versions System operations window. Shows output of Cervisia CVS Service.") ); TQWhatsThis::add( m_impl->processWidget(), i18n("<b>CVS</b><p>Concurrent Versions System operations window. Shows output of Cervisia CVS Service.") );
m_impl->processWidget()->setCaption(i18n("CvsService Output")); m_impl->processWidget()->setCaption(i18n("CvsService Output"));
mainWindow()->embedOutputView( m_impl->processWidget(), i18n("CvsService"), i18n("cvs output") ); mainWindow()->embedOutputView( m_impl->processWidget(), i18n("CvsService"), i18n("cvs output") );
@ -276,7 +276,7 @@ void CvsServicePart::createNewProject( const TQString &dirName )
void CvsServicePart::projectConfigWidget( KDialogBase *dlg ) void CvsServicePart::projectConfigWidget( KDialogBase *dlg )
{ {
TQVBox *vbox = dlg->addVBoxPage( i18n("CvsService"), i18n("CvsService"), BarIcon( info()->icon(), KIcon::SizeMedium) ); TQVBox *vbox = dlg->addVBoxPage( i18n("CvsService"), i18n("CvsService"), BarIcon( info()->icon(), TDEIcon::SizeMedium) );
CvsOptionsWidget *w = new CvsOptionsWidget( (TQWidget *)vbox, "cvs config widget" ); CvsOptionsWidget *w = new CvsOptionsWidget( (TQWidget *)vbox, "cvs config widget" );
connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) );
} }

Loading…
Cancel
Save