|
Lines 43-49
Link Here
|
| 43 |
#include <tdeapplication.h> |
43 |
#include <tdeapplication.h> |
| 44 |
#include <kcolorcombo.h> |
44 |
#include <kcolorcombo.h> |
| 45 |
#include <kcolorbutton.h> |
45 |
#include <kcolorbutton.h> |
| 46 |
#include <tdeconfig.h> // for KNewStuff emoticon fetching |
46 |
#include <tdeconfig.h> // for TDENewStuff emoticon fetching |
| 47 |
#include <kdebug.h> |
47 |
#include <kdebug.h> |
| 48 |
#include <tdefontrequester.h> |
48 |
#include <tdefontrequester.h> |
| 49 |
#include <kgenericfactory.h> |
49 |
#include <kgenericfactory.h> |
|
Lines 55-71
Link Here
|
| 55 |
#include <kpushbutton.h> |
55 |
#include <kpushbutton.h> |
| 56 |
#include <kstandarddirs.h> |
56 |
#include <kstandarddirs.h> |
| 57 |
#include <ktextedit.h> |
57 |
#include <ktextedit.h> |
| 58 |
#include <kurl.h> // KNewStuff |
58 |
#include <kurl.h> // TDENewStuff |
| 59 |
#include <kurlrequesterdlg.h> |
59 |
#include <kurlrequesterdlg.h> |
| 60 |
#include <kurlrequester.h> |
60 |
#include <kurlrequester.h> |
| 61 |
#include <krun.h> |
61 |
#include <krun.h> |
| 62 |
#include <tdefiledialog.h> |
62 |
#include <tdefiledialog.h> |
| 63 |
|
63 |
|
| 64 |
#include <knewstuff/downloaddialog.h> // knewstuff emoticon and chatwindow fetching |
64 |
#include <tdenewstuff/downloaddialog.h> //TDEnewstuff emoticon and chatwindow fetching |
| 65 |
#include <knewstuff/engine.h> // " |
65 |
#include <tdenewstuff/engine.h> // " |
| 66 |
#include <knewstuff/entry.h> // " |
66 |
#include <tdenewstuff/entry.h> // " |
| 67 |
#include <knewstuff/knewstuff.h> // " |
67 |
#include <tdenewstuff/knewstuff.h> // " |
| 68 |
#include <knewstuff/provider.h> // " |
68 |
#include <tdenewstuff/provider.h> // " |
| 69 |
|
69 |
|
| 70 |
// For Kopete Chat Window Style configuration and preview. |
70 |
// For Kopete Chat Window Style configuration and preview. |
| 71 |
#include <kopetechatwindowstylemanager.h> |
71 |
#include <kopetechatwindowstylemanager.h> |
|
Lines 128-138
public:
Link Here
|
| 128 |
Kopete::ChatSession *previewChatSession; |
128 |
Kopete::ChatSession *previewChatSession; |
| 129 |
}; |
129 |
}; |
| 130 |
|
130 |
|
| 131 |
class KopeteStyleNewStuff : public KNewStuff |
131 |
class KopeteStyleNewStuff : public TDENewStuff |
| 132 |
{ |
132 |
{ |
| 133 |
public: |
133 |
public: |
| 134 |
KopeteStyleNewStuff(const TQString &type, TQWidget *parentWidget = 0) |
134 |
KopeteStyleNewStuff(const TQString &type, TQWidget *parentWidget = 0) |
| 135 |
: KNewStuff( type, parentWidget) |
135 |
: TDENewStuff( type, parentWidget) |
| 136 |
{} |
136 |
{} |
| 137 |
|
137 |
|
| 138 |
bool createUploadFile(const TQString &) |
138 |
bool createUploadFile(const TQString &) |
|
Lines 688-694
void AppearanceConfig::slotDeleteChatStyle()
Link Here
|
| 688 |
|
688 |
|
| 689 |
void AppearanceConfig::slotGetChatStyles() |
689 |
void AppearanceConfig::slotGetChatStyles() |
| 690 |
{ |
690 |
{ |
| 691 |
// we need this because KNewStuffGeneric's install function isn't clever enough |
691 |
// we need this because TDENewStuffGeneric's install function isn't clever enough |
| 692 |
KopeteStyleNewStuff *kopeteNewStuff = new KopeteStyleNewStuff( "kopete/chatstyle", this ); |
692 |
KopeteStyleNewStuff *kopeteNewStuff = new KopeteStyleNewStuff( "kopete/chatstyle", this ); |
| 693 |
KNS::Engine *engine = new KNS::Engine( kopeteNewStuff, "kopete/chatstyle", this ); |
693 |
KNS::Engine *engine = new KNS::Engine( kopeteNewStuff, "kopete/chatstyle", this ); |
| 694 |
KNS::DownloadDialog *downloadDialog = new KNS::DownloadDialog( engine, this ); |
694 |
KNS::DownloadDialog *downloadDialog = new KNS::DownloadDialog( engine, this ); |
|
Lines 854-860
void AppearanceConfig::removeSelectedEmoticonTheme()
Link Here
|
| 854 |
void AppearanceConfig::slotGetEmoticonThemes() |
854 |
void AppearanceConfig::slotGetEmoticonThemes() |
| 855 |
{ |
855 |
{ |
| 856 |
TDEConfig* config = TDEGlobal::config(); |
856 |
TDEConfig* config = TDEGlobal::config(); |
| 857 |
config->setGroup( "KNewStuff" ); |
857 |
config->setGroup( "TDENewStuff" ); |
| 858 |
config->writeEntry( "ProvidersUrl", |
858 |
config->writeEntry( "ProvidersUrl", |
| 859 |
"http://download.kde.org/khotnewstuff/emoticons-providers.xml" ); |
859 |
"http://download.kde.org/khotnewstuff/emoticons-providers.xml" ); |
| 860 |
config->writeEntry( "StandardResource", "emoticons" ); |
860 |
config->writeEntry( "StandardResource", "emoticons" ); |