Browse Source

Initial TDE conversion

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 3 years ago
parent
commit
88b7febc23
65 changed files with 428 additions and 428 deletions
  1. 10
    10
      README
  2. 1
    1
      bab/Makefile.am
  3. 1
    1
      bab/bab.desktop
  4. 2
    2
      bab/bab.h
  5. 28
    28
      bab/main.cpp
  6. 1
    1
      bab/styleconfdialog.cpp
  7. 2
    2
      bab/styleconfdialog.h
  8. 1
    1
      colorscheme/Makefile.am
  9. 1
    1
      config/Makefile.am
  10. 4
    4
      config/colordialog.cpp
  11. 32
    32
      config/kstyle_baghira_config.cpp
  12. 6
    6
      config/kstyle_baghira_config.h
  13. 1
    1
      deco/Doxyfile
  14. 10
    10
      deco/Makefile.am
  15. 1
    1
      deco/baghira.desktop
  16. 7
    7
      deco/baghiraclient.cc
  17. 1
    1
      deco/baghiraclient.h
  18. 7
    7
      deco/config/Makefile.am
  19. 9
    9
      deco/config/baghiraconfig.cc
  20. 9
    9
      deco/config/baghiraconfig.cc.new
  21. 4
    4
      deco/config/baghiraconfig.h
  22. 4
    4
      deco/config/baghiraconfig.h.new
  23. 1
    1
      deco/config/configdialog.ui
  24. 1
    1
      deco/config/configdialog.ui.new
  25. 1
    1
      kickermenu-3.3/Makefile.am
  26. 2
    2
      kickermenu-3.3/b_menuapplet.desktop
  27. 10
    10
      kickermenu-3.3/menuapplet.cpp
  28. 4
    4
      kickermenu-3.3/menuapplet.h
  29. 1
    1
      kickermenu/Makefile.am
  30. 1
    1
      kickermenu/configure.in.in
  31. 16
    16
      kickermenu/menuapplet.cpp
  32. 5
    5
      kickermenu/menuapplet.h
  33. 1
    1
      sessionapplet/Makefile.am
  34. 11
    11
      sessionapplet/dmctl.cpp
  35. 5
    5
      sessionapplet/dmctl.h
  36. 14
    14
      sessionapplet/usermanager.cpp
  37. 2
    2
      sessionapplet/usermanager.desktop
  38. 2
    2
      sessionapplet/usermanager.h
  39. 1
    1
      sidebar/Makefile.am
  40. 4
    4
      sidebar/baghirasidebar.cpp
  41. 1
    1
      sidebar/baghirasidebar.desktop
  42. 3
    3
      sidebar/baghirasidebar.h
  43. 1
    1
      sidebar/baghirasidebar_add.desktop
  44. 1
    1
      sidebar/configure.in.in
  45. 25
    25
      sidebar/dndlistbox.cpp
  46. 6
    6
      sidebar/dndlistbox.h
  47. 1
    1
      sidebar/linkconfig.ui
  48. 4
    4
      sidebar/linkview.cpp
  49. 1
    1
      sidebar/listboxlink.cpp
  50. 1
    1
      sidebar/listboxlink.h
  51. 1
    1
      starter/Makefile.am
  52. 1
    1
      starter/config.ui
  53. 1
    1
      starter/linkconfig.ui
  54. 54
    54
      starter/menu.cpp
  55. 7
    7
      starter/menu.h
  56. 21
    21
      starter/starter.cpp
  57. 2
    2
      starter/starter.desktop
  58. 5
    5
      starter/starter.h
  59. 2
    2
      style/Makefile.am
  60. 37
    37
      style/baghira.cpp
  61. 3
    3
      style/baghira.h
  62. 6
    6
      style/eventfilter.cpp
  63. 1
    1
      style/optionHandler.cpp
  64. 18
    18
      style/polish.cpp
  65. 1
    1
      style/utils.cpp

+ 10
- 10
README View File

@@ -9,7 +9,7 @@ Installation
tar -xjf baghira.tar.bz2
cd baghira/baghira
either try ./install.sh or
./configure --prefix=`kde-config --prefix` --disable-debug [--enable-final]
./configure --prefix=`tde-config --prefix` --disable-debug [--enable-final]
(!!!BEGINNERS: the direction of the accents is _important_ (top-left to bottom-right), the rectangular brackets mean "this is optional" - don't type them!!!)
make
and finally as root:
@@ -123,12 +123,12 @@ as i don't have such nice access on the startmenu as the button has, its not pos
* (bab) update: rewrote the way design switching stuff according to kde 3.4, removed all imperfect workaround stuff -> works much better, but needs kde 3.4 to work properly
* (kickermenu) update: using XClassHint to display the appname (better than relying on the netwm info)
* (kickermenu) update: using app menu instead of desktop menu for modal dialogs
* (kickermenu) note: kicker from kde 3.4 has a special menupanel that autoloads the kicker menuapplet to display the menu. you can remove this menu and readd the baghiramenu, but you'll have to do that after every kde start. -> open [kdeprefix - e.g. usr]/share/apps/kicker/applets/menuapplet.desktop, change "X-KDE-Library=menu_panelapplet" to "X-KDE-Library=b_menu_panelapplet" or (as root) run the following script (simply using sed to update the file):
* (kickermenu) note: kicker from kde 3.4 has a special menupanel that autoloads the kicker menuapplet to display the menu. you can remove this menu and readd the baghiramenu, but you'll have to do that after every kde start. -> open [kdeprefix - e.g. usr]/share/apps/kicker/applets/menuapplet.desktop, change "X-TDE-Library=menu_panelapplet" to "X-TDE-Library=b_menu_panelapplet" or (as root) run the following script (simply using sed to update the file):
--------------------start---------------
#!/bin/sh
sed s/"X-KDE-Library=menu_panelapplet"/"X-KDE-Library=b_menu_panelapplet"/g $(kde-config --prefix)/share/apps/kicker/applets/menuapplet.desktop > _baghirabuffer_
rm -f $(kde-config --prefix)/share/apps/kicker/applets/menuapplet.desktop
mv _baghirabuffer_ $(kde-config --prefix)/share/apps/kicker/applets/menuapplet.desktop
sed s/"X-TDE-Library=menu_panelapplet"/"X-TDE-Library=b_menu_panelapplet"/g $(tde-config --prefix)/share/apps/kicker/applets/menuapplet.desktop > _baghirabuffer_
rm -f $(tde-config --prefix)/share/apps/kicker/applets/menuapplet.desktop
mv _baghirabuffer_ $(tde-config --prefix)/share/apps/kicker/applets/menuapplet.desktop
---------------------end----------------

0.6a
@@ -165,7 +165,7 @@ so the only solution i found was to disable the palette update for the toolbutto
0.5e
----
style:
- fixed the "kde toolbar widget" thing (location bar/juk slider etc.)
- fixed the "tde toolbar widget" thing (location bar/juk slider etc.)
- worked around brushed metal kicker translucency support
- changed the appereance of the kicker executor (like konqueror combobox)
- worked around konqueror statusbar offset
@@ -201,7 +201,7 @@ bab:
- added some colored throbbers and an xcf so you can create your own colors
- sorting headers appear colored
- put the menuapplet into its own library, so it won't conflict with the kde one and is installed by default
- corrected kwin (stippled) frame to align the style
- corrected twin (stippled) frame to align the style
- corercted brushed toolbars (disalignment)

0.5c
@@ -217,7 +217,7 @@ anyway, i don't know since which version this holds, therefore maybe you want to

Mainly kde3.3 alignments
- fixed juk toolbar stuff (and any other)
- fixed new kwin buttons
- fixed new twin buttons
- toplevelmenubars are not set to stipples anymore, honoring the fact, that the kicker menuapplet recolors them itself to kicker background
- arrows will are dark grey rather than black - makes them appear more smooth

@@ -249,7 +249,7 @@ Bab:
Goodies:
The stuff in this folder is not autoinstalled.
Look into it and use whatever you want, however you want (except claiming cr and suing me for nonliterally copying ;)
- added new stuff: bootsplash, konqui tile, kdm picture, lilo-bootscreen
- added new stuff: bootsplash, konqui tile, tdm picture, lilo-bootscreen
*** read the readme! ***

0.5a
@@ -411,7 +411,7 @@ haha...! i even had some letters left ;)
- bugfixed the setting stuff (misdisplayd groupboxes, ability to unset shadows under popups...)
- Tab vs. Chooser is now optional
o the default setting is somewhat clever, i.e. if the toplevel widget is a dialog, tabs appear as choosers, as oldstyle tabs elsewise
-> result: apps like konqueror, kdevelop, quanta, konsole... will show tabs, dialogs will show choosers
-> result: apps like konqueror, tdevelop, quanta, konsole... will show tabs, dialogs will show choosers
o you can define the tab behaviour for aqua and brushed metal individually in the bab menu
- fixed menu animation stuff
- fixed bookmark menu behaviour (so could have told me...)

+ 1
- 1
bab/Makefile.am View File

@@ -19,4 +19,4 @@ bin_PROGRAMS = bab
# the application source, library search path, and link libraries
bab_SOURCES = main.cpp styleconfdialog.cpp bab_iface.skel
bab_LDFLAGS = $(KDE_RPATH) $(all_libraries)
bab_LDADD = $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI)
bab_LDADD = $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI)

+ 1
- 1
bab/bab.desktop View File

@@ -5,6 +5,6 @@ Name[xx]=xxbabxx
Exec=bab %i %m -caption "%c"
Icon=baghira
Type=Application
DocPath=
X-DocPath=
Comment=Access to the big black cat
Terminal=0

+ 2
- 2
bab/bab.h View File

@@ -29,7 +29,7 @@
#include <tqwidget.h>
#include <tqpixmap.h>
#include <tqsettings.h>
#include <kmainwindow.h>
#include <tdemainwindow.h>
#include <ksystemtray.h>

class bab;
@@ -75,7 +75,7 @@ class TQCheckBox;
* @author Thomas Lübking <baghira-style@gmx.net>
* @version 0.1
*/
class bab : public KMainWindow
class bab : public TDEMainWindow
{
Q_OBJECT
public:

+ 28
- 28
bab/main.cpp View File

@@ -31,17 +31,17 @@
#include <tqvbox.h>
#include <tqpainter.h>
#include <dcopclient.h>
#include <kapplication.h>
// #include <kconfig.h>
#include <tdeapplication.h>
// #include <tdeconfig.h>
#include <kiconloader.h>
#include <kaboutdata.h>
#include <kcmdlineargs.h>
#include <tdeaboutdata.h>
#include <tdecmdlineargs.h>
#include <kipc.h>
#include <klibloader.h>
#include <klocale.h>
#include <tdelocale.h>
#include <kprocess.h>
#if KDE_IS_VERSION(3,4,0)
#include <kwin.h>
#include <twin.h>
#endif
#include <stdio.h>
#include <X11/Xlib.h>
@@ -54,20 +54,20 @@ static const char description[] =

static const char version[] = "cvs";

static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
// { "+[URL]", I18N_NOOP( "Document to open." ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

int main(int argc, char **argv)
{
KAboutData about("bab", I18N_NOOP("BAB - Baghira Aqua/Brushed Switcher"), version, description,
KAboutData::License_GPL, "(C) 2004/2005 Thomas Lübking", 0, 0, "baghira-style@gmx.net");
TDEAboutData about("bab", I18N_NOOP("BAB - Baghira Aqua/Brushed Switcher"), version, description,
TDEAboutData::License_GPL, "(C) 2004/2005 Thomas Lübking", 0, 0, "baghira-style@gmx.net");
about.addAuthor( "Thomas Lübking", 0, "baghira-style@gmx.net" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions( options );
TDEApplication app;
DCOPClient* client = app.dcopClient();
client->registerAs( "bab", false);
client->setDefaultObject( "babInterface" );
@@ -94,7 +94,7 @@ int main(int argc, char **argv)
}


bab::bab() : KMainWindow(0,"bab",TQt::WStyle_StaysOnTop | TQt::WX11BypassWM ){
bab::bab() : TDEMainWindow(0,"bab",TQt::WStyle_StaysOnTop | TQt::WX11BypassWM ){
bSwitcher = new BabSwitcher(this,"switcher");
TQToolTip::add(bSwitcher, i18n("leftclick toggles state<br>rightclick toggles setupmenu"));
bSwitcher->show();
@@ -195,7 +195,7 @@ bab::~ bab()
if (bSwitcher) delete bSwitcher;
}

/*Taken from kcontrol, kcmshell style*/
/*Taken from kcontrol, tdecmshell style*/
void bab::configureBaghira()
{

@@ -235,7 +235,7 @@ void bab::configureBaghira()
TQObject *decoObject = 0;
if (tw)
{
KLibrary* library2 = loader->library( TQFile::encodeName("kwin_baghira_config") );
KLibrary* library2 = loader->library( TQFile::encodeName("twin_baghira_config") );
if (!library2)
{
tqWarning("There was an error loading the configuration dialog for the deco.");
@@ -247,7 +247,7 @@ void bab::configureBaghira()
tqWarning("There was an error loading the configuration dialog for this style.");
return;
}
typedef TQObject*(* factoryRoutine2)( KConfig* conf, TQWidget* parent );
typedef TQObject*(* factoryRoutine2)( TDEConfig* conf, TQWidget* parent );
factoryRoutine2 factory2 = (factoryRoutine2)(allocPtr2);
decoObject = factory2( 0, tw );
decoConfig = (TQWidget*)tw->child("ConfigDialog");
@@ -266,7 +266,7 @@ void bab::configureBaghira()
connect(dial, SIGNAL(defaults()), styleConfig, SLOT(defaults()));
connect(dial, SIGNAL(save()), styleConfig, SLOT(save()));
connect(dial, SIGNAL(defaults()), decoObject, SLOT(defaults()));
connect(dial, SIGNAL(save(KConfig*)), decoObject, SLOT(save(KConfig*)));
connect(dial, SIGNAL(save(TDEConfig*)), decoObject, SLOT(save(TDEConfig*)));
if (dial->exec() == TQDialog::Accepted)
{
@@ -277,7 +277,7 @@ void bab::configureBaghira()
KIPC::sendMessageAll(KIPC::ToolbarStyleChanged);
}
if (dial->isDecoDirty())
kapp->dcopClient()->send("kwin", "KWinInterface", "reconfigure()", TQByteArray());
kapp->dcopClient()->send("twin", "KWinInterface", "reconfigure()", TQByteArray());
}
tw->removeChild( decoObject );
dial->insertChild( decoObject );
@@ -322,7 +322,7 @@ void bab::showEvent(TQShowEvent *e){

void bab::saveSettings(){
TQSettings *config = new TQSettings();
// KConfig *config = new KConfig("baghirarc");
// TDEConfig *config = new TDEConfig("baghirarc");
config->beginGroup("/baghira/BAB");
config->writeEntry("defaultState", DefStyle->currentItem());
config->writeEntry("roundCorners", cornerCheck->isChecked());
@@ -334,12 +334,12 @@ TQPoint *BabSwitcher::globalPos = new TQPoint(0,0);

BabSwitcher::BabSwitcher(bab *parent, const char *name)
: KSystemTray(parent,name), DCOPObject("babInterface") {
KIconLoader* iLoader = KGlobal::iconLoader();
JaguarIcon = iLoader->loadIcon("bab_jaguar", KIcon::Small, 22);
PantherIcon = iLoader->loadIcon("bab_panther", KIcon::Small, 22);
iTunesIcon = iLoader->loadIcon("bab_itunes", KIcon::Small, 22);
TigerIcon = iLoader->loadIcon("bab_tiger", KIcon::Small, 22);
MilkIcon = iLoader->loadIcon("bab_milk", KIcon::Small, 22);
TDEIconLoader* iLoader = TDEGlobal::iconLoader();
JaguarIcon = iLoader->loadIcon("bab_jaguar", TDEIcon::Small, 22);
PantherIcon = iLoader->loadIcon("bab_panther", TDEIcon::Small, 22);
iTunesIcon = iLoader->loadIcon("bab_itunes", TDEIcon::Small, 22);
TigerIcon = iLoader->loadIcon("bab_tiger", TDEIcon::Small, 22);
MilkIcon = iLoader->loadIcon("bab_milk", TDEIcon::Small, 22);
installEventFilter(this);
}

@@ -462,7 +462,7 @@ TQString BabSwitcher::deco()

void BabSwitcher::start(TQString name, TQString settings)
{
KProcess proc;
TDEProcess proc;
TQString section; int i = 0; bool done = false;
if (name.contains(' '))
{
@@ -491,7 +491,7 @@ void BabSwitcher::start(TQString name, TQString settings)
symlink (tmpString.latin1(), tmpString2.latin1());
proc << name;
}
proc.start(KProcess::DontCare);
proc.start(TDEProcess::DontCare);
proc.detach();
}


+ 1
- 1
bab/styleconfdialog.cpp View File

@@ -19,7 +19,7 @@
*/

#include "styleconfdialog.h"
#include <klocale.h>
#include <tdelocale.h>

StyleConfigDialog::StyleConfigDialog(TQWidget* parent, TQString styleName):
KDialogBase(parent, "StyleConfigDialog",

+ 2
- 2
bab/styleconfdialog.h View File

@@ -23,7 +23,7 @@

#include <kdialogbase.h>

class KConfig;
class TDEConfig;
class StyleConfigDialog: public KDialogBase
{
Q_OBJECT
@@ -43,7 +43,7 @@ private slots:
signals:
void defaults();
void save();
void save(KConfig*);
void save(TDEConfig*);

private:
bool m_styleDirty;

+ 1
- 1
colorscheme/Makefile.am View File

@@ -1,3 +1,3 @@
lnkdir = $(kde_datadir)/kdisplay/color-schemes
lnkdir = $(kde_datadir)/tdedisplay/color-schemes
lnk_DATA = AquaBlue.kcsrc AquaGraphite.kcsrc
EXTRA_DIST = $(lnk_DATA)

+ 1
- 1
config/Makefile.am View File

@@ -7,7 +7,7 @@ kde_module_LTLIBRARIES = kstyle_baghira_config.la

kstyle_baghira_config_la_SOURCES = kstyle_baghira_config.cpp colordialog.cpp colorpicker.cpp configdialog.ui help.ui about.ui
# kstyle_baghira_config_la_METASOURCES = AUTO
kstyle_baghira_config_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KIO)
kstyle_baghira_config_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEIO)
kstyle_baghira_config_la_LDFLAGS = -module -avoid-version $(all_libraries) -no-undefined $(KDE_PLUGIN)



+ 4
- 4
config/colordialog.cpp View File

@@ -7,8 +7,8 @@
#include <tqpixmap.h>
#include <tqpushbutton.h>
#include <tqstyle.h>
#include <kglobal.h>
#include <kglobalsettings.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <kcolordialog.h>
#include <kiconloader.h>
#include "colorpicker.h"
@@ -45,7 +45,7 @@ ColorDialog::ColorDialog(TQWidget* parent, const char* name) : TQDialog( parent,
TQVBoxLayout *topRight = new TQVBoxLayout(top);
TQLabel *info = new TQLabel("<qt>Select custom colors or grab directly from screen.<br>Click image left to switch between items.</qt>",this);
topRight->addWidget(info);
TQIconSet icon = KGlobal::iconLoader()->loadIconSet("colorpicker", KIcon::Small);
TQIconSet icon = TDEGlobal::iconLoader()->loadIconSet("colorpicker", TDEIcon::Small);
buttonCP = new TQPushButton(icon, TQString::null, this);
topRight->addWidget(buttonCP);
TQLabel *lb = new TQLabel("From other app:",this);
@@ -74,7 +74,7 @@ ColorDialog::ColorDialog(TQWidget* parent, const char* name) : TQDialog( parent,
picker[High]->setColor(colorGroup().highlight());
picker[HighText]->setColor(colorGroup().highlightedText());
picker[ButText]->setColor(colorGroup().buttonText ());
picker[Alternate]->setColor(KGlobalSettings::alternateBackgroundColor());
picker[Alternate]->setColor(TDEGlobalSettings::alternateBackgroundColor());
for (int i = 0; i < NUMCOLORS; i++)
picker[i]->blockSignals(false);
// demo->repaint(false);

+ 32
- 32
config/kstyle_baghira_config.cpp View File

@@ -27,7 +27,7 @@
#include <tqfile.h>
#include <tqfileinfo.h>
#include <tqgroupbox.h>
#include <kfiledialog.h>
#include <tdefiledialog.h>
#include <tqpainter.h>
//#include <tqpalette.h>
// #include <tqsettings.h>
@@ -37,20 +37,20 @@
#include <tqlabel.h>
#include <tqlineedit.h>
#include <tqpixmap.h>
#include <klistview.h>
#include <tdelistview.h>
#include <tqtabwidget.h>
#include <tqtimer.h>
#include <dcopclient.h>
#include <kapplication.h>
#include <tdeapplication.h>
#include <kcolorbutton.h>
#include <kconfig.h>
#include <tdeconfig.h>
#include <kimageeffect.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kglobal.h>
#include <kglobalsettings.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <kprocess.h>
#include <kparts/genericfactory.h>
#include <tdeparts/genericfactory.h>

#include <X11/Xlib.h>
#include <X11/Xatom.h>
@@ -66,8 +66,8 @@

//#define VERSION "0.7"

#ifndef KDE_VERSION_STRING
#define KDE_VERSION_STRING "error"
#ifndef TDE_VERSION_STRING
#define TDE_VERSION_STRING "error"
#endif
#ifndef TQT_BUILD_KEY
#define TQT_BUILD_KEY "error error error error"
@@ -105,24 +105,24 @@ void kstyle_baghira_config::openHtml1()
{
TQStringList args;
args << "exec" << "http://baghira.sf.net/";
kapp->kdeinitExec("kfmclient", args);
kapp->tdeinitExec("kfmclient", args);
}

void kstyle_baghira_config::openHtml2()
{
TQStringList args;
args << "exec" << "http://www.sf.net/projects/baghira/files/";
kapp->kdeinitExec("kfmclient", args);
kapp->tdeinitExec("kfmclient", args);
}

void kstyle_baghira_config::startBab()
{
kapp->kdeinitExec("bab");
kapp->tdeinitExec("bab");
}

void kstyle_baghira_config::startKRuler()
{
kapp->kdeinitExec("kruler");
kapp->tdeinitExec("kruler");
}

TQImage* kstyle_baghira_config::tintButton(TQImage &src, TQColor c)
@@ -296,7 +296,7 @@ kstyle_baghira_config::kstyle_baghira_config(TQWidget *parent, const char *name,
TQWidget *rulesWidget = new TQWidget(dialog_->tabWidget);
TQHBoxLayout *rwlh = new TQHBoxLayout(rulesWidget);
applist = new KListView(rulesWidget);
applist = new TDEListView(rulesWidget);
applist->setFullWidth(true);
#if KDE_IS_VERSION(3,3,91)
applist->setShadeSortColumn(false);
@@ -314,9 +314,9 @@ kstyle_baghira_config::kstyle_baghira_config(TQWidget *parent, const char *name,
{
TQFileInfo FI = TQFileInfo(d, d[i]);
if (FI.isSymLink())
applist->insertItem(new KListViewItem(applist, d[i], FI.readLink().section('/',-1,-1)));
applist->insertItem(new TDEListViewItem(applist, d[i], FI.readLink().section('/',-1,-1)));
else
applist->insertItem(new KListViewItem(applist, d[i]));
applist->insertItem(new TDEListViewItem(applist, d[i]));
}
}
rwlh->addWidget(applist);
@@ -351,7 +351,7 @@ kstyle_baghira_config::kstyle_baghira_config(TQWidget *parent, const char *name,
help_ = new Help(dialog_);
about_ = new About(dialog_);
about_->versionLabel->setText(VERSION);
about_->kdeLabel->setText(KDE_VERSION_STRING);
about_->kdeLabel->setText(TDE_VERSION_STRING);
crCurrent = 0;
crNotes[0] = "<qt>© 2003-2005 by Thomas Lübking<br>http://baghira.SourceForge.net</qt>";
crNotes[1] = "<qt>© \"Design\" 2001-2005 by Apple inc.<br>http://www.apple.com";
@@ -481,7 +481,7 @@ void kstyle_baghira_config::load()

void kstyle_baghira_config::load(TQString &fileName)
{
KConfig *config = new KConfig(fileName);
TDEConfig *config = new TDEConfig(fileName);
// TQSettings config;
config->setGroup("BAB");
// general Design
@@ -576,7 +576,7 @@ void kstyle_baghira_config::load(TQString &fileName)
config->setGroup("Sidebar");
delete config;
config = new KConfig("kdeglobals");
config = new TDEConfig("kdeglobals");
config->setGroup( "Toolbar style" );
dialog_->toolbuttonHighColor->setColor(config->readColorEntry("HighlightColor", new TQColor(103,141,178)) );
delete config;
@@ -666,7 +666,7 @@ void kstyle_baghira_config::save()

void kstyle_baghira_config::changeTooluttonHighlightColor(const TQColor & color)
{
KConfig *config = new KConfig("kdeglobals");
TDEConfig *config = new TDEConfig("kdeglobals");
config->setGroup( "Toolbar style" );
config->writeEntry("HighlightColor", color);
delete config;
@@ -684,7 +684,7 @@ void kstyle_baghira_config::handleButtonStyles(int i)
void kstyle_baghira_config::save(TQString &fileName)
{
// TQSettings *config = new TQSettings;
KConfig *config = new KConfig(fileName);
TDEConfig *config = new TDEConfig(fileName);
config->setGroup("BAB");
//General Design
config->writeEntry("defaultState", dialog_->defaultStyle->currentItem());
@@ -739,15 +739,15 @@ Hidden=true\n\
Type=Plugin\n\
Encoding=UTF-8\n\
Name=BaghiraMenu\n\
X-KDE-Library=b_menu_panelapplet\n\
X-KDE-UniqueApplet=true\n";
X-TDE-Library=b_menu_panelapplet\n\
X-TDE-UniqueApplet=true\n";
file.writeBlock( msg, tqstrlen(msg) );
file.close();
}
else
file.remove();
if (dialog_->replaceMenubar->isOn() != menuReplaced)
KApplication::dcopClient()->send("kicker", "default", "restart()", "");
TDEApplication::dcopClient()->send("kicker", "default", "restart()", "");
//Srollbars
config->writeEntry("Special_AnimateSlider", dialog_->animateSlider->isOn());
config->writeEntry("Special_ShadowSlider", dialog_->shadowSlider->isOn());
@@ -868,7 +868,7 @@ void kstyle_baghira_config::removeApp(TQString name)

void kstyle_baghira_config::addApp(TQString string, TQString linkString)
{
applist->insertItem(new KListViewItem(applist, string, linkString));
applist->insertItem(new TDEListViewItem(applist, string, linkString));
applist->sort();
}

@@ -950,13 +950,13 @@ void kstyle_baghira_config::menuToggled(bool active)
{
if (!active || !loadDone)
return;
KConfigGroup menuConfig(KGlobal::config(), "KDE");
TDEConfigGroup menuConfig(TDEGlobal::config(), "KDE");
if (!menuConfig.readBoolEntry("macStyle", false))
if (KMessageBox::questionYesNo(0, i18n("<qt>You just selected to replace kickers menu applet for the Mac like Menubar on top of the screen, but the Mac like style isn't selected anyway<br>Do you want to activate it now?</qt>"), 0L, KStdGuiItem::yes(), KStdGuiItem::no()) == KMessageBox::Yes)
{
KProcess proc;
proc << "kcmshell" << "desktopbehavior";
proc.start(KProcess::DontCare);
TDEProcess proc;
proc << "tdecmshell" << "desktopbehavior";
proc.start(TDEProcess::DontCare);
proc.detach();
}
configChanged();
@@ -1179,7 +1179,7 @@ void AppSetter::resetColorPicker()
colorDialog->picker[High]->setColor(colorGroup().highlight());
colorDialog->picker[HighText]->setColor(colorGroup().highlightedText());
colorDialog->picker[ButText]->setColor(colorGroup().buttonText ());
colorDialog->picker[Alternate]->setColor(KGlobalSettings::alternateBackgroundColor());
colorDialog->picker[Alternate]->setColor(TDEGlobalSettings::alternateBackgroundColor());
for (int i = 0; i < 8; i++)
colorDialog->picker[i]->blockSignals(false);
((TQWidget*)colorDialog->demo)->repaint(false);

+ 6
- 6
config/kstyle_baghira_config.h View File

@@ -21,15 +21,15 @@
#ifndef _KSTYLE_BAGHIRA_CONFIG_H_
#define _KSTYLE_BAGHIRA_CONFIG_H_

//#include <kcmodule.h>
//#include <tdecmodule.h>
#include <tqcolor.h>
#include <tqimage.h>
#include <kaboutdata.h>
#include <tdeaboutdata.h>
#include "configdialog.h"
#include "help.h"
#include "about.h"

class KListView;
class TDEListView;
class TQPushButton;
class AppSetter;
class TQTimer;
@@ -50,7 +50,7 @@ public:
void save(TQString &fileName);
// virtual int buttons();
virtual TQString quickHelp() const;
virtual const KAboutData *aboutData()const
virtual const TDEAboutData *aboutData()const
{ return myAboutData; };

public slots:
@@ -78,11 +78,11 @@ protected:
private:
TQString crNotes[3];
AppSetter *appsetter;
KListView *applist;
TDEListView *applist;
TQImage* tintButton(TQImage &src, TQColor c);
TQImage* tintBrush( TQImage &img, TQColor c/*, int saturation*/ );
WId findWindow();
KAboutData *myAboutData;
TDEAboutData *myAboutData;
Config *dialog_;
Help* help_;
About* about_;

+ 1
- 1
deco/Doxyfile View File

@@ -3,7 +3,7 @@
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = baghira_deco.kdevelop
PROJECT_NAME = baghira_deco.tdevelop
PROJECT_NUMBER = $VERSION$
OUTPUT_DIRECTORY =
OUTPUT_LANGUAGE = English

+ 10
- 10
deco/Makefile.am View File

@@ -4,22 +4,22 @@ SUBDIRS = config

KDE_CXXFLAGS = -DQT_PLUGIN

INCLUDES = $(all_includes) -I$(kde_includes)/kwin
INCLUDES = $(all_includes) -I$(kde_includes)/twin

kwindir = $(kde_datadir)/kwin/
kwin_DATA = baghira.desktop
twindir = $(kde_datadir)/twin/
twin_DATA = baghira.desktop

EXTRA_DIST = $(kwin_DATA) images
EXTRA_DIST = $(twin_DATA) images

noinst_HEADERS = baghiraclient.h pixmaps.h masks.h

kde_module_LTLIBRARIES = kwin3_baghira.la
kwin3_baghira_la_SOURCES = baghiraclient.cc
kwin3_baghira_la_LIBADD = $(kde_libraries)/libkdecorations.la
kwin3_baghira_la_LDFLAGS = $(all_libraries) $(LIB_QT) $(KDE_PLUGIN) $(LIB_KDECORE) $(LIB_KDEUI) -lkdefx -module
kwin3_baghira_la_METASOURCES = AUTO
kde_module_LTLIBRARIES = twin3_baghira.la
twin3_baghira_la_SOURCES = baghiraclient.cc
twin3_baghira_la_LIBADD = $(kde_libraries)/libtdecorations.la
twin3_baghira_la_LDFLAGS = $(all_libraries) $(LIB_QT) $(KDE_PLUGIN) $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx -module
twin3_baghira_la_METASOURCES = AUTO

DISTCLEANFILES = $(kwin3_baghira_la_METASOURCES)
DISTCLEANFILES = $(twin3_baghira_la_METASOURCES)

pixmaps.h: $(srcdir)/generatePixmaps.sh
$(SHELL) $(srcdir)/generatePixmaps.sh $(top_srcdir)

+ 1
- 1
deco/baghira.desktop View File

@@ -2,4 +2,4 @@
[Desktop Entry]
Encoding=UTF-8
Name=Baghira
X-KDE-Library=kwin3_baghira
X-TDE-Library=twin3_baghira

+ 7
- 7
deco/baghiraclient.cc View File

@@ -7,14 +7,14 @@
// Please see the header file for copyright and license information.
//////////////////////////////////////////////////////////////////////////////

// #include <kconfig.h>
#include <kglobal.h>
#include <kglobalsettings.h>
// #include <tdeconfig.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <kimageeffect.h>
#include <klocale.h>
#include <tdelocale.h>
#include <kpixmapeffect.h>
#include <kwin.h>
#include <kwinmodule.h>
#include <twin.h>
#include <twinmodule.h>
#include <tqapplication.h>
#include <tqbitmap.h>
#include <tqcursor.h>
@@ -370,7 +370,7 @@ unsigned long BaghiraFactory::readConfig() {
TQSettings config;
config.beginGroup("/baghira/Style");
// KConfig config( "baghirarc" );
// TDEConfig config( "baghirarc" );
// config.setGroup( "Style" );
bgStipple_ = config.readBoolEntry( "Design_StippleBackground", false);
contrast_ = config.readNumEntry( "Design_StippleContrast", 30 );

+ 1
- 1
deco/baghiraclient.h View File

@@ -32,7 +32,7 @@
#include <kdecoration.h>
#include <kdecorationfactory.h>
#include <kpixmap.h>
#include <kdeversion.h>
#include <tdeversion.h>
/*
#define BUTTONSIZE 15;
#define MENUBUTTONWIDTH 20;

+ 7
- 7
deco/config/Makefile.am View File

@@ -6,16 +6,16 @@ INCLUDES = $(all_includes) -I$(srcdir)/../../config

noinst_HEADERS = baghiraconfig.h aquariusbutton.h colorpicker.h pixmaps.h

kde_module_LTLIBRARIES = kwin_baghira_config.la
kwin_baghira_config_la_SOURCES = baghiraconfig.cc aquariusbutton.cc colorpicker.cc configdialog.ui
kwin_baghira_config_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
kwin_baghira_config_la_LIBADD = $(LIB_QT) $(LIB_KDECORE) $(LIB_KDEUI)
kwin_baghira_config_la_METASOURCES = AUTO
kde_module_LTLIBRARIES = twin_baghira_config.la
twin_baghira_config_la_SOURCES = baghiraconfig.cc aquariusbutton.cc colorpicker.cc configdialog.ui
twin_baghira_config_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
twin_baghira_config_la_LIBADD = $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI)
twin_baghira_config_la_METASOURCES = AUTO

DISTCLEANFILES = $(kwin_baghira_config_la_METASOURCES)
DISTCLEANFILES = $(twin_baghira_config_la_METASOURCES)

messages:
$(XGETTEXT) *.cpp -o $(podir)/kwin_baghira_config.pot
$(XGETTEXT) *.cpp -o $(podir)/twin_baghira_config.pot

pixmaps.h: $(srcdir)/generatePixmaps.sh
$(SHELL) $(srcdir)/generatePixmaps.sh $(top_srcdir)

+ 9
- 9
deco/config/baghiraconfig.cc View File

@@ -7,9 +7,9 @@
// Please see the header file for copyright and license information.
//////////////////////////////////////////////////////////////////////////////

#include <kconfig.h>
#include <klocale.h>
#include <kglobal.h>
#include <tdeconfig.h>
#include <tdelocale.h>
#include <tdeglobal.h>
#include <kcolorbutton.h>
#include <tqbutton.h>
#include <tqbuttongroup.h>
@@ -38,13 +38,13 @@
// -------------
// Constructor

BaghiraConfig::BaghiraConfig(KConfig*, TQWidget* parent)
BaghiraConfig::BaghiraConfig(TDEConfig*, TQWidget* parent)
: TQObject(parent), /*config_(0),*/ dialog_(0)
{
// config_ = new KConfig("baghirarc");
// config_ = new TDEConfig("baghirarc");
// config_ = new TQSettings;
// config_->beginGroup("/baghira/Deco");
KGlobal::locale()->insertCatalogue("kwin_baghira_config");
TDEGlobal::locale()->insertCatalogue("twin_baghira_config");

dialog_ = new ConfigDialog(parent);
buttonDialog_ = new ButtonColors(parent, "Button Colors");
@@ -162,7 +162,7 @@ BaghiraConfig::~BaghiraConfig()
// ------
// Load configuration data

void BaghiraConfig::load(KConfig*)
void BaghiraConfig::load(TDEConfig*)
{
TQSettings *config_ = new TQSettings;
config_->beginGroup("/baghira/Deco");
@@ -279,7 +279,7 @@ void BaghiraConfig::load(KConfig*)
// ------
// Save configuration data

void BaghiraConfig::save(KConfig*)
void BaghiraConfig::save(TDEConfig*)
{
TQSettings *config_ = new TQSettings;
config_->beginGroup("/baghira/Deco");
@@ -721,7 +721,7 @@ void ButtonColors::init(){
extern "C"
{
TQObject* allocate_config(KConfig* config, TQWidget* parent) {
TQObject* allocate_config(TDEConfig* config, TQWidget* parent) {
return(new BaghiraConfig(config, parent));
}
}

+ 9
- 9
deco/config/baghiraconfig.cc.new View File

@@ -7,9 +7,9 @@
// Please see the header file for copyright and license information.
//////////////////////////////////////////////////////////////////////////////

#include <kconfig.h>
#include <klocale.h>
#include <kglobal.h>
#include <tdeconfig.h>
#include <tdelocale.h>
#include <tdeglobal.h>
#include <kcolorbutton.h>
#include <tqbutton.h>
#include <tqbuttongroup.h>
@@ -39,13 +39,13 @@
// -------------
// Constructor

BaghiraConfig::BaghiraConfig(KConfig*, TQWidget* parent)
BaghiraConfig::BaghiraConfig(TDEConfig*, TQWidget* parent)
: TQObject(parent), /*config_(0),*/ dialog_(0)
{
// config_ = new KConfig("baghirarc");
// config_ = new TDEConfig("baghirarc");
// config_ = new TQSettings;
// config_->beginGroup("/baghira/Deco");
KGlobal::locale()->insertCatalogue("kwin_baghira_config");
TDEGlobal::locale()->insertCatalogue("twin_baghira_config");

dialog_ = new ConfigDialog(parent);
buttonDialog_ = new ButtonColors(parent, "Button Colors");
@@ -163,7 +163,7 @@ BaghiraConfig::~BaghiraConfig()
// ------
// Load configuration data

void BaghiraConfig::load(KConfig*)
void BaghiraConfig::load(TDEConfig*)
{
TQSettings *config_ = new TQSettings;
config_->beginGroup("/baghira/Deco");
@@ -280,7 +280,7 @@ void BaghiraConfig::load(KConfig*)
// ------
// Save configuration data

void BaghiraConfig::save(KConfig*)
void BaghiraConfig::save(TDEConfig*)
{
TQSettings *config_ = new TQSettings;
config_->beginGroup("/baghira/Deco");
@@ -722,7 +722,7 @@ void ButtonColors::init(){
extern "C"
{
TQObject* allocate_config(KConfig* config, TQWidget* parent) {
TQObject* allocate_config(TDEConfig* config, TQWidget* parent) {
return(new BaghiraConfig(config, parent));
}
}

+ 4
- 4
deco/config/baghiraconfig.h View File

@@ -32,7 +32,7 @@
#include "colorpicker.h"
#include "aquariusbutton.h"

class KConfig;
class TDEConfig;
class TQSettings;
class ConfigDialog;
class TQLabel;
@@ -124,15 +124,15 @@ class BaghiraConfig : public TQObject
{
Q_OBJECT
public:
BaghiraConfig(KConfig* config, TQWidget* parent);
BaghiraConfig(TDEConfig* config, TQWidget* parent);
~BaghiraConfig();
signals:
void changed();

public slots:
void load(KConfig* conf);
void save(KConfig* conf);
void load(TDEConfig* conf);
void save(TDEConfig* conf);
void defaults();

private:

+ 4
- 4
deco/config/baghiraconfig.h.new View File

@@ -33,7 +33,7 @@
#include "colorpicker.h"
#include "aquariusbutton.h"

class KConfig;
class TDEConfig;
class TQSettings;
class ConfigDialog;
class TQLabel;
@@ -126,15 +126,15 @@ class BaghiraConfig : public TQObject
{
Q_OBJECT
public:
BaghiraConfig(KConfig* config, TQWidget* parent);
BaghiraConfig(TDEConfig* config, TQWidget* parent);
~BaghiraConfig();
signals:
void changed();

public slots:
void load(KConfig* conf);
void save(KConfig* conf);
void load(TDEConfig* conf);
void save(TDEConfig* conf);
void defaults();

private:

+ 1
- 1
deco/config/configdialog.ui View File

@@ -123,7 +123,7 @@
<string>Draw Comic Frame</string>
</property>
<property name="toolTip" stdset="0">
<string>Draws a black frame around the window (not the Titlebar).&lt;br&gt;Anyway i suggest to get the kwin dropshadow patch.</string>
<string>Draws a black frame around the window (not the Titlebar).&lt;br&gt;Anyway i suggest to get the twin dropshadow patch.</string>
</property>
</widget>
<widget class="TQCheckBox" row="7" column="0">

+ 1
- 1
deco/config/configdialog.ui.new View File

@@ -211,7 +211,7 @@ from multipart titles</string>
<string>Draw Comic Frame</string>
</property>
<property name="toolTip" stdset="0">
<string>Draws a black frame around the window (not the Titlebar).&lt;br&gt;Anyway i suggest to get the kwin dropshadow patch.</string>
<string>Draws a black frame around the window (not the Titlebar).&lt;br&gt;Anyway i suggest to get the twin dropshadow patch.</string>
</property>
</widget>
<widget class="TQCheckBox" row="8" column="0">

+ 1
- 1
kickermenu-3.3/Makefile.am View File

@@ -14,7 +14,7 @@ lnk_DATA = b_menuapplet.desktop
EXTRA_DIST = $(lnk_DATA)

b_menu_panelapplet_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
b_menu_panelapplet_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI)
b_menu_panelapplet_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI)

messages:
$(XGETTEXT) *.cpp *.h -o $(podir)/kmenuapplet.pot

+ 2
- 2
kickermenu-3.3/b_menuapplet.desktop View File

@@ -5,5 +5,5 @@ Comment=Applet embedding standalone menubars (Patched baghira version)

Icon=menu

X-KDE-Library=b_menu_panelapplet
X-KDE-UniqueApplet=true
X-TDE-Library=b_menu_panelapplet
X-TDE-UniqueApplet=true

+ 10
- 10
kickermenu-3.3/menuapplet.cpp View File

@@ -30,15 +30,15 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#include <assert.h>
#include <tqcursor.h>
#include <kconfig.h>
#include <tdeconfig.h>
#include <tqtooltip.h>
#include <kglobal.h>
#include <klocale.h>
#include <tdeglobal.h>
#include <tdelocale.h>
#include <tqlayout.h>
#include <kdebug.h>
#include <netwm.h>
#include <kapplication.h>
#include <kwin.h>
#include <tdeapplication.h>
#include <twin.h>

#include <X11/Xlib.h>

@@ -63,7 +63,7 @@ extern "C"
{
KPanelApplet* init( TQWidget* parent_P, const TQString& configFile_P )
{
KGlobal::locale()->insertCatalogue("kmenuapplet");
TDEGlobal::locale()->insertCatalogue("kmenuapplet");
return new KickerMenuApplet::Applet( configFile_P, parent_P );
}
}
@@ -120,7 +120,7 @@ Applet::~Applet()
delete selection;
delete selection_watcher;
delete module;
KGlobal::locale()->removeCatalogue("kmenuapplet");
TDEGlobal::locale()->removeCatalogue("kmenuapplet");
}

void Applet::initPopup()
@@ -428,7 +428,7 @@ void Applet::paletteChange(const TQPalette & /* oldPalette */)
void Applet::claimSelection()
{
assert( selection == NULL );
selection = new KSelectionOwner( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
selection = new TDESelectionOwner( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
// force taking the selection, but don't kill previous owner
if( selection->claim( true, false ))
{
@@ -464,7 +464,7 @@ void Applet::lostSelection()
active_menu = NULL;
if( selection_watcher == NULL )
{
selection_watcher = new KSelectionWatcher( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
selection_watcher = new TDESelectionWatcher( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
connect( selection_watcher, SIGNAL( lostOwner()), this, SLOT( claimSelection()));
}
delete module;
@@ -476,7 +476,7 @@ void Applet::lostSelection()

void Applet::readSettings()
{
KConfig cfg( "kdesktoprc", true );
TDEConfig cfg( "kdesktoprc", true );
cfg.setGroup( "Menubar" );
desktop_menu = cfg.readBoolEntry( "ShowMenubar", false );
cfg.setGroup( "KDE" );

+ 4
- 4
kickermenu-3.3/menuapplet.h View File

@@ -29,8 +29,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tqintdict.h>
#include <tqvaluelist.h>
#include <tqmenubar.h>
#include <kwindowlistmenu.h>
#include <kwinmodule.h>
#include <twindowlistmenu.h>
#include <twinmodule.h>
#include <kmanagerselection.h>
#include <dcopclient.h>
#include <dcopobject.h>
@@ -80,8 +80,8 @@ class Applet : public KPanelApplet, public DCOPObject
TQValueList< MenuEmbed* > menus;
MenuEmbed* active_menu;
KArrowButton grow_indicator_left, grow_indicator_right;
KSelectionOwner* selection;
KSelectionWatcher* selection_watcher;
TDESelectionOwner* selection;
TDESelectionWatcher* selection_watcher;
bool desktop_menu;
DCOPClient dcopclient;
// to show current active window (not necessary equal to the menubar)

+ 1
- 1
kickermenu/Makefile.am View File

@@ -9,7 +9,7 @@ noinst_HEADERS = menuapplet.h
b_menu_panelapplet_la_METASOURCES = AUTO

b_menu_panelapplet_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
b_menu_panelapplet_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI)
b_menu_panelapplet_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI)

messages:
$(XGETTEXT) *.cpp *.h -o $(podir)/kmenuapplet.pot

+ 1
- 1
kickermenu/configure.in.in View File

@@ -1,2 +1,2 @@
AM_CONDITIONAL( HAVE_3_4, test $(kde-config --version | grep "KDE:" | cut -d" " -f2 | cut -d"." -f2) -gt 3 )
AM_CONDITIONAL( HAVE_3_4, test $(tde-config --version | grep "KDE:" | cut -d" " -f2 | cut -d"." -f2) -gt 3 )


+ 16
- 16
kickermenu/menuapplet.cpp View File

@@ -31,14 +31,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <tqtooltip.h>
#include <tqtimer.h>
#include <tqvariant.h> // avoid X11 #define's
#include <kapplication.h>
#include <kconfig.h>
#include <tdeapplication.h>
#include <tdeconfig.h>
#include <kdebug.h>
#include <kglobal.h>
#include <kglobalsettings.h>
#include <klocale.h>
#include <kwin.h>
#include <kwinmodule.h>
#include <tdeglobal.h>
#include <tdeglobalsettings.h>
#include <tdelocale.h>
#include <twin.h>
#include <twinmodule.h>

#include <netwm.h>

@@ -67,7 +67,7 @@ extern "C"
{
KDE_EXPORT KPanelApplet* init( TQWidget* parent_P, const TQString& configFile_P )
{
KGlobal::locale()->insertCatalogue("kmenuapplet");
TDEGlobal::locale()->insertCatalogue("kmenuapplet");
return new KickerMenuApplet::Applet( configFile_P, parent_P );
}
}
@@ -87,7 +87,7 @@ const long SUPPORTED_WINDOW_TYPES = NET::NormalMask | NET::DesktopMask | NET::Do

Applet::Applet( const TQString& configFile_P, TQWidget* parent_P ) : KPanelApplet( configFile_P, Normal, 0, parent_P, "menuapplet" ), DCOPObject( "menuapplet" ), module( NULL ), active_menu( NULL ), selection( NULL ), selection_watcher( NULL ), desktop_menu( false ), topEdgeOffset( 0 )
{
KConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
config.setGroup("Menubar");
_maxWidth = config.readNumEntry("Width", TQDesktopWidget().availableGeometry().width());
_menuMover = new TQLabel("<<|>>", this );
@@ -103,7 +103,7 @@ Applet::Applet( const TQString& configFile_P, TQWidget* parent_P ) : KPanelApple
windowList = new KWindowListMenu(windowIndicator);
connect(windowList, SIGNAL(aboutToShow()), this, SLOT(initPopup()));
windowIndicator->insertItem( "KDE", windowList, 0);
TQFont tmpFont = KGlobalSettings::menuFont();
TQFont tmpFont = TDEGlobalSettings::menuFont();
windowIndicator->setFont(tmpFont);
// windowIndicator->adjustSize();
// int tmpHeight = windowIndicator->height();
@@ -117,7 +117,7 @@ Applet::Applet( const TQString& configFile_P, TQWidget* parent_P ) : KPanelApple
//==============
// toolbarAppearanceChanged(int) is sent when changing macstyle
connect( kapp, SIGNAL( toolbarAppearanceChanged( int )), this, SLOT( readSettings()));
connect( kapp, SIGNAL( kdisplayFontChanged()), this, SLOT( fontChanged()));
connect( kapp, SIGNAL( tdedisplayFontChanged()), this, SLOT( fontChanged()));
claimSelection();
readSettings();
updateTopEdgeOffset();
@@ -129,14 +129,14 @@ Applet::~Applet()
delete selection;
delete selection_watcher;
delete module;
KGlobal::locale()->removeCatalogue("kmenuapplet");
TDEGlobal::locale()->removeCatalogue("kmenuapplet");
}

void Applet::fontChanged()
{
if (!windowIndicator)
return;
TQFont tmpFont = KGlobalSettings::menuFont();
TQFont tmpFont = TDEGlobalSettings::menuFont();
// windowIndicator->setFont(tmpFont);
// windowIndicator->adjustSize();
// int tmpHeight = windowIndicator->height();
@@ -504,7 +504,7 @@ void Applet::paletteChange(const TQPalette & /* oldPalette */)
void Applet::claimSelection()
{
assert( selection == NULL );
selection = new KSelectionOwner( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
selection = new TDESelectionOwner( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
// force taking the selection, but don't kill previous owner
if( selection->claim( true, false ))
{
@@ -536,7 +536,7 @@ void Applet::lostSelection()
active_menu = NULL;
if( selection_watcher == NULL )
{
selection_watcher = new KSelectionWatcher( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
selection_watcher = new TDESelectionWatcher( makeSelectionAtom(), DefaultScreen( tqt_xdisplay()));
connect( selection_watcher, SIGNAL( lostOwner()), this, SLOT( claimSelection()));
}
delete module;
@@ -548,7 +548,7 @@ void Applet::lostSelection()

void Applet::readSettings()
{
KConfig cfg( "kdesktoprc", true );
TDEConfig cfg( "kdesktoprc", true );
cfg.setGroup( "Menubar" );
desktop_menu = cfg.readBoolEntry( "ShowMenubar", false );
cfg.setGroup( "KDE" );

+ 5
- 5
kickermenu/menuapplet.h View File

@@ -28,9 +28,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kpanelapplet.h>
#include <tqintdict.h>
#include <tqvaluelist.h>
#include <kmenubar.h>
#include <kwindowlistmenu.h>
#include <kwinmodule.h>
#include <tdemenubar.h>
#include <twindowlistmenu.h>
#include <twinmodule.h>
#include <kmanagerselection.h>
#include <dcopclient.h>
#include <dcopobject.h>
@@ -85,8 +85,8 @@ private:
KWinModule* module;
TQValueList< MenuEmbed* > menus;
MenuEmbed* active_menu;
KSelectionOwner* selection;
KSelectionWatcher* selection_watcher;
TDESelectionOwner* selection;
TDESelectionWatcher* selection_watcher;
bool desktop_menu;
DCOPClient dcopclient;
int topEdgeOffset;

+ 1
- 1
sessionapplet/Makefile.am View File

@@ -5,7 +5,7 @@ lib_LTLIBRARIES = usermanager_panelapplet.la

usermanager_panelapplet_la_SOURCES = usermanager.cpp dmctl.cpp
usermanager_panelapplet_la_LDFLAGS = -module -avoid-version $(all_libraries)
usermanager_panelapplet_la_LIBADD = $(LIB_KDEUI)
usermanager_panelapplet_la_LIBADD = $(LIB_TDEUI)

usermanager_DATA = usermanager.desktop
usermanagerdir = $(kde_datadir)/kicker/applets

+ 11
- 11
sessionapplet/dmctl.cpp View File

@@ -21,7 +21,7 @@

#ifdef Q_WS_X11

#include <klocale.h>
#include <tdelocale.h>
#include <dcopclient.h>

#include <sys/types.h>
@@ -91,16 +91,16 @@ DM::exec( const char *cmd )
}

/**
* Execute a KDM remote control command.
* Execute a TDM remote control command.
* @param cmd the command to execute. FIXME: undocumented yet.
* @param ret the result buffer.
* @return result:
* @li If true, the command was successfully executed.
* @p ret might contain addional results.
* @li If false and @p ret is empty, a communication error occurred
* (most probably KDM is not running).
* (most probably TDM is not running).
* @li If false and @p ret is non-empty, it contains the error message
* from KDM.
* from TDM.
*/
bool
DM::exec( const char *cmd, TQCString &buf )
@@ -157,24 +157,24 @@ DM::canShutdown()
}

void
DM::shutdown( KApplication::ShutdownType shutdownType,
KApplication::ShutdownMode shutdownMode,
DM::shutdown( TDEApplication::ShutdownType shutdownType,
TDEApplication::ShutdownMode shutdownMode,
const TQString &bootOption )
{
if (!bootOption.isEmpty() && DMType != NewKDM)
return;

if (shutdownType != KApplication::ShutdownTypeNone) {
if (shutdownType != TDEApplication::ShutdownTypeNone) {
TQCString cmd( "shutdown\t" );
cmd.append( shutdownType == KApplication::ShutdownTypeReboot ?
cmd.append( shutdownType == TDEApplication::ShutdownTypeReboot ?
"reboot\t" : "halt\t" );
if (!bootOption.isNull())
cmd.append( "=" ).append( bootOption.local8Bit() ).append( "\t" );
cmd.append( shutdownMode == KApplication::ShutdownModeInteractive ?
cmd.append( shutdownMode == TDEApplication::ShutdownModeInteractive ?
"ask\n" :
shutdownMode == KApplication::ShutdownModeForceNow ?
shutdownMode == TDEApplication::ShutdownModeForceNow ?
"forcenow\n" :
shutdownMode == KApplication::ShutdownModeTryNow ?
shutdownMode == TDEApplication::ShutdownModeTryNow ?
"trynow\n" : "schedule\n" );
exec( cmd.data() );
}

+ 5
- 5
sessionapplet/dmctl.h View File

@@ -21,7 +21,7 @@
#ifndef DMCTL_H
#define DMCTL_H

#include <kapplication.h>
#include <tdeapplication.h>

struct SessEnt {
TQString display, from, user, session;
@@ -40,8 +40,8 @@ public:
~DM();

bool canShutdown();
void shutdown( KApplication::ShutdownType shutdownType,
KApplication::ShutdownMode shutdownMode,
void shutdown( TDEApplication::ShutdownType shutdownType,
TDEApplication::ShutdownMode shutdownMode,
const TQString &bootOption = TQString::null );

void setLock( bool on );
@@ -70,8 +70,8 @@ public:
DM() {}

bool canShutdown() { return false; }
void shutdown( KApplication::ShutdownType shutdownType,
KApplication::ShutdownMode shutdownMode,
void shutdown( TDEApplication::ShutdownType shutdownType,
TDEApplication::ShutdownMode shutdownMode,
const TQString &bootOption = TQString::null ) {}

void setLock( bool ) {}

+ 14
- 14
sessionapplet/usermanager.cpp View File

@@ -19,25 +19,25 @@
***************************************************************************/

#include <stdlib.h>
#include <kmenubar.h>
#include <tdemenubar.h>
// #include <tqlabel.h>
#include <tqlayout.h>
#include <tqpopupmenu.h>
#include <dcopclient.h>
#include <kglobal.h>
#include <tdeglobal.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kconfig.h>
#include <tdelocale.h>
#include <tdeconfig.h>
#include <ksimpleconfig.h>
#include <kapplication.h>
#include <kdeversion.h>
#include <kmessagebox.h>
#include <tdeapplication.h>
#include <tdeversion.h>
#include <tdemessagebox.h>
#include <kservice.h>
#include <kstandarddirs.h>
#include "dmctl.h"
#include "usermanager.h"

#define _ICONSET_(i) KGlobal::iconLoader()->loadIconSet(i, KIcon::Small, 0, false)
#define _ICONSET_(i) TDEGlobal::iconLoader()->loadIconSet(i, TDEIcon::Small, 0, false)


UserManager::UserManager(const TQString& configFile, Type type, int actions, TQWidget *parent, const char *name)
@@ -66,7 +66,7 @@ UserManager::UserManager(const TQString& configFile, Type type, int actions, TQW
// languages
langPopup = new TQPopupMenu(this);
KConfigBase *config = KGlobal::config();
TDEConfigBase *config = TDEGlobal::config();
config->setGroup("Locale");
langList = config->readListEntry ("Language", ':');
// TQString flag( locate( "locale", TQString::fromLatin1( "l10n/%1/flag.png" ).arg(langList[0]) ) );
@@ -123,14 +123,14 @@ void UserManager::logout()
void UserManager::slotPopulateLanguages()
{
langPopup->clear();
KConfig *config = new KConfig("kdeglobals");
TDEConfig *config = new TDEConfig("kdeglobals");
config->setGroup("Locale");
langList = config->readListEntry ("Language", ':');
int i = 0;
for ( TQStringList::ConstIterator it = langList.begin();
it != langList.end(); ++it )
{
KConfig entry(locate( "locale", TQString::fromLatin1( "%1/entry.desktop" ).arg(*it) ));
TDEConfig entry(locate( "locale", TQString::fromLatin1( "%1/entry.desktop" ).arg(*it) ));
entry.setGroup("KCM Locale");
TQString name = entry.readEntry("Name", i18n("without name"));
@@ -147,7 +147,7 @@ void UserManager::slotLanguageActivated( int i )
return; // no change, no action
menu->changeItem ( 1, '[' + langList[i].section('_',0,0) + ']'/**langPopup->pixmap(i)*/ );
// langLabel->setPixmap(*langPopup->pixmap(i));
KConfig *config = new KConfig("kdeglobals");
TDEConfig *config = new TDEConfig("kdeglobals");
config->setGroup("Locale");
TQString tmp = langList[i];
langList.remove(langList.at(i));
@@ -193,7 +193,7 @@ void UserManager::slotPopulateSessions()
}
// save
sessionPopup->insertSeparator();
KConfig ksmserver("ksmserverrc", false, false);
TDEConfig ksmserver("ksmserverrc", false, false);
ksmserver.setGroup("General");
if (ksmserver.readEntry( "loginMode" ) == "restoreSavedSession")
{
@@ -275,7 +275,7 @@ extern "C"
{
KPanelApplet* init( TQWidget *parent, const TQString& configFile)
{
KGlobal::locale()->insertCatalogue("usermanager");
TDEGlobal::locale()->insertCatalogue("usermanager");
return new UserManager(configFile, KPanelApplet::Normal, KPanelApplet::About, parent, "usermanager");
}
}

+ 2
- 2
sessionapplet/usermanager.desktop View File

@@ -4,5 +4,5 @@ Comment=Session Control, Lock, Logout, Change
Name=SessionManager
Name[xx]=xxSessionManagerxx
Icon=fork
X-KDE-Library=usermanager_panelapplet
X-KDE-UniqueApplet = true
X-TDE-Library=usermanager_panelapplet
X-TDE-UniqueApplet = true

+ 2
- 2
sessionapplet/usermanager.h View File

@@ -30,7 +30,7 @@
#include <tqstring.h>
#include <tqiconset.h>
#include <tqstringlist.h>
#include <kconfig.h>
#include <tdeconfig.h>

class KMenuBar;
class TQPopunMenu;
@@ -63,7 +63,7 @@ protected:
void doNewSession(bool lock_);
private:
KConfig *ksConfig;
TDEConfig *ksConfig;
TQWidget *mainView;
KMenuBar *menu;
TQPopupMenu *sessionPopup;

+ 1
- 1
sidebar/Makefile.am View File

@@ -7,7 +7,7 @@ noinst_HEADERS = baghiralinkdrag.h baghirasidebar.h linkview.h listboxlink.h dnd

konqsidebar_baghirasidebar_la_SOURCES = baghiralinkdrag.cpp baghirasidebar.cpp linkview.cpp listboxlink.cpp dndlistbox.cpp linkconfig.ui baghirasidebariface.skel
konqsidebar_baghirasidebar_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries) -lkonqsidebarplugin
konqsidebar_baghirasidebar_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_KPARTS) $(LIB_KFILE)
konqsidebar_baghirasidebar_la_LIBADD = $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_TDEPARTS) $(LIB_KFILE)

baghirasidebar_entry_DATA = baghirasidebar.desktop
baghirasidebar_entrydir = $(kde_datadir)/konqsidebartng/entries

+ 4
- 4
sidebar/baghirasidebar.cpp View File

@@ -9,7 +9,7 @@
#include "baghirasidebar.h"
#include "baghirasidebar.moc"

baghiraSidebar::baghiraSidebar(KInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
baghiraSidebar::baghiraSidebar(TDEInstance *inst,TQObject *parent,TQWidget *widgetParent, TQString &desktopName, const char* name):
KonqSidebarPlugin(inst,parent,widgetParent,desktopName,name)
{
scrollView = new LinkView(widgetParent);
@@ -36,7 +36,7 @@ void baghiraSidebar::handleURL(const KURL &url)
scrollView->Hardware()->setSelected(item, FALSE);
return;
}
item = scrollView->Locations()->KListBox::currentItem();
item = scrollView->Locations()->TDEListBox::currentItem();
if (scrollView->Locations()->isSelected(item) &&
KURL(((ListBoxLink*)(scrollView->Locations()->item(item)))->URL()).url() != url.url() )
{
@@ -53,7 +53,7 @@ extern "C" {
map->insert("Icon", "bab_brushed");
map->insert("Name", "Baghira Sidebar");
map->insert("Open", "true");
map->insert("X-KDE-KonqSidebarModule","konqsidebar_baghirasidebar");
map->insert("X-TDE-KonqSidebarModule","konqsidebar_baghirasidebar");
fn->setLatin1("baghirasidebar%1.desktop");
return true;
}
@@ -61,7 +61,7 @@ extern "C" {

extern "C"
{
void* create_konqsidebar_baghirasidebar(KInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
void* create_konqsidebar_baghirasidebar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
{
return new baghiraSidebar(instance,par,widp,desktopname,name);
}

+ 1
- 1
sidebar/baghirasidebar.desktop View File

@@ -8,5 +8,5 @@ Name=baghirasidebar
Name[xx]=xxbaghirasidebarxx

Open=false
X-KDE-KonqSidebarModule=konqsidebar_baghirasidebar
X-TDE-KonqSidebarModule=konqsidebar_baghirasidebar


+ 3
- 3
sidebar/baghirasidebar.h View File

@@ -7,10 +7,10 @@
#endif

#include <konqsidebarplugin.h>
#include <kconfig.h>
#include <tdeconfig.h>

class LinkView;
class KListBox;
class TDEListBox;
class TQListBoxItem;

class baghiraSidebar : public KonqSidebarPlugin
@@ -27,7 +27,7 @@ public:
* @param desktopName The filename of the configuration file.
* @param name A TQt object name for your plugin.
**/
baghiraSidebar(KInstance *inst,TQObject *parent, TQWidget *widgetParent, TQString &desktopName, const char* name=0);
baghiraSidebar(TDEInstance *inst,TQObject *parent, TQWidget *widgetParent, TQString &desktopName, const char* name=0);

/** destructor */
~baghiraSidebar();

+ 1
- 1
sidebar/baghirasidebar_add.desktop View File

@@ -7,4 +7,4 @@ Name[de]=Baghira Sideabr hinzuf
Open=false
Type=Link
URL=
X-KDE-KonqSidebarAddModule=konqsidebar_baghirasidebar
X-TDE-KonqSidebarAddModule=konqsidebar_baghirasidebar

+ 1
- 1
sidebar/configure.in.in View File

@@ -1,2 +1,2 @@
AM_CONDITIONAL( HAVE_3_4, test $(kde-config --version | grep "KDE:" | cut -d" " -f2 | cut -d"." -f2) -gt 3 )
AM_CONDITIONAL( HAVE_3_4, test $(tde-config --version | grep "KDE:" | cut -d" " -f2 | cut -d"." -f2) -gt 3 )


+ 25
- 25
sidebar/dndlistbox.cpp View File

@@ -4,17 +4,17 @@
#include <kurl.h>
#include <tqstrlist.h>
#include <tqtimer.h>
#include <kapplication.h>
#include <klocale.h>
#include <kfileitem.h>
#include <kpopupmenu.h>
#include <tdeapplication.h>
#include <tdelocale.h>
#include <tdefileitem.h>
#include <tdepopupmenu.h>
#include <kicondialog.h>
#include <kiconloader.h>
#include <klineedit.h>
#include <kprocess.h>
#include <kurlrequester.h>
#include <kstandarddirs.h>
#include <kwin.h>
#include <twin.h>
#include <tqclipboard.h>
#include "listboxlink.h"
#include "linkconfig.h"
@@ -37,12 +37,12 @@
#define MEDIA_PROPS 12
#define MEDIALIST_PROPS 13

ResizingLinkBox::ResizingLinkBox( TQWidget * parent, const char * name, WFlags f ) : KListBox( parent, name, f)
ResizingLinkBox::ResizingLinkBox( TQWidget * parent, const char * name, WFlags f ) : TDEListBox( parent, name, f)
{
KConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
config.setGroup("Sidebar");
size_ = config.readNumEntry (TQString(name) + "_IconSize", 48);
popupMenu = new KPopupMenu;
popupMenu = new TDEPopupMenu;
popupMenu->insertTitle (i18n("Icon Size"),122,122);
popupMenu->insertItem("16x16", this, SLOT(setIconSize(int)),0,16,123);
popupMenu->insertItem("22x22", this, SLOT(setIconSize(int)),0,22,124);
@@ -54,14 +54,14 @@ ResizingLinkBox::ResizingLinkBox( TQWidget * parent, const char * name, WFlags f

void ResizingLinkBox::insertItem( const TQListBoxItem *lbi, int index )
{
KListBox::insertItem( lbi, index );
TDEListBox::insertItem( lbi, index );
if (height() <= numRows()*itemHeight())
emit itemNumberChanged(TRUE);
}

void ResizingLinkBox::insertItem( const TQListBoxItem *lbi, const TQListBoxItem *after )
{
KListBox::insertItem( lbi, after );
TDEListBox::insertItem( lbi, after );
if (height() <= numRows()*itemHeight())
emit itemNumberChanged(TRUE);
}
@@ -75,7 +75,7 @@ void ResizingLinkBox::insertItem( const TQString & icon, const TQString & title,
void ResizingLinkBox::removeItem( int index )
{
blockSignals ( true );
KListBox::removeItem(index);
TDEListBox::removeItem(index);
blockSignals ( false );
emit itemNumberChanged(FALSE);
}
@@ -83,7 +83,7 @@ void ResizingLinkBox::removeItem( int index )
void ResizingLinkBox::setIconSize(int size)
{
size_ = size;
KConfig *config = new KConfig(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig *config = new TDEConfig(TQDir::homeDirPath() + "/.qt/baghirarc");
config->setGroup("Sidebar");
config->writeEntry (TQString(name()) + "_IconSize", size);
config->sync();
@@ -102,14 +102,14 @@ void ResizingLinkBox::setIconSize(int size)
{
insertItem( new ListBoxLink(runner->icon(), size, runner->text(), runner->URL()), i );
}
KListBox::removeItem(i+1);
TDEListBox::removeItem(i+1);
}
blockSignals ( false );
}

void ResizingLinkBox::mousePressEvent ( TQMouseEvent *mpe )
{
KListBox::mousePressEvent( mpe );
TDEListBox::mousePressEvent( mpe );
}

void ResizingLinkBox::mouseReleaseEvent ( TQMouseEvent *mpe )
@@ -118,27 +118,27 @@ void ResizingLinkBox::mouseReleaseEvent ( TQMouseEvent *mpe )
{
ListBoxLink *link = (ListBoxLink*)itemAt(mpe->pos());
if (isSelected(link)) emit clicked(link);
KListBox::mousePressEvent( mpe );
TDEListBox::mousePressEvent( mpe );
return;
}
KListBox::mouseReleaseEvent( mpe );
TDEListBox::mouseReleaseEvent( mpe );
}

void ResizingLinkBox::contentsWheelEvent ( TQWheelEvent * we )
{
if (we->state() == TQt::ControlButton)
KListBox::contentsWheelEvent ( we );
TDEListBox::contentsWheelEvent ( we );
else
emit scrolled(0, -we->delta());
}

MediaListBox::MediaListBox( TQWidget * parent, const char * name, WFlags f ) : ResizingLinkBox(parent, name, f), DCOPObject("BaghiraSidebarIface")
{
KConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
config.setGroup("Sidebar");
hiddenDevices = config.readListEntry("HiddenDevices");
currentFloppy = 0L;
devicePopup = new KPopupMenu(this);
devicePopup = new TDEPopupMenu(this);
devicePopup->setCheckable ( true );
popupMenu->insertItem(i18n("Device List"), devicePopup, 1, 0);
popupMenu->insertSeparator( 0 );
@@ -151,7 +151,7 @@ MediaListBox::MediaListBox( TQWidget * parent, const char * name, WFlags f ) : R
insertItem(new ListBoxDevice("network", size_, i18n("Network"), "lan:/localhost", "", "", TRUE, FALSE, FALSE));
#endif
insertItem(new ListBoxDevice("hdd_mount", size_, i18n("Startvolume"), TQDir::rootDirPath(), "", "", TRUE, FALSE, FALSE));
client = KApplication::dcopClient();
client = TDEApplication::dcopClient();
client->connectDCOPSignal("kded", "mediamanager", "mediumAdded(TQString)", "BaghiraSidebarIface", "mediumAdded(TQString)", FALSE);
client->connectDCOPSignal("kded", "mediamanager", "mediumRemoved(TQString)", "BaghiraSidebarIface", "mediumRemoved(const TQString)", FALSE);
client->connectDCOPSignal("kded", "mediamanager", "mediumChanged(TQString)", "BaghiraSidebarIface", "mediumChanged(TQString)", FALSE);
@@ -206,7 +206,7 @@ MediaListBox::~MediaListBox()
ListBoxDevice *runner;
for ( runner = deviceList.first(); runner; runner = deviceList.next() )
hiddenDevices.append(runner->name());
KConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
config.setGroup("Sidebar");
config.writeEntry("HiddenDevices", hiddenDevices);
}
@@ -221,9 +221,9 @@ void MediaListBox::kfloppy()
{
if (currentFloppy)
{
KProcess proc;
TDEProcess proc;
proc << "kfloppy" << currentFloppy->mountPoint();
proc.start(KProcess::DontCare);
proc.start(TDEProcess::DontCare);
proc.detach();
currentFloppy = 0L;
}
@@ -433,11 +433,11 @@ void MediaListBox::mousePressEvent ( TQMouseEvent *mpe )
int dy = itemRect(device).y();
if ((device->removable() || device->ejectable()) && device->mounted() && mpe->y() > dy+11 && mpe->y() < dy+33)
{
KProcess proc;
TDEProcess proc;
device->ejectable()?
proc << "kdeeject" /*<< "-q"*/ << device->mountPoint():
proc << "umount" << device->mountPoint(); // umount?
proc.start(KProcess::DontCare);
proc.start(TDEProcess::DontCare);
proc.detach();
return;
}

+ 6
- 6
sidebar/dndlistbox.h View File

@@ -6,7 +6,7 @@
#include <config.h>
#endif

#include <klistbox.h>
#include <tdelistbox.h>
#include <tqptrlist.h>
#include <tqstringlist.h>
#include "baghirasidebariface.h"
@@ -18,13 +18,13 @@ class TQDragLeaveEvent;
class TQDropEvent;
class TQKeyEvent;
class TQPoint;
class KPopupMenu;
class TDEPopupMenu;
class LinkConfig;
class ListBoxLink;
class ListBoxDevice;
class TQResizeEvent;

class ResizingLinkBox : public KListBox
class ResizingLinkBox : public TDEListBox
{
Q_OBJECT
@@ -51,7 +51,7 @@ protected:
void mousePressEvent ( TQMouseEvent * );
void mouseReleaseEvent ( TQMouseEvent * );
void contentsWheelEvent ( TQWheelEvent * );
KPopupMenu *popupMenu;
TDEPopupMenu *popupMenu;
uint size_;
private slots:
void setIconSize(int);
@@ -76,7 +76,7 @@ protected:
void mousePressEvent ( TQMouseEvent * );
void resizeEvent ( TQResizeEvent * );
private:
KPopupMenu *devicePopup;
TDEPopupMenu *devicePopup;
DCOPClient *client;
ListBoxDevice *currentFloppy;
typedef TQPtrList<ListBoxDevice> DeviceList;
@@ -108,7 +108,7 @@ protected:
void dropEvent ( TQDropEvent * );
void startDrag();
private:
ListBoxLink *currentItem; //TODO: unshadow int KListBox::currentItem()
ListBoxLink *currentItem; //TODO: unshadow int TDEListBox::currentItem()
LinkConfig *dialog;
bool dragging_;
void pasteURL(int mode, TQListBoxItem *after = 0);

+ 1
- 1
sidebar/linkconfig.ui View File

@@ -124,7 +124,7 @@
</widget>
</hbox>
</widget>
<widget class="KIconButton" row="0" column="1">
<widget class="TDEIconButton" row="0" column="1">
<property name="name">
<cstring>icon</cstring>
</property>

+ 4
- 4
sidebar/linkview.cpp View File

@@ -2,9 +2,9 @@
#include <stdlib.h>
#include <tqcursor.h>
#include <tqsplitter.h>
#include <klocale.h>
#include <tdelocale.h>
#include <tqdir.h>
#include <kconfig.h>
#include <tdeconfig.h>
#include <tqtimer.h>
#include "dndlistbox.h"
#include "listboxlink.h"
@@ -144,7 +144,7 @@ void LinkView::loadLinks()
{
if (!locations)
return;
KConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig config(TQDir::homeDirPath() + "/.qt/baghirarc");
config.setGroup("Sidebar");
splitter->setSizes(config.readIntListEntry ("Sizes"));
loadedLinks = (uint)config.readNumEntry("NumLinks", 0);
@@ -174,7 +174,7 @@ void LinkView::saveLinks()
{
if (!locations)
return;
KConfig *config = new KConfig(TQDir::homeDirPath() + "/.qt/baghirarc");
TDEConfig *config = new TDEConfig(TQDir::homeDirPath() + "/.qt/baghirarc");
config->setGroup("Sidebar");
config->writeEntry("Sizes", splitter->sizes());
config->writeEntry("NumLinks", (int)locations->count());

+ 1
- 1
sidebar/listboxlink.cpp View File

@@ -9,7 +9,7 @@
static TQBitmap eject = TQBitmap( eject_width, eject_height, eject_bits, true );
static TQBitmap locked = TQBitmap( lock_width, lock_height, lock_bits, true );

ListBoxLink::ListBoxLink( const TQString & icon, uint size, const TQString & title, const TQString & url): TQListBoxPixmap(KGlobal::iconLoader()->loadIcon(icon, KIcon::Desktop, size), title),url_(url),icon_(icon)
ListBoxLink::ListBoxLink( const TQString & icon, uint size, const TQString & title, const TQString & url): TQListBoxPixmap(TDEGlobal::iconLoader()->loadIcon(icon, TDEIcon::Desktop, size), title),url_(url),icon_(icon)
{
}


+ 1
- 1
sidebar/listboxlink.h View File

@@ -8,7 +8,7 @@

#include <tqlistbox.h>

class KListBox;
class TDEListBox;
class TQPainter;
class TQPixmap;
class TQStringList;

+ 1
- 1
starter/Makefile.am View File

@@ -6,7 +6,7 @@ lib_LTLIBRARIES = libbaghirastarter.la

libbaghirastarter_la_SOURCES = baghiralinkdrag.cpp menu.cpp starter.cpp starterconfig.ui starterhelp.ui config.ui help.ui linkconfig.ui starteriface.skel
libbaghirastarter_la_LDFLAGS = -module -avoid-version $(all_libraries)
libbaghirastarter_la_LIBADD = -lXtst $(LIB_KDEUI)
libbaghirastarter_la_LIBADD = -lXtst $(LIB_TDEUI)

starter_DATA = starter.desktop
starterdir = $(kde_datadir)/kicker/applets

+ 1
- 1
starter/config.ui View File

@@ -176,7 +176,7 @@
<cstring>genericName</cstring>
</property>
</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">
<cstring>iconButton</cstring>
</property>

+ 1
- 1
starter/linkconfig.ui View File

@@ -80,7 +80,7 @@
</widget>
</hbox>
</widget>
<widget class="KIconButton" row="0" column="1">
<widget class="TDEIconButton" row="0" column="1">
<property name="name">
<cstring>icon</cstring>
</property>

+ 54
- 54
starter/menu.cpp View File

@@ -2,7 +2,7 @@
#include <tqcursor.h>
#include <tqdatetime.h>
#include <tqdir.h>
#include <kpopupmenu.h>
#include <tdepopupmenu.h>
#include <tqobjectlist.h>
#include <tqpainter.h>
#include <tqptrlist.h>
@@ -10,31 +10,31 @@
#include <tqstringlist.h>
#include <tqvbox.h>
#include <dcopclient.h>
#include <kapplication.h>
#include <kconfig.h>
#include <tdeapplication.h>
#include <tdeconfig.h>
#include <kcombobox.h>
#include <kdeversion.h>
#include <tdeversion.h>
#include <kurl.h>
#include <kfileitem.h>
#include <tdefileitem.h>
#include <kicondialog.h>
#include <kiconloader.h>
#include <kkeybutton.h>
#include <klistbox.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <tdelistbox.h>
#include <tdelocale.h>
#include <tdemessagebox.h>
#include <kpixmapeffect.h>
#include <kprocess.h>
#include <kurifilter.h>
#include <kurl.h>
#include <krun.h>
#include <kservice.h>
#include <kshortcut.h>
#include <tdeshortcut.h>
#include <ksqueezedtextlabel.h>
#include <kstandarddirs.h>
#include <ksycocaentry.h>
#include <tdesycocaentry.h>
#include <ktextedit.h>
#include <kurlrequester.h>
#include <kwin.h>
#include <twin.h>
//WARNING: THIS IS NOT PORTABLE!
// #include <X11/Xlib.h>
// #include <X11/Xatom.h>
@@ -63,7 +63,7 @@

static TQColor commentColor;
static TQColor infoColor;
static KConfig *config;
static TDEConfig *config;
static bool useKTTS;


@@ -92,8 +92,8 @@ StartMenuButton::StartMenuButton( int size, TQString icon, TQString title, TQStr
{
setBackgroundOrigin(TQWidget::ParentOrigin);
int bigSize = _BIGSIZE_(size);
m_pix = KGlobal::iconLoader()->loadIcon(icon, KIcon::Desktop, size);
m_hoverPix = KGlobal::iconLoader()->loadIcon(icon, KIcon::Desktop, bigSize);
m_pix = TDEGlobal::iconLoader()->loadIcon(icon, TDEIcon::Desktop, size);
m_hoverPix = TDEGlobal::iconLoader()->loadIcon(icon, TDEIcon::Desktop, bigSize);
m_pixmapLabel = new TQLabel(this, name);
m_pixmapLabel->setPixmap(m_pix);
m_pixmapLabel->setBackgroundOrigin(TQWidget::AncestorOrigin);
@@ -143,8 +143,8 @@ void StartMenuButton::reloadIcon(int size)
if (m_orientation == Status)
setFixedSize(bigSize+2,bigSize+2);
m_pixmapLabel->setFixedSize(bigSize+2,bigSize+2);
m_pix = KGlobal::iconLoader()->loadIcon(m_icon, KIcon::Desktop, size);
m_hoverPix = KGlobal::iconLoader()->loadIcon(m_icon, KIcon::Desktop, bigSize);
m_pix = TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::Desktop, size);
m_hoverPix = TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::Desktop, bigSize);
m_pixmapLabel->setPixmap(m_pix);
}

@@ -247,8 +247,8 @@ void StartMenuButton::edit()
m_icon = ((Panel*)parentWidget())->linkConfigDialog->icon->icon();
m_title = ((Panel*)parentWidget())->linkConfigDialog->title->text();
int bigSize = _BIGSIZE_(((Panel*)parentWidget())->_size);
m_pix = KGlobal::iconLoader()->loadIcon(m_icon, KIcon::Desktop, ((Panel*)parentWidget())->_size);
m_hoverPix = KGlobal::iconLoader()->loadIcon(m_icon, KIcon::Desktop, bigSize);
m_pix = TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::Desktop, ((Panel*)parentWidget())->_size);
m_hoverPix = TDEGlobal::iconLoader()->loadIcon(m_icon, TDEIcon::Desktop, bigSize);
m_pixmapLabel->setPixmap(m_pix);
if (m_orientation == Horizontal || m_orientation == Vertical)
m_titleLabel->setText("<qt><b>" + m_title + "</b></qt>");
@@ -337,8 +337,8 @@ StartMenuEntry::StartMenuEntry(KService * service, TQString relPath, int size, b
m_service = service;
exec = m_service->exec();
display = false;
m_pix = m_service->pixmap( KIcon::Desktop, size );
m_hoverPix = m_service->pixmap( KIcon::Desktop, bigSize );
m_pix = m_service->pixmap( TDEIcon::Desktop, size );
m_hoverPix = m_service->pixmap( TDEIcon::Desktop, bigSize );
m_titleLabel = new TQLabel("<qt><h3>" + m_service->name() + "</h3></qt>", this);
m_titleLabel->setTextFormat( TQt::RichText );
m_commentLabel = new TQLabel(m_service->comment(), this);
@@ -366,8 +366,8 @@ void StartMenuEntry::reloadIcon(int size)
{
int bigSize = _BIGSIZE_(size);
m_pixmapLabel->setFixedSize(bigSize+2,bigSize+2);
m_pix = m_service->pixmap( KIcon::Desktop, size );
m_hoverPix = m_service->pixmap( KIcon::Desktop, bigSize );
m_pix = m_service->pixmap( TDEIcon::Desktop, size );
m_hoverPix = m_service->pixmap( TDEIcon::Desktop, bigSize );
m_pixmapLabel->setPixmap(m_pix);
}

@@ -494,26 +494,26 @@ void StartMenuEntry::focusInEvent ( TQFocusEvent * )
TQString text = i18n("for TTS output, telling which item is focussed (keyboard) and than reads the comment", "%1 focussed. %2").arg(m_titleLabel->text()).arg(m_commentLabel->text());
emit sayText(text);
}
setPaletteBackgroundColor(KGlobalSettings::highlightColor());
m_commentLabel->setPaletteBackgroundColor(KGlobalSettings::highlightColor());
setPaletteForegroundColor(KGlobalSettings::highlightedTextColor());
m_commentLabel->setPaletteForegroundColor(KGlobalSettings::highlightedTextColor());
setPaletteBackgroundColor(TDEGlobalSettings::highlightColor());
m_commentLabel->setPaletteBackgroundColor(TDEGlobalSettings::highlightColor());
setPaletteForegroundColor(TDEGlobalSettings::highlightedTextColor());
m_commentLabel->setPaletteForegroundColor(TDEGlobalSettings::highlightedTextColor());
}

void StartMenuEntry::focusOutEvent ( TQFocusEvent * )
{
emit unhovered();
isCurrent = false;
setPaletteBackgroundColor(KGlobalSettings::baseColor());
m_commentLabel->setPaletteBackgroundColor(KGlobalSettings::baseColor());
setPaletteBackgroundColor(TDEGlobalSettings::baseColor());
m_commentLabel->setPaletteBackgroundColor(TDEGlobalSettings::baseColor());
if (hasMouse())
{
setPaletteForegroundColor(KGlobalSettings::highlightColor());
m_commentLabel->setPaletteForegroundColor(KGlobalSettings::highlightColor());
setPaletteForegroundColor(TDEGlobalSettings::highlightColor());
m_commentLabel->setPaletteForegroundColor(TDEGlobalSettings::highlightColor());
}
else
{
setPaletteForegroundColor(KGlobalSettings::textColor());
setPaletteForegroundColor(TDEGlobalSettings::textColor());
m_commentLabel->setPaletteForegroundColor(commentColor);
}
}
@@ -528,8 +528,8 @@ void StartMenuEntry::enterEvent( TQEvent * )
}
if (!isCurrent)
{
setPaletteForegroundColor(KGlobalSettings::highlightColor());
m_commentLabel->setPaletteForegroundColor(KGlobalSettings::highlightColor());
setPaletteForegroundColor(TDEGlobalSettings::highlightColor());
m_commentLabel->setPaletteForegroundColor(TDEGlobalSettings::highlightColor());
}
m_pixmapLabel->setPixmap(m_hoverPix);
}
@@ -539,7 +539,7 @@ void StartMenuEntry::leaveEvent( TQEvent * )
emit unhovered();
if (!isCurrent)
{
setPaletteForegroundColor(KGlobalSettings::textColor());
setPaletteForegroundColor(TDEGlobalSettings::textColor());
m_commentLabel->setPaletteForegroundColor(commentColor);
}
m_pixmapLabel->setPixmap(m_pix);
@@ -550,7 +550,7 @@ void StartMenuEntry::execute()