~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/smsccombobox.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2009-02-09 09:25:18 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090209092518-iqsxmh3pjspgrdyd
Tags: 1.3.5.dfsg~svn20090208-2
debian/control: Use "type-handling -n arm,armel,armeb any" to generate the
list of architectures to build on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
 
3
to the COPYING file provided with the program. Following this notice may exist
 
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
 
5
for which a new license (GPL+exception) is in place.
 
6
*/
 
7
#ifndef SMSCCOMBOBOX_H
 
8
#define SMSCCOMBOBOX_H
 
9
 
 
10
#include "sccombobox.h"
 
11
 
 
12
 
 
13
class SMScComboBox  : public ScComboBox
 
14
{
 
15
        Q_OBJECT
 
16
public:
 
17
        SMScComboBox(QWidget *parent);
 
18
        ~SMScComboBox() {};
 
19
 
 
20
        void setCurrentItem(int i);
 
21
        void setCurrentItem(int i, bool isParentValue);
 
22
        
 
23
        // Set the current index of a combobox according to the value
 
24
        // stored into the data associated to items. Thus, allowing 
 
25
        // separation between presentation and data.Isn’t that cool? ;-)
 
26
        void setCurrentItemByData(int i);
 
27
        void setCurrentItemByData(int i, bool isParentValue);
 
28
        void setCurrentItemByData(double d);
 
29
        void setCurrentItemByData(double d, bool isParentValue);
 
30
        
 
31
        int getItemIndexForData(int i);
 
32
        int getItemIndexForData(double d);
 
33
        
 
34
        void setParentItem(int i);
 
35
 
 
36
        bool useParentValue();
 
37
 
 
38
private:
 
39
        bool   hasParent_;
 
40
        bool   useParentValue_;
 
41
        int    pItem_;
 
42
        void setFont(bool wantBold);
 
43
 
 
44
private slots:
 
45
        void currentChanged();
 
46
};
 
47
 
 
48
#endif