diff options
Diffstat (limited to 'kdevdesigner/src')
-rw-r--r-- | kdevdesigner/src/CMakeLists.txt | 6 | ||||
-rw-r--r-- | kdevdesigner/src/kdevdesigner.cpp | 26 | ||||
-rw-r--r-- | kdevdesigner/src/kdevdesigner.desktop | 93 | ||||
-rw-r--r-- | kdevdesigner/src/kdevdesigner.h | 2 | ||||
-rw-r--r-- | kdevdesigner/src/main.cpp | 2 |
5 files changed, 25 insertions, 104 deletions
diff --git a/kdevdesigner/src/CMakeLists.txt b/kdevdesigner/src/CMakeLists.txt index c232cd2f..9d7378f9 100644 --- a/kdevdesigner/src/CMakeLists.txt +++ b/kdevdesigner/src/CMakeLists.txt @@ -23,7 +23,11 @@ link_directories( ##### other data ################################ -install( FILES kdevdesigner.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) +tde_create_translated_desktop( + SOURCE kdevdesigner.desktop + PO_DIR tdevelop-desktops +) + install( FILES kdevdesigner_shell.rc DESTINATION ${DATA_INSTALL_DIR}/kdevdesigner ) diff --git a/kdevdesigner/src/kdevdesigner.cpp b/kdevdesigner/src/kdevdesigner.cpp index f846e99b..d76d487b 100644 --- a/kdevdesigner/src/kdevdesigner.cpp +++ b/kdevdesigner/src/kdevdesigner.cpp @@ -59,7 +59,7 @@ KDevDesigner::KDevDesigner() // our hands on it TQStringList args; args.append("in shell"); - m_part = static_cast<KParts::ReadWritePart *>(factory->create(TQT_TQOBJECT(this), + m_part = static_cast<KParts::ReadWritePart *>(factory->create(this, "kdevdesigner_part", "KParts::ReadWritePart", args)); if (m_part) @@ -76,8 +76,8 @@ KDevDesigner::KDevDesigner() // if we couldn't find our Part, we exit since the Shell by // itself can't do anything useful KMessageBox::error(this, i18n("Could not find the KDevDesigner part.")); - kapp->quit(); - // we return here, cause kapp->quit() only means "exit the + tdeApp->quit(); + // we return here, cause tdeApp->quit() only means "exit the // next time we enter the event loop... return; } @@ -99,16 +99,16 @@ void KDevDesigner::load(const KURL& url) void KDevDesigner::setupActions() { -/* KStdAction::openNew(TQT_TQOBJECT(this), TQT_SLOT(fileNew()), actionCollection()); - KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection());*/ +/* KStdAction::openNew(this, TQ_SLOT(fileNew()), actionCollection()); + KStdAction::open(this, TQ_SLOT(fileOpen()), actionCollection());*/ - KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection()); + KStdAction::quit(tdeApp, TQ_SLOT(quit()), actionCollection()); - m_toolbarAction = KStdAction::showToolbar(TQT_TQOBJECT(this), TQT_SLOT(optionsShowToolbar()), actionCollection()); - m_statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(optionsShowStatusbar()), actionCollection()); + m_toolbarAction = KStdAction::showToolbar(this, TQ_SLOT(optionsShowToolbar()), actionCollection()); + m_statusbarAction = KStdAction::showStatusbar(this, TQ_SLOT(optionsShowStatusbar()), actionCollection()); - KStdAction::keyBindings(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), actionCollection()); - KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), actionCollection()); + KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()), actionCollection()); + KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()), actionCollection()); } void KDevDesigner::saveProperties(TDEConfig* /*config*/) @@ -174,8 +174,8 @@ void KDevDesigner::optionsConfigureToolbars() // use the standard toolbar editor KEditToolbar dlg(factory()); - connect(&dlg, TQT_SIGNAL(newToolbarConfig()), - this, TQT_SLOT(applyNewToolbarConfig())); + connect(&dlg, TQ_SIGNAL(newToolbarConfig()), + this, TQ_SLOT(applyNewToolbarConfig())); dlg.exec(); } @@ -192,7 +192,7 @@ void KDevDesigner::fileOpen() KURL url = KFileDialog::getOpenURL( TQString(), TQString(), this ); - if (url.isEmpty() == false) + if (!url.isEmpty()) { // About this function, the style guide ( // http://developer.kde.org/documentation/standards/kde/style/basics/index.html ) diff --git a/kdevdesigner/src/kdevdesigner.desktop b/kdevdesigner/src/kdevdesigner.desktop index 7bba7365..77cf9b07 100644 --- a/kdevdesigner/src/kdevdesigner.desktop +++ b/kdevdesigner/src/kdevdesigner.desktop @@ -1,96 +1,13 @@ [Desktop Entry] Name=TDevelop Designer -Name[el]=Σχεδιαστής TDevelop -Name[es]=Diseñador de TDevelop -Name[et]=TDevelopi Disainer -Name[eu]=TDevelop disenatzailea -Name[fa]=طراح TDevelop -Name[fr]=Concepteur TDevelop -Name[ga]=Dearthóir TDevelop -Name[it]=Designer di TDevelop -Name[ja]=TDevelop デザイナー -Name[ms]=Pereka TDevelop -Name[nds]=TDevelop-Maker -Name[ne]=केडीई विकास डिजाइनर -Name[pl]=Projektant TDevelop -Name[pt]=Desenhador do TDevelop -Name[pt_BR]=Designer do TDevelop -Name[sk]=TDevelop Dizajnér -Name[sl]=Snovalnik TDevelop -Name[sv]=TDevelop designer -Name[ta]=கேமேம்பாட்டு வடிவமைப்பாளர் -Name[tg]=Дизайнгари TDevelop -Name[zh_CN]=TDevelop 设计师 -Name[zh_TW]=TDevelop 設計器 + GenericName=Interface Designer -GenericName[br]=Ergrafer etrefas -GenericName[ca]=Dissenyador de interfícies -GenericName[cy]=Dylunydd Rhyngwyneb -GenericName[de]=Oberflächen-Designer -GenericName[el]=Σχεδιαστής διασυνδέσεων -GenericName[es]=Diseñador de interfaces -GenericName[et]=Liidesedisainer -GenericName[eu]=Interfazeen diseinatzailea -GenericName[fa]=طراح واسط -GenericName[fr]=Concepteur d'interfaces graphiques -GenericName[ga]=Dearthóir Comhéadain -GenericName[gl]=Deseñador de interfaces -GenericName[hu]=Felülettervező -GenericName[it]=Interfaccia del Designer -GenericName[ja]=インターフェースデザイナー -GenericName[lt]=Sąsajos redaktorius -GenericName[ms]=Pereka Antaramuka -GenericName[nds]=Böversietmaker -GenericName[ne]=इन्टरफेस डिजाइनर -GenericName[pl]=Projektowanie interfejsu -GenericName[pt]=Editor de Interfaces -GenericName[pt_BR]=Desenhador de Interface -GenericName[ru]=Дизайнер пользовательского интерфейса -GenericName[rw]=Umuhanzi w'Imigaragarire -GenericName[sk]=Interface Dizajnér -GenericName[sl]=Snovalnik vmesnikov -GenericName[sr]=Дизајнер интерфејса -GenericName[sr@Latn]=Dizajner interfejsa -GenericName[sv]=Gränssnittsdesign -GenericName[tr]=Arayüz Tasarlayıcısı -GenericName[zh_CN]=界面设计师 -GenericName[zh_TW]=介面設計器 + +Comment=GUI Designer for Qt/TDE + Exec=kdevdesigner %i -caption "%c" Icon=kdevdesigner Type=Application -X-DocPath=kdevdesigner/index.html -Comment=GUI Designer for Qt/TDE -Comment[ca]=Dissenyador de IGU per Qt/TDE -Comment[da]=Grafisk brugerfladedesigner til Qt/TDE -Comment[de]=Auf Qt-Designer basierender GUI-Designer -Comment[el]=Σχεδιαστής GUI για Qt/TDE -Comment[es]=Diseñador de interfaces para Qt/TDE -Comment[et]=Qt/TDE graafilise kasutajaliidese disainer -Comment[eu]=GUI diseinatzailea Qt/TDE-rako -Comment[fa]=طراح ونک برای Qt/TDE -Comment[fr]=Concepteur d'interfaces graphiques pour Qt / TDE -Comment[ga]=Dearthóir Comhéadan Grafach le haghaidh Qt/TDE -Comment[gl]=Deseñador GUI para Qt/TDE -Comment[hu]=Qt/TDE felülettervező -Comment[it]=Designer di GUI per Qt/TDE -Comment[ja]=Qt/TDE のための GUI デザイナー -Comment[ms]=Pereka GUI untuk Qt/TDE -Comment[nds]=Böversietmaker för Qt/TDE -Comment[ne]=Qt/TDE का लागि जी यू आई डिजाइनर -Comment[nl]=GUI Designer voor Qt/TDE -Comment[pl]=Projektant graficznego interfejsu użytkownika dla Qt/TDE -Comment[pt]=Editor de Interfaces para Qt/TDE -Comment[pt_BR]=Designer de GUI para o Qt/TDE -Comment[ru]=Среда создания графических форм Qt/TDE -Comment[sk]=GUI Dizajnér pre Qt/TDE -Comment[sl]=Snovalnik grafičnega vmesnika za Qt/TDE -Comment[sr]=Дизајнер GUI-ја за Qt/TDE -Comment[sr@Latn]=Dizajner GUI-ja za Qt/TDE -Comment[sv]=Grafisk gränssnittsdesign för Qt och TDE -Comment[ta]=Qtக்கான GUI வடிவமைப்பாளர் -Comment[tg]=Муҳит барои сохтани Qt/TDE ба шакли графикӣ -Comment[tr]=Qt/TDE için Arayüz Tasarlayıcısı -Comment[zh_CN]=Qt/TDE 的 GUI 设计师 -Comment[zh_TW]=Qt/TDE 的使用者介面設計器 Terminal=false +X-DocPath=kdevdesigner/index.html Categories=Qt;TDE;Development;GUIDesigner;X-TDE-TDevelopIDE; diff --git a/kdevdesigner/src/kdevdesigner.h b/kdevdesigner/src/kdevdesigner.h index a497dc5c..bcb6cb9a 100644 --- a/kdevdesigner/src/kdevdesigner.h +++ b/kdevdesigner/src/kdevdesigner.h @@ -41,7 +41,7 @@ class TDEToggleAction; */ class KDevDesigner : public KParts::MainWindow { - Q_OBJECT + TQ_OBJECT public: /** diff --git a/kdevdesigner/src/main.cpp b/kdevdesigner/src/main.cpp index f70b9285..34c47adb 100644 --- a/kdevdesigner/src/main.cpp +++ b/kdevdesigner/src/main.cpp @@ -25,7 +25,7 @@ #include <tdeaboutdata.h> #include <tdecmdlineargs.h> #include <tdelocale.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> static const char description[] = I18N_NOOP("TDE GUI Designer"); |