summaryrefslogtreecommitdiffstats
path: root/kitchensync/src/groupconfigdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kitchensync/src/groupconfigdialog.cpp')
-rw-r--r--kitchensync/src/groupconfigdialog.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/kitchensync/src/groupconfigdialog.cpp b/kitchensync/src/groupconfigdialog.cpp
index 4d8be65d0..d0b5894f9 100644
--- a/kitchensync/src/groupconfigdialog.cpp
+++ b/kitchensync/src/groupconfigdialog.cpp
@@ -28,7 +28,7 @@
GroupConfigDialog::GroupConfigDialog( TQWidget *parent, SyncProcess *process )
: KDialogBase( parent, 0, true, i18n("Configure Synchronization Group"),
- Ok )
+ Ok | User1 | User2, Ok )
{
TQFrame *topFrame = makeMainWidget();
@@ -40,6 +40,13 @@ GroupConfigDialog::GroupConfigDialog( TQWidget *parent, SyncProcess *process )
mConfigWidget->setSyncProcess( process );
setInitialSize( configDialogSize( "size_groupconfigdialog" ) );
+
+ enableButton( User1, false );
+ setButtonText( User1, i18n( "Remove Member" ) );
+
+ connect( mConfigWidget, TQT_SIGNAL( memberSelected( bool ) ), TQT_SLOT( memberSelected( bool ) ) );
+
+ setButtonText( User2, i18n("Add Member...") );
}
GroupConfigDialog::~GroupConfigDialog()
@@ -54,4 +61,19 @@ void GroupConfigDialog::slotOk()
accept();
}
+void GroupConfigDialog::slotUser1()
+{
+ mConfigWidget->removeMember();
+}
+
+void GroupConfigDialog::slotUser2()
+{
+ mConfigWidget->addMember();
+}
+
+void GroupConfigDialog::memberSelected( bool selected )
+{
+ enableButton( User1, selected );
+}
+
#include "groupconfigdialog.moc"