snippetsettings.cpp
Go to the documentation of this file.00001 /* 00002 * File : snippetsettings.cpp 00003 * 00004 * Author: Robert Gruber <rgruber@users.sourceforge.net> 00005 * 00006 * Copyright: See COPYING file that comes with this distribution 00007 */ 00008 00009 #include <qstring.h> 00010 #include <klineedit.h> 00011 #include <qcheckbox.h> 00012 #include <qbuttongroup.h> 00013 00014 #include "snippetsettings.h" 00015 #include "snippet_widget.h" 00016 00017 00018 SnippetSettings::SnippetSettings(QWidget *parent, const char *name) 00019 : SnippetSettingsBase(parent, name) 00020 { 00021 } 00022 00023 SnippetSettings::SnippetSettings(SnippetWidget * w, QWidget *parent, const char *name) 00024 : SnippetSettingsBase(parent, name) 00025 { 00026 _cfg = w->getSnippetConfig(); 00027 } 00028 00029 00030 SnippetSettings::~SnippetSettings() 00031 { 00032 } 00033 00034 00038 void SnippetSettings::slotOKClicked() 00039 { 00040 _cfg->setToolTips(cbToolTip->isChecked()); 00041 _cfg->setDelimiter(leDelimiter->text()); 00042 _cfg->setInputMethod(btnGroup->selectedId()); 00043 } 00044 00045 00046 #include "snippetsettings.moc"