summaryrefslogtreecommitdiffstats
path: root/filesharing/advanced/kcm_sambaconf/kcminterface.ui.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /filesharing/advanced/kcm_sambaconf/kcminterface.ui.h
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'filesharing/advanced/kcm_sambaconf/kcminterface.ui.h')
-rw-r--r--filesharing/advanced/kcm_sambaconf/kcminterface.ui.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/filesharing/advanced/kcm_sambaconf/kcminterface.ui.h b/filesharing/advanced/kcm_sambaconf/kcminterface.ui.h
new file mode 100644
index 00000000..708667ec
--- /dev/null
+++ b/filesharing/advanced/kcm_sambaconf/kcminterface.ui.h
@@ -0,0 +1,124 @@
+/****************************************************************************
+** ui.h extension file, included from the uic-generated form implementation.
+**
+** If you wish to add, delete or rename slots use Qt Designer which will
+** update this file, preserving your code. Create an init() slot in place of
+** a constructor, and a destroy() slot in place of a destructor.
+*****************************************************************************/
+
+/******************************************************************************
+ * *
+ * This file is part of KSambaPlugin. *
+ * *
+ * KSambaPlugin 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. *
+ * *
+ * KSambaPlugin 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 KSambaPlugin; if not, write to the Free Software *
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *
+ * *
+ ******************************************************************************/
+
+void KcmInterface::init()
+{
+ addShareBtn->setIconSet(SmallIconSet("filenew"));
+ editShareBtn->setIconSet(SmallIconSet("edit"));
+ removeShareBtn->setIconSet(SmallIconSet("editdelete"));
+ editDefaultShareBtn->setIconSet(SmallIconSet("queue"));
+
+ addPrinterBtn->setIconSet(SmallIconSet("filenew"));
+ editPrinterBtn->setIconSet(SmallIconSet("edit"));
+ removePrinterBtn->setIconSet(SmallIconSet("editdelete"));
+ editDefaultPrinterBtn->setIconSet(SmallIconSet("print_class"));
+
+ advancedWarningPixLbl->setPixmap(SmallIcon("messagebox_warning"));
+
+}
+
+
+
+void KcmInterface::changedSlot()
+{
+ emit changed();
+}
+
+
+void KcmInterface::securityLevelCombo_activated( int i )
+{
+ passwordServerEdit->setDisabled(i<2);
+ allowGuestLoginsChk->setDisabled(i==0);
+ updateSecurityLevelHelpLbl();
+}
+
+void KcmInterface::KURLLabel1_leftClickedURL()
+{
+ KProcess* p = new KProcess();
+
+ *p << "konqueror";
+ *p << "man:smb.conf";
+ p->start();
+
+
+
+}
+
+
+
+
+void KcmInterface::lmAnnounceCombo_activated( int i)
+{
+ lmIntervalSpin->setEnabled(i==0);
+}
+
+
+
+
+void KcmInterface::allowGuestLoginsChk_toggled( bool b)
+{
+ int i = 0;
+ if (b)
+ i = 1;
+
+ mapToGuestCombo->setCurrentItem(i);
+}
+
+
+void KcmInterface::mapToGuestCombo_activated( int i)
+{
+ allowGuestLoginsChk->setChecked(i>0);
+}
+
+void KcmInterface::updateSecurityLevelHelpLbl()
+{
+ if (shareRadio->isChecked()) {
+ securityLevelHelpLbl->setText(i18n("Use the <i>share</i> security level if you have a home network "
+ "or a small office network.<br> It allows everyone to read the list "
+ "of all your shared directories and printers before a login is required."));
+
+ } else if (userRadio->isChecked()) {
+ securityLevelHelpLbl->setText(i18n("Use the <i>user</i> security level if you have a bigger network "
+ "and you do not want to allow everyone to read your list of shared "
+ "directories and printers without a login.<p>"
+ "If you want to run your Samba server as a <b>Primary Domain controller</b> (PDC) "
+ "you also have to set this option."));
+} else if (serverRadio->isChecked()) {
+ securityLevelHelpLbl->setText(i18n("Use the <i>server</i> security level if you have a big network "
+ "and the samba server should validate the username/password "
+ "by passing it to another SMB server, such as an NT box."));
+ } else if (domainRadio->isChecked()) {
+ securityLevelHelpLbl->setText(i18n("Use the <i>domain</i> security level if you have a big network "
+ "and the samba server should validate the username/password "
+ "by passing it to a Windows NT Primary or Backup Domain Controller."));
+ } else if (adsRadio->isChecked()) {
+ securityLevelHelpLbl->setText(i18n("Use the <i>ADS</i> security level if you have a big network "
+ "and the samba server should act as a domain member in an ADS realm."));
+ }
+
+}