From 44c26994c9087200cf941f08df9f77b553a1365e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 16:12:19 -0600 Subject: Rename kioslaves --- lanbrowsing/kcmlisa/CMakeLists.txt | 4 +- lanbrowsing/kcmlisa/Makefile.am | 4 +- lanbrowsing/kcmlisa/kcmkiolan.cpp | 103 ----------------------- lanbrowsing/kcmlisa/kcmkiolan.desktop | 140 -------------------------------- lanbrowsing/kcmlisa/kcmkiolan.h | 54 ------------ lanbrowsing/kcmlisa/kcmreslisa.cpp | 8 +- lanbrowsing/kcmlisa/kcmreslisa.h | 2 +- lanbrowsing/kcmlisa/kcmtdeiolan.cpp | 103 +++++++++++++++++++++++ lanbrowsing/kcmlisa/kcmtdeiolan.desktop | 140 ++++++++++++++++++++++++++++++++ lanbrowsing/kcmlisa/kcmtdeiolan.h | 54 ++++++++++++ lanbrowsing/kcmlisa/main.cpp | 8 +- lanbrowsing/kcmlisa/setupwizard.h | 4 +- 12 files changed, 312 insertions(+), 312 deletions(-) delete mode 100644 lanbrowsing/kcmlisa/kcmkiolan.cpp delete mode 100644 lanbrowsing/kcmlisa/kcmkiolan.desktop delete mode 100644 lanbrowsing/kcmlisa/kcmkiolan.h create mode 100644 lanbrowsing/kcmlisa/kcmtdeiolan.cpp create mode 100644 lanbrowsing/kcmlisa/kcmtdeiolan.desktop create mode 100644 lanbrowsing/kcmlisa/kcmtdeiolan.h (limited to 'lanbrowsing/kcmlisa') diff --git a/lanbrowsing/kcmlisa/CMakeLists.txt b/lanbrowsing/kcmlisa/CMakeLists.txt index 12072365..24446a44 100644 --- a/lanbrowsing/kcmlisa/CMakeLists.txt +++ b/lanbrowsing/kcmlisa/CMakeLists.txt @@ -24,7 +24,7 @@ link_directories( ##### other data ################################ install( FILES - kcmkiolan.desktop kcmlisa.desktop kcmreslisa.desktop + kcmtdeiolan.desktop kcmlisa.desktop kcmreslisa.desktop DESTINATION ${APPS_INSTALL_DIR}/.hidden ) @@ -32,7 +32,7 @@ install( FILES tde_add_kpart( kcm_lanbrowser AUTOMOC SOURCES - main.cpp setupwizard.cpp kcmlisa.cpp kcmreslisa.cpp kcmkiolan.cpp + main.cpp setupwizard.cpp kcmlisa.cpp kcmreslisa.cpp kcmtdeiolan.cpp portsettingsbar.cpp findnic.cpp LINK tdeui-shared DESTINATION ${PLUGIN_INSTALL_DIR} diff --git a/lanbrowsing/kcmlisa/Makefile.am b/lanbrowsing/kcmlisa/Makefile.am index 4d05704b..978d4968 100644 --- a/lanbrowsing/kcmlisa/Makefile.am +++ b/lanbrowsing/kcmlisa/Makefile.am @@ -1,6 +1,6 @@ kde_module_LTLIBRARIES = kcm_lanbrowser.la -kcm_lanbrowser_la_SOURCES = main.cpp setupwizard.cpp kcmlisa.cpp kcmreslisa.cpp kcmkiolan.cpp portsettingsbar.cpp findnic.cpp +kcm_lanbrowser_la_SOURCES = main.cpp setupwizard.cpp kcmlisa.cpp kcmreslisa.cpp kcmtdeiolan.cpp portsettingsbar.cpp findnic.cpp kcm_lanbrowser_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_KIO) -ltdetexteditor kcm_lanbrowser_la_LIBADD = -ltdeui @@ -14,5 +14,5 @@ kcm_lanbrowser_la_METASOURCES = AUTO messages: $(XGETTEXT) $(kcm_lanbrowser_la_SOURCES) -o $(podir)/kcmlanbrowser.pot -apps_DATA = kcmkiolan.desktop kcmlisa.desktop kcmreslisa.desktop +apps_DATA = kcmtdeiolan.desktop kcmlisa.desktop kcmreslisa.desktop appsdir = $(kde_appsdir)/.hidden diff --git a/lanbrowsing/kcmlisa/kcmkiolan.cpp b/lanbrowsing/kcmlisa/kcmkiolan.cpp deleted file mode 100644 index fa3188fc..00000000 --- a/lanbrowsing/kcmlisa/kcmkiolan.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/* - * kcmkiolan.cpp - * - * Copyright (c) 2000 Alexander Neundorf - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#include "kcmkiolan.h" - -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -IOSlaveSettings::IOSlaveSettings(const TQString& config, TQWidget *parent) -:TDECModule(parent) -,m_config(config,false,true) -{ - TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); - layout->setAutoAdd(true); - - TQGroupBox* group=new TQGroupBox(1,Qt::Horizontal, i18n("Show Links for Following Services"), this); - - m_ftpSettings=new PortSettingsBar(i18n("FTP (TCP, port 21): "), group); - m_httpSettings=new PortSettingsBar(i18n("HTTP (TCP, port 80): "),group); - m_nfsSettings=new PortSettingsBar(i18n("NFS (TCP, port 2049): "),group); - m_smbSettings=new PortSettingsBar(i18n("Windows shares (TCP, ports 445 and 139):"),group); - m_fishSettings=new PortSettingsBar(i18n("Secure Shell/Fish (TCP, port 22): "),group); - m_shortHostnames = new TQCheckBox(i18n("Show &short hostnames (without domain suffix)"),this); - - TQHBox *hbox=new TQHBox(this); - TQLabel *label=new TQLabel(i18n("Default LISa server host: "), hbox); - m_defaultLisaHostLe=new TQLineEdit(hbox); - label->setBuddy(m_defaultLisaHostLe); - - TQWidget *w=new TQWidget(this); - layout->setStretchFactor(m_ftpSettings,0); - layout->setStretchFactor(m_httpSettings,0); - layout->setStretchFactor(m_nfsSettings,0); - layout->setStretchFactor(m_smbSettings,0); - layout->setStretchFactor(m_shortHostnames,0); - layout->setStretchFactor(hbox,0); - layout->setStretchFactor(w,1); - - connect(m_ftpSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); - connect(m_httpSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); - connect(m_nfsSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); - connect(m_smbSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); - connect(m_fishSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); - connect(m_shortHostnames,TQT_SIGNAL(clicked()),this,TQT_SIGNAL(changed())); - connect(m_defaultLisaHostLe, TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SIGNAL(changed())); -} - -void IOSlaveSettings::load() -{ - kdDebug()<<"IOSlaveSettings::load()"<setChecked(m_config.readNumEntry("Support_FTP", PORTSETTINGS_CHECK)); - m_httpSettings->setChecked(m_config.readNumEntry("Support_HTTP", PORTSETTINGS_CHECK)); - m_nfsSettings->setChecked(m_config.readNumEntry("Support_NFS", PORTSETTINGS_CHECK)); - m_smbSettings->setChecked(m_config.readNumEntry("Support_SMB", PORTSETTINGS_CHECK)); - m_fishSettings->setChecked(m_config.readNumEntry("Support_FISH", PORTSETTINGS_CHECK)); - m_shortHostnames->setChecked(m_config.readBoolEntry("ShowShortHostnames",false)); -// m_rlanSidebar->setChecked(m_config.readEntry("sidebarURL", "lan:/") == "rlan:/" ? true : false ); - m_defaultLisaHostLe->setText(m_config.readEntry("DefaultLisaHost", "localhost")); -} - -void IOSlaveSettings::save() -{ - kdDebug()<<"IOSlaveSettings::save()"<selected()); - m_config.writeEntry("Support_HTTP", m_httpSettings->selected()); - m_config.writeEntry("Support_NFS", m_nfsSettings->selected()); - m_config.writeEntry("Support_SMB", m_smbSettings->selected()); - m_config.writeEntry("Support_FISH", m_fishSettings->selected()); - m_config.writeEntry("ShowShortHostnames",m_shortHostnames->isChecked()); -// m_config.writeEntry("sidebarURL", m_rlanSidebar->isChecked() ? "rlan:/" : "lan:/"); - m_config.writeEntry("DefaultLisaHost", m_defaultLisaHostLe->text()); - - m_config.sync(); -} - -#include "kcmkiolan.moc" - diff --git a/lanbrowsing/kcmlisa/kcmkiolan.desktop b/lanbrowsing/kcmlisa/kcmkiolan.desktop deleted file mode 100644 index 78279de8..00000000 --- a/lanbrowsing/kcmlisa/kcmkiolan.desktop +++ /dev/null @@ -1,140 +0,0 @@ -[Desktop Entry] -Type=Application -Icon=samba -Exec=tdecmshell kcmkiolan - -X-TDE-ModuleType=Library -X-TDE-Library=lanbrowser -X-TDE-FactoryName=kiolan - -Name=LAN KIO Slave -Name[ar]=الشبكة المحلية KIO Slave -Name[be]=Модуль tdeioslave для мясцовай сетцы -Name[bn]=ল্যান কে-আই-ও স্লেভ -Name[br]=Sklav LAN evit KIO -Name[bs]=LAN KIO slave -Name[cs]=LAN KIO slave -Name[cy]=Gwas KIO LAN -Name[da]=LAN KIO-slave -Name[de]=Ein-/Ausgabemodul für LAN -Name[eo]=LAN-enel-sklavo -Name[es]=Esclavo de LAN KIO -Name[et]=Kohtvõrgu KIO moodul -Name[eu]=LAN KIO morroia -Name[fi]=LAN-siirräntätyöskentelijä -Name[fr]=Module KIO LAN -Name[ga]=Sclábhaí KIO LAN -Name[gl]=Escravo KIO para redes locáis -Name[hi]=लैन केआईओ स्लेव -Name[hu]=Hálózatböngészés -Name[is]=LAN KIO þræll -Name[it]=Slave LAN KIO -Name[ja]=LAN KIO スレーブ -Name[km]=KIO Slave បណ្ដាញ​មូលដ្ឋាន -Name[lt]=LAN antrinė KDE programa -Name[mn]=Протокол IO LAN -Name[ms]=Hamba LAN KIO -Name[nb]=KIO-slave for LAN -Name[nds]=Nettwark-In-/Utgaavdeenst -Name[ne]=LAN KIO स्लाभ -Name[nl]=LAN IO Slave -Name[nn]=LAN-iuslave -Name[nso]=Lekgoba la LAN KIO -Name[pa]=LAN KIO ਸਲੇਵ -Name[pl]=Procedura we/wy dla sieci lokalnej -Name[pt]='Kioslave' LAN -Name[ru]=Протокол IO LAN -Name[se]=LAN KIO-šláva -Name[sk]=LAN KIO slave -Name[sl]=KIO Slave za LAN -Name[sv]=I/O-slav för lokalt nätverk -Name[ta]=LAN KIO அடிமை -Name[tg]=Фармонбари Шабакаи Маҳаллии KIO -Name[uk]=Підлеглий KIO ЛОМ -Name[zh_CN]=LAN KIO 从属进程 - -Comment=lan: and rlan: setup -Comment[ar]=lan: و rlan: تنصيب -Comment[be]=Настаўленне lan: і rlan: -Comment[bg]=Настройване на протоколите lan: и rlan: -Comment[bn]=ল্যান: এবং আর-ল্যান: ব্যবস্থাপনা -Comment[br]=kefluniañ lan: ha rlan: -Comment[bs]=Podešavanje lan: i rlan: URLova -Comment[ca]=Per l'arranjament de lan: i rlan: -Comment[cs]=Nastavení lan: and rlan: -Comment[cy]=gosod lan: a rlan: -Comment[da]=lan: og rlan: opsætning -Comment[de]=lan: und rlan: einrichten -Comment[el]=Ρύθμιση lan: και rlan: -Comment[eo]=lan kaj rlan: agordo -Comment[es]=lan: y rlan: configuración -Comment[et]=lan: ja rlan: seadistamine -Comment[eu]=lan: eta rlan: konfigurazioa -Comment[fa]=شبکۀ محلی: و شبکۀ محلی راه دور: برپایی -Comment[fi]=lan: ja rlan: asetukset -Comment[fr]=configuration pour lan: et rlan: -Comment[ga]=Cumraíocht lan: agus rlan: -Comment[gl]=Configuración de lan: e rlan: -Comment[he]=שינוי הגדרות :lan ו-:rlan -Comment[hi]=लैन: तथा आर-लैन: सेटअप -Comment[hr]=Podešavanje lan-a i rlan-a -Comment[hu]=A lan: és az rlan: protokoll beállítása -Comment[is]=lan: og rlan: uppsetning -Comment[it]=Configurazione lan: e rlan: -Comment[ja]=lan と rlan のセットアップ -Comment[ka]=lan: და rlan: გამართვა -Comment[kk]=lan: мен rlan: параметрлерді орнату -Comment[km]=រៀបចំ lan: និង rlan: -Comment[lt]=lan: ir rlan: nustatymas -Comment[mk]=Поставување на lan: и rlan: -Comment[mn]=lan: ба rlan: тохируулга -Comment[ms]=lan: dan rlan: pemasangan -Comment[nb]=Oppsett for lan: og rlan: -Comment[nds]=lan: un rlan: instellen -Comment[ne]=lan: र rlan: सेटअप -Comment[nl]=Instellen van lan: en rlan: -Comment[nn]=Oppsett av lan: og rlan: -Comment[nso]=peakanyo ya lan: le rlan: -Comment[pl]=ustawienia lan: i rlan: -Comment[pt]=Configuração do lan: e do rlan: -Comment[pt_BR]=lan: e rlan: configuração -Comment[ru]=параметры lan: и rlan: -Comment[se]=Heivet lan: ja rlan: -Comment[sk]=lan: a rlan: nastavenie -Comment[sl]=Nastavitve lan: in rlan: -Comment[sr]=Подешавање lan:-а и rlan:-а -Comment[sr@Latn]=Podešavanje lan:-a i rlan:-a -Comment[sv]=Inställning av lan: och rlan: -Comment[ta]=lan: மற்றும் rlan: அமைப்பு -Comment[tg]=барпосозии шабакаи маҳаллӣ: ва rlan: -Comment[tr]=lan: ve rlan: ayarları -Comment[uk]=Налаштування lan: і rlan: -Comment[ven]=lan: na rlan: mavhekanyele -Comment[xh]=lan: kunye ne rlan: ucwangciso -Comment[zh_CN]=lan: 和 rlan: 设置 -Comment[zh_HK]=lan: 與 rlan: 設定 -Comment[zh_TW]=lan: 與 rlan: 設定 -Comment[zu]=Ilayini yokuyalela ye applet - -Keywords=lan -Keywords[bg]=настройки, локална, мрежа, lan -Keywords[bn]=ল্যান -Keywords[de]=LAN -Keywords[eo]=reto -Keywords[fa]=شبکۀ داخلی -Keywords[fr]=lan,réseau local,réseau -Keywords[gl]=lan,redes locáis -Keywords[he]=lan,רשת מקומית -Keywords[hi]=लैन -Keywords[lt]=lan,vietinis tinklas -Keywords[nds]=lan,nettwark -Keywords[ne]=ल्यान -Keywords[nl]=lan,lokaal netwerk,netwerk -Keywords[pl]=lan,LAN -Keywords[ru]=lan, локальная сеть -Keywords[sk]=lan,sieť -Keywords[tg]=шабакаи маҳаллӣ -Keywords[uk]=lan, локальна мережа -Keywords[uz]=lokal tarmoq -Keywords[uz@cyrillic]=локал тармоқ -Keywords[zh_CN]=lan,局域网 diff --git a/lanbrowsing/kcmlisa/kcmkiolan.h b/lanbrowsing/kcmlisa/kcmkiolan.h deleted file mode 100644 index 86dd0fa4..00000000 --- a/lanbrowsing/kcmlisa/kcmkiolan.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * kcmkiolan.h - * - * Copyright (c) 2000 Alexander Neundorf - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -#ifndef KCMKIOLAN_H -#define KCMKIOLAN_H - -#include "portsettingsbar.h" -#include -#include - -class TQCheckBox; -class TQLineEdit; - -class IOSlaveSettings:public TDECModule -{ - Q_OBJECT - - public: - IOSlaveSettings(const TQString& config, TQWidget *parent=0); - virtual ~IOSlaveSettings() {}; - void load(); - void save(); - signals: - void changed(); - protected: - TDEConfig m_config; - TQCheckBox *m_shortHostnames; - TQCheckBox *m_rlanSidebar; - PortSettingsBar *m_ftpSettings; - PortSettingsBar *m_httpSettings; - PortSettingsBar *m_nfsSettings; - PortSettingsBar *m_smbSettings; - PortSettingsBar *m_fishSettings; - TQLineEdit *m_defaultLisaHostLe; -}; - -#endif diff --git a/lanbrowsing/kcmlisa/kcmreslisa.cpp b/lanbrowsing/kcmlisa/kcmreslisa.cpp index 6b946608..252beadf 100644 --- a/lanbrowsing/kcmlisa/kcmreslisa.cpp +++ b/lanbrowsing/kcmlisa/kcmreslisa.cpp @@ -39,7 +39,7 @@ ResLisaSettings::ResLisaSettings(const TQString& config, TQWidget *parent) : TDECModule(parent) ,m_config(config,false,true) -,m_kiolanConfig("kio_lanrc",false,true) +,m_tdeiolanConfig("tdeio_lanrc",false,true) ,m_advancedSettingsButton(0) ,m_suggestSettings(0) ,m_useNmblookup(0) @@ -168,7 +168,7 @@ void ResLisaSettings::load() m_pingNames->clear(); m_pingNames->insertStringList(m_config.readListEntry("PingNames",';')); - m_rlanSidebar->setChecked(m_kiolanConfig.readEntry("sidebarURL", "lan:/") == "rlan:/" ? true : false ); + m_rlanSidebar->setChecked(m_tdeiolanConfig.readEntry("sidebarURL", "lan:/") == "rlan:/" ? true : false ); } void ResLisaSettings::save() @@ -200,8 +200,8 @@ void ResLisaSettings::save() m_config.sync(); - m_kiolanConfig.writeEntry("sidebarURL", m_rlanSidebar->isChecked() ? "rlan:/" : "lan:/"); - m_kiolanConfig.sync(); + m_tdeiolanConfig.writeEntry("sidebarURL", m_rlanSidebar->isChecked() ? "rlan:/" : "lan:/"); + m_tdeiolanConfig.sync(); } diff --git a/lanbrowsing/kcmlisa/kcmreslisa.h b/lanbrowsing/kcmlisa/kcmreslisa.h index 69f226db..e395b0ba 100644 --- a/lanbrowsing/kcmlisa/kcmreslisa.h +++ b/lanbrowsing/kcmlisa/kcmreslisa.h @@ -47,7 +47,7 @@ class ResLisaSettings:public TDECModule void suggestSettings(); protected: TDEConfig m_config; - TDEConfig m_kiolanConfig; + TDEConfig m_tdeiolanConfig; TQPushButton* m_advancedSettingsButton; TQPushButton* m_suggestSettings; TQCheckBox* m_useNmblookup; diff --git a/lanbrowsing/kcmlisa/kcmtdeiolan.cpp b/lanbrowsing/kcmlisa/kcmtdeiolan.cpp new file mode 100644 index 00000000..68e01989 --- /dev/null +++ b/lanbrowsing/kcmlisa/kcmtdeiolan.cpp @@ -0,0 +1,103 @@ +/* + * kcmtdeiolan.cpp + * + * Copyright (c) 2000 Alexander Neundorf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#include "kcmtdeiolan.h" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +IOSlaveSettings::IOSlaveSettings(const TQString& config, TQWidget *parent) +:TDECModule(parent) +,m_config(config,false,true) +{ + TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); + layout->setAutoAdd(true); + + TQGroupBox* group=new TQGroupBox(1,Qt::Horizontal, i18n("Show Links for Following Services"), this); + + m_ftpSettings=new PortSettingsBar(i18n("FTP (TCP, port 21): "), group); + m_httpSettings=new PortSettingsBar(i18n("HTTP (TCP, port 80): "),group); + m_nfsSettings=new PortSettingsBar(i18n("NFS (TCP, port 2049): "),group); + m_smbSettings=new PortSettingsBar(i18n("Windows shares (TCP, ports 445 and 139):"),group); + m_fishSettings=new PortSettingsBar(i18n("Secure Shell/Fish (TCP, port 22): "),group); + m_shortHostnames = new TQCheckBox(i18n("Show &short hostnames (without domain suffix)"),this); + + TQHBox *hbox=new TQHBox(this); + TQLabel *label=new TQLabel(i18n("Default LISa server host: "), hbox); + m_defaultLisaHostLe=new TQLineEdit(hbox); + label->setBuddy(m_defaultLisaHostLe); + + TQWidget *w=new TQWidget(this); + layout->setStretchFactor(m_ftpSettings,0); + layout->setStretchFactor(m_httpSettings,0); + layout->setStretchFactor(m_nfsSettings,0); + layout->setStretchFactor(m_smbSettings,0); + layout->setStretchFactor(m_shortHostnames,0); + layout->setStretchFactor(hbox,0); + layout->setStretchFactor(w,1); + + connect(m_ftpSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); + connect(m_httpSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); + connect(m_nfsSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); + connect(m_smbSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); + connect(m_fishSettings,TQT_SIGNAL(changed()),this,TQT_SIGNAL(changed())); + connect(m_shortHostnames,TQT_SIGNAL(clicked()),this,TQT_SIGNAL(changed())); + connect(m_defaultLisaHostLe, TQT_SIGNAL(textChanged(const TQString&)),this,TQT_SIGNAL(changed())); +} + +void IOSlaveSettings::load() +{ + kdDebug()<<"IOSlaveSettings::load()"<setChecked(m_config.readNumEntry("Support_FTP", PORTSETTINGS_CHECK)); + m_httpSettings->setChecked(m_config.readNumEntry("Support_HTTP", PORTSETTINGS_CHECK)); + m_nfsSettings->setChecked(m_config.readNumEntry("Support_NFS", PORTSETTINGS_CHECK)); + m_smbSettings->setChecked(m_config.readNumEntry("Support_SMB", PORTSETTINGS_CHECK)); + m_fishSettings->setChecked(m_config.readNumEntry("Support_FISH", PORTSETTINGS_CHECK)); + m_shortHostnames->setChecked(m_config.readBoolEntry("ShowShortHostnames",false)); +// m_rlanSidebar->setChecked(m_config.readEntry("sidebarURL", "lan:/") == "rlan:/" ? true : false ); + m_defaultLisaHostLe->setText(m_config.readEntry("DefaultLisaHost", "localhost")); +} + +void IOSlaveSettings::save() +{ + kdDebug()<<"IOSlaveSettings::save()"<selected()); + m_config.writeEntry("Support_HTTP", m_httpSettings->selected()); + m_config.writeEntry("Support_NFS", m_nfsSettings->selected()); + m_config.writeEntry("Support_SMB", m_smbSettings->selected()); + m_config.writeEntry("Support_FISH", m_fishSettings->selected()); + m_config.writeEntry("ShowShortHostnames",m_shortHostnames->isChecked()); +// m_config.writeEntry("sidebarURL", m_rlanSidebar->isChecked() ? "rlan:/" : "lan:/"); + m_config.writeEntry("DefaultLisaHost", m_defaultLisaHostLe->text()); + + m_config.sync(); +} + +#include "kcmtdeiolan.moc" + diff --git a/lanbrowsing/kcmlisa/kcmtdeiolan.desktop b/lanbrowsing/kcmlisa/kcmtdeiolan.desktop new file mode 100644 index 00000000..78279de8 --- /dev/null +++ b/lanbrowsing/kcmlisa/kcmtdeiolan.desktop @@ -0,0 +1,140 @@ +[Desktop Entry] +Type=Application +Icon=samba +Exec=tdecmshell kcmkiolan + +X-TDE-ModuleType=Library +X-TDE-Library=lanbrowser +X-TDE-FactoryName=kiolan + +Name=LAN KIO Slave +Name[ar]=الشبكة المحلية KIO Slave +Name[be]=Модуль tdeioslave для мясцовай сетцы +Name[bn]=ল্যান কে-আই-ও স্লেভ +Name[br]=Sklav LAN evit KIO +Name[bs]=LAN KIO slave +Name[cs]=LAN KIO slave +Name[cy]=Gwas KIO LAN +Name[da]=LAN KIO-slave +Name[de]=Ein-/Ausgabemodul für LAN +Name[eo]=LAN-enel-sklavo +Name[es]=Esclavo de LAN KIO +Name[et]=Kohtvõrgu KIO moodul +Name[eu]=LAN KIO morroia +Name[fi]=LAN-siirräntätyöskentelijä +Name[fr]=Module KIO LAN +Name[ga]=Sclábhaí KIO LAN +Name[gl]=Escravo KIO para redes locáis +Name[hi]=लैन केआईओ स्लेव +Name[hu]=Hálózatböngészés +Name[is]=LAN KIO þræll +Name[it]=Slave LAN KIO +Name[ja]=LAN KIO スレーブ +Name[km]=KIO Slave បណ្ដាញ​មូលដ្ឋាន +Name[lt]=LAN antrinė KDE programa +Name[mn]=Протокол IO LAN +Name[ms]=Hamba LAN KIO +Name[nb]=KIO-slave for LAN +Name[nds]=Nettwark-In-/Utgaavdeenst +Name[ne]=LAN KIO स्लाभ +Name[nl]=LAN IO Slave +Name[nn]=LAN-iuslave +Name[nso]=Lekgoba la LAN KIO +Name[pa]=LAN KIO ਸਲੇਵ +Name[pl]=Procedura we/wy dla sieci lokalnej +Name[pt]='Kioslave' LAN +Name[ru]=Протокол IO LAN +Name[se]=LAN KIO-šláva +Name[sk]=LAN KIO slave +Name[sl]=KIO Slave za LAN +Name[sv]=I/O-slav för lokalt nätverk +Name[ta]=LAN KIO அடிமை +Name[tg]=Фармонбари Шабакаи Маҳаллии KIO +Name[uk]=Підлеглий KIO ЛОМ +Name[zh_CN]=LAN KIO 从属进程 + +Comment=lan: and rlan: setup +Comment[ar]=lan: و rlan: تنصيب +Comment[be]=Настаўленне lan: і rlan: +Comment[bg]=Настройване на протоколите lan: и rlan: +Comment[bn]=ল্যান: এবং আর-ল্যান: ব্যবস্থাপনা +Comment[br]=kefluniañ lan: ha rlan: +Comment[bs]=Podešavanje lan: i rlan: URLova +Comment[ca]=Per l'arranjament de lan: i rlan: +Comment[cs]=Nastavení lan: and rlan: +Comment[cy]=gosod lan: a rlan: +Comment[da]=lan: og rlan: opsætning +Comment[de]=lan: und rlan: einrichten +Comment[el]=Ρύθμιση lan: και rlan: +Comment[eo]=lan kaj rlan: agordo +Comment[es]=lan: y rlan: configuración +Comment[et]=lan: ja rlan: seadistamine +Comment[eu]=lan: eta rlan: konfigurazioa +Comment[fa]=شبکۀ محلی: و شبکۀ محلی راه دور: برپایی +Comment[fi]=lan: ja rlan: asetukset +Comment[fr]=configuration pour lan: et rlan: +Comment[ga]=Cumraíocht lan: agus rlan: +Comment[gl]=Configuración de lan: e rlan: +Comment[he]=שינוי הגדרות :lan ו-:rlan +Comment[hi]=लैन: तथा आर-लैन: सेटअप +Comment[hr]=Podešavanje lan-a i rlan-a +Comment[hu]=A lan: és az rlan: protokoll beállítása +Comment[is]=lan: og rlan: uppsetning +Comment[it]=Configurazione lan: e rlan: +Comment[ja]=lan と rlan のセットアップ +Comment[ka]=lan: და rlan: გამართვა +Comment[kk]=lan: мен rlan: параметрлерді орнату +Comment[km]=រៀបចំ lan: និង rlan: +Comment[lt]=lan: ir rlan: nustatymas +Comment[mk]=Поставување на lan: и rlan: +Comment[mn]=lan: ба rlan: тохируулга +Comment[ms]=lan: dan rlan: pemasangan +Comment[nb]=Oppsett for lan: og rlan: +Comment[nds]=lan: un rlan: instellen +Comment[ne]=lan: र rlan: सेटअप +Comment[nl]=Instellen van lan: en rlan: +Comment[nn]=Oppsett av lan: og rlan: +Comment[nso]=peakanyo ya lan: le rlan: +Comment[pl]=ustawienia lan: i rlan: +Comment[pt]=Configuração do lan: e do rlan: +Comment[pt_BR]=lan: e rlan: configuração +Comment[ru]=параметры lan: и rlan: +Comment[se]=Heivet lan: ja rlan: +Comment[sk]=lan: a rlan: nastavenie +Comment[sl]=Nastavitve lan: in rlan: +Comment[sr]=Подешавање lan:-а и rlan:-а +Comment[sr@Latn]=Podešavanje lan:-a i rlan:-a +Comment[sv]=Inställning av lan: och rlan: +Comment[ta]=lan: மற்றும் rlan: அமைப்பு +Comment[tg]=барпосозии шабакаи маҳаллӣ: ва rlan: +Comment[tr]=lan: ve rlan: ayarları +Comment[uk]=Налаштування lan: і rlan: +Comment[ven]=lan: na rlan: mavhekanyele +Comment[xh]=lan: kunye ne rlan: ucwangciso +Comment[zh_CN]=lan: 和 rlan: 设置 +Comment[zh_HK]=lan: 與 rlan: 設定 +Comment[zh_TW]=lan: 與 rlan: 設定 +Comment[zu]=Ilayini yokuyalela ye applet + +Keywords=lan +Keywords[bg]=настройки, локална, мрежа, lan +Keywords[bn]=ল্যান +Keywords[de]=LAN +Keywords[eo]=reto +Keywords[fa]=شبکۀ داخلی +Keywords[fr]=lan,réseau local,réseau +Keywords[gl]=lan,redes locáis +Keywords[he]=lan,רשת מקומית +Keywords[hi]=लैन +Keywords[lt]=lan,vietinis tinklas +Keywords[nds]=lan,nettwark +Keywords[ne]=ल्यान +Keywords[nl]=lan,lokaal netwerk,netwerk +Keywords[pl]=lan,LAN +Keywords[ru]=lan, локальная сеть +Keywords[sk]=lan,sieť +Keywords[tg]=шабакаи маҳаллӣ +Keywords[uk]=lan, локальна мережа +Keywords[uz]=lokal tarmoq +Keywords[uz@cyrillic]=локал тармоқ +Keywords[zh_CN]=lan,局域网 diff --git a/lanbrowsing/kcmlisa/kcmtdeiolan.h b/lanbrowsing/kcmlisa/kcmtdeiolan.h new file mode 100644 index 00000000..fc94e06a --- /dev/null +++ b/lanbrowsing/kcmlisa/kcmtdeiolan.h @@ -0,0 +1,54 @@ +/* + * kcmtdeiolan.h + * + * Copyright (c) 2000 Alexander Neundorf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +#ifndef KCMTDEIOLAN_H +#define KCMTDEIOLAN_H + +#include "portsettingsbar.h" +#include +#include + +class TQCheckBox; +class TQLineEdit; + +class IOSlaveSettings:public TDECModule +{ + Q_OBJECT + + public: + IOSlaveSettings(const TQString& config, TQWidget *parent=0); + virtual ~IOSlaveSettings() {}; + void load(); + void save(); + signals: + void changed(); + protected: + TDEConfig m_config; + TQCheckBox *m_shortHostnames; + TQCheckBox *m_rlanSidebar; + PortSettingsBar *m_ftpSettings; + PortSettingsBar *m_httpSettings; + PortSettingsBar *m_nfsSettings; + PortSettingsBar *m_smbSettings; + PortSettingsBar *m_fishSettings; + TQLineEdit *m_defaultLisaHostLe; +}; + +#endif diff --git a/lanbrowsing/kcmlisa/main.cpp b/lanbrowsing/kcmlisa/main.cpp index 03d5d045..b7d12c39 100644 --- a/lanbrowsing/kcmlisa/main.cpp +++ b/lanbrowsing/kcmlisa/main.cpp @@ -1,5 +1,5 @@ /* - * main.cpp for lisa,reslisa,kio_lan and kio_rlan kcm module + * main.cpp for lisa,reslisa,tdeio_lan and tdeio_rlan kcm module * * Copyright (C) 2000,2001,2005 Alexander Neundorf * @@ -29,7 +29,7 @@ #include "kcmlisa.h" #include "kcmreslisa.h" -#include "kcmkiolan.h" +#include "kcmtdeiolan.h" extern "C" { @@ -41,9 +41,9 @@ extern "C" { return new ResLisaSettings(TQDir::homeDirPath()+"/.reslisarc", parent); } - KDE_EXPORT TDECModule *create_kiolan(TQWidget *parent, const char *) + KDE_EXPORT TDECModule *create_tdeiolan(TQWidget *parent, const char *) { - return new IOSlaveSettings("kio_lanrc", parent); + return new IOSlaveSettings("tdeio_lanrc", parent); } } diff --git a/lanbrowsing/kcmlisa/setupwizard.h b/lanbrowsing/kcmlisa/setupwizard.h index 87e87064..81b7e45b 100644 --- a/lanbrowsing/kcmlisa/setupwizard.h +++ b/lanbrowsing/kcmlisa/setupwizard.h @@ -1,5 +1,5 @@ /* - * main.cpp for lisa,reslisa,kio_lan and kio_rlan kcm module + * main.cpp for lisa,reslisa,tdeio_lan and tdeio_rlan kcm module * * Copyright (C) 2000 Alexander Neundorf * @@ -23,7 +23,7 @@ #include "kcmlisa.h" #include "kcmreslisa.h" -#include "kcmkiolan.h" +#include "kcmtdeiolan.h" #include "findnic.h" -- cgit v1.2.1