~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to parts/snippet/snippetsettings.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  File : snippetsettings.cpp
 
3
 *
 
4
 *  Author: Robert Gruber <rgruber@users.sourceforge.net>
 
5
 *
 
6
 *  Copyright: See COPYING file that comes with this distribution
 
7
 */
 
8
 
 
9
#include <qstring.h>
 
10
#include <klineedit.h>
 
11
#include <qcheckbox.h>
 
12
#include <qbuttongroup.h>
 
13
 
 
14
#include "snippetsettings.h"
 
15
#include "snippet_widget.h"
 
16
 
 
17
 
 
18
SnippetSettings::SnippetSettings(QWidget *parent, const char *name)
 
19
 : SnippetSettingsBase(parent, name)
 
20
{
 
21
  _widget = NULL;
 
22
}
 
23
 
 
24
SnippetSettings::SnippetSettings(SnippetWidget * w, QWidget *parent, const char *name)
 
25
 : SnippetSettingsBase(parent, name)
 
26
{
 
27
  _cfg = w->getSnippetConfig();
 
28
  _widget = w;
 
29
}
 
30
 
 
31
 
 
32
SnippetSettings::~SnippetSettings()
 
33
{
 
34
}
 
35
 
 
36
 
 
37
/*!
 
38
    \fn SnippetSettings::slotOKClicked()
 
39
 */
 
40
void SnippetSettings::slotOKClicked()
 
41
{
 
42
    _cfg->setToolTips(cbToolTip->isChecked());
 
43
    _cfg->setDelimiter(leDelimiter->text());
 
44
    _cfg->setInputMethod(btnGroup->selectedId());
 
45
    _cfg->setAutoOpenGroups(btnGroupAutoOpen->selectedId());
 
46
 
 
47
    if (_widget)
 
48
        _widget->languageChanged();
 
49
}
 
50
 
 
51
 
 
52
#include "snippetsettings.moc"