kmail

snippetsettings.cpp
1 /***************************************************************************
2  * snippet feature from tdevelop/plugins/snippet/ *
3  * *
4  * Copyright (C) 2007 by Robert Gruber *
5  * rgruber@users.sourceforge.net *
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #include <tqstring.h>
15 #include <klineedit.h>
16 #include <tqcheckbox.h>
17 #include <tqbuttongroup.h>
18 
19 #include "snippetsettings.h"
20 #include "snippetwidget.h"
21 
22 
23 SnippetSettings::SnippetSettings(TQWidget *parent, const char *name)
24  : SnippetSettingsBase(parent, name)
25 {
26  _widget = NULL;
27 }
28 
29 SnippetSettings::SnippetSettings(SnippetWidget * w, TQWidget *parent, const char *name)
30  : SnippetSettingsBase(parent, name)
31 {
32  _cfg = w->getSnippetConfig();
33  _widget = w;
34 }
35 
36 
37 SnippetSettings::~SnippetSettings()
38 {
39 }
40 
41 
45 void SnippetSettings::slotOKClicked()
46 {
47  _cfg->setToolTips(cbToolTip->isChecked());
48  _cfg->setDelimiter(leDelimiter->text());
49  _cfg->setInputMethod(btnGroup->selectedId());
50 }
51 
52 
53 #include "snippetsettings.moc"
This is the widget which gets added to the right TreeToolView.
Definition: snippetwidget.h:46