Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
smsccombobox.h
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
m_hasParent;
40
bool
m_useParentValue;
41
int
m_pItem;
42
void
setFont(
bool
wantBold);
43
44
private
slots:
45
void
currentChanged();
46
};
47
48
#endif
ScComboBox
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition:
sccombobox.h:26
SMScComboBox
Definition:
smsccombobox.h:13
scribus
ui
smsccombobox.h
Generated on Tue Sep 29 2015 09:15:24 for Scribus by
1.8.9.1