~ubuntu-branches/ubuntu/saucy/juffed/saucy

« back to all changes in this revision

Viewing changes to include/SettingsSelectItem.h

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2011-04-30 13:43:26 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110430134326-0bnvvo5z2medbdxi
Tags: 0.9.1137-1
* New upstream release.
* Remove debian/juffed.1, added upstream (in debian.in).
* Remove debian/patches/static.patch: we can now bundle the .so after
  upstream has resolved soname issues.
* debian/control:
  - Bump Standards-Version to 0.9.2.
  - Update homepage.
  - Do not build-depend on chrpath, not needed anymore.
* debian/rules:
  - Remove chrpath rule, not needed anymore.
* Add juffed-dev and juffed-plugins packages.
* Do not install the libkeybindings.so plugin: causes a segfault on my
  amd64 machine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
JuffEd - An advanced text editor
3
 
Copyright 2007-2009 Mikhail Murzin
4
 
 
5
 
This program is free software; you can redistribute it and/or
6
 
modify it under the terms of the GNU General Public License 
7
 
version 2 as published by the Free Software Foundation.
8
 
 
9
 
This program is distributed in the hope that it will be useful,
10
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
GNU General Public License for more details.
13
 
 
14
 
You should have received a copy of the GNU General Public License
15
 
along with this program; if not, write to the Free Software
16
 
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
17
 
*/
18
 
 
19
 
#ifndef __JUFF_SETTINGS_SELECT_ITEM_H__
20
 
#define __JUFF_SETTINGS_SELECT_ITEM_H__
21
 
 
22
 
#include "SettingsItem.h"
23
 
 
24
 
class QComboBox;
25
 
 
26
 
class SettingsSelectItem : public QObject, public SettingsItem {
27
 
Q_OBJECT
28
 
public:
29
 
        enum Mode {
30
 
                IndexMode,
31
 
                StringMode
32
 
        };
33
 
        SettingsSelectItem(const QString&, const QString&, QComboBox*, Mode mode);
34
 
 
35
 
        virtual void readValue();
36
 
        virtual void writeValue();
37
 
 
38
 
private slots:
39
 
        void onSelected(int);
40
 
 
41
 
private:
42
 
        bool isString_;
43
 
        QComboBox* comboBox_;
44
 
        QString section_;
45
 
        QString key_;
46
 
        int curIndex_;
47
 
        QString curString_;
48
 
        Mode mode_;
49
 
};
50
 
 
51
 
#endif /* __JUFF_SETTINGS_SELECT_ITEM_H__ */