1
/****************************************************************************
2
** ui.h extension file, included from the uic-generated form implementation.
4
** If you wish to add, delete or rename slots use Qt Designer which will
5
** update this file, preserving your code. Create an init() slot in place of
6
** a constructor, and a destroy() slot in place of a destructor.
7
*****************************************************************************/
9
/******************************************************************************
11
* This file is part of KSambaPlugin. *
13
* KSambaPlugin is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
* KSambaPlugin is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
23
* You should have received a copy of the GNU General Public License *
24
* along with KSambaPlugin; if not, write to the Free Software Foundation, *
25
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
27
******************************************************************************/
29
#ifndef KCM_SAMBACONF_KCMINTERFACE_UI_H
30
#define KCM_SAMBACONF_KCMINTERFACE_UI_H
32
void KcmInterface::init()
34
addShareBtn->setIconSet(SmallIconSet("document-new"));
35
editShareBtn->setIconSet(SmallIconSet("document-properties"));
36
removeShareBtn->setIconSet(SmallIconSet("edit-delete"));
37
editDefaultShareBtn->setIconSet(SmallIconSet("queue"));
39
addPrinterBtn->setIconSet(SmallIconSet("document-new"));
40
editPrinterBtn->setIconSet(SmallIconSet("document-properties"));
41
removePrinterBtn->setIconSet(SmallIconSet("edit-delete"));
42
editDefaultPrinterBtn->setIconSet(SmallIconSet("printer-multiple"));
44
advancedWarningPixLbl->setPixmap(SmallIcon("dialog-warning"));
48
void KcmInterface::changedSlot()
54
void KcmInterface::securityLevelCombo_activated( int i )
56
passwordServerEdit->setDisabled(i<2);
57
allowGuestLoginsChk->setDisabled(i==0);
61
void KcmInterface::shareRadio_clicked()
63
securityLevelHelpLbl->setText(i18n("Use the <i>share</i> security level if you have a home network "
64
"or a small office network.<br /> It allows everyone to read the list "
65
"of all your shared directories and printers before a login is required."));
69
void KcmInterface::userRadio_clicked()
71
securityLevelHelpLbl->setText(i18n("Use the <i>user</i> security level if you have a bigger network "
72
"and you do not want to allow everyone to read your list of shared "
73
"directories and printers without a login.<br /><br />"
74
"If you want to run your Samba server as a <b>Primary Domain controller</b> (PDC) "
75
"you also have to set this option."));
78
void KcmInterface::serverRadio_clicked()
80
securityLevelHelpLbl->setText(i18n("Use the <i>server</i> security level if you have a big network "
81
"and the samba server should validate the username/password "
82
"by passing it to another SMB server, such as an NT box."));
86
void KcmInterface::domainRadio_clicked()
88
securityLevelHelpLbl->setText(i18n("Use the <i>domain</i> security level if you have a big network "
89
"and the samba server should validate the username/password "
90
"by passing it to a Windows NT Primary or Backup Domain Controller."));
94
void KcmInterface::adsRadioClicked()
96
securityLevelHelpLbl->setText(i18n("Use the <i>ADS</i> security level if you have a big network "
97
"and the samba server should act as a domain member in an ADS realm."));
101
void KcmInterface::KUrlLabel1_leftClickedURL()
103
K3Process* p = new K3Process();
106
*p << "man:smb.conf";
111
void KcmInterface::lmAnnounceCombo_activated( int i)
113
lmIntervalSpin->setEnabled(i==0);
117
void KcmInterface::allowGuestLoginsChk_toggled( bool b)
123
mapToGuestCombo->setCurrentItem(i);
127
void KcmInterface::mapToGuestCombo_activated( int i)
129
allowGuestLoginsChk->setChecked(i>0);
132
#endif // KCM_SAMBACONF_KCMINTERFACE_UI_H