Ananas Library
0.9.5
Титульная страница
Классы
Файлы
Файлы
src
acombobox.h
1
/****************************************************************************
2
** $Id: acombobox.h,v 1.3 2006/10/30 13:36:41 app Exp $
3
**
4
** Header file of the field plugin of Ananas
5
** Designer and Engine applications
6
**
7
** Copyright (C) 2006 Andrey Paskal
8
**
9
** This file is part of the Ananas Plugins of the Ananas
10
** automation accounting system.
11
**
12
** This file may be distributed and/or modified under the terms of the
13
** GNU General Public License version 2 as published by the Free Software
14
** Foundation and appearing in the file LICENSE.GPL included in the
15
** packaging of this file.
16
**
17
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
18
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
19
**
20
**********************************************************************/
21
22
#ifndef ACOMBOBOX_H
23
#define ACOMBOBOX_H
24
25
26
#include <qwidgetplugin.h>
27
#include "qcombobox.h"
28
29
55
class
QT_WIDGET_PLUGIN_EXPORT
AComboBox
:
public
QComboBox
56
{
57
Q_OBJECT
58
public
:
59
AComboBox
( QWidget* parent=0,
const
char
* name=0 );
60
AComboBox
(
bool
rw, QWidget* parent=0,
const
char
* name=0 );
61
~AComboBox
();
62
public
slots:
63
64
int
count()
const
;
65
66
void
insertStringList(
const
QStringList &,
int
index=-1 );
67
void
insertStrList(
const
QStrList &,
int
index=-1 );
68
void
insertStrList(
const
QStrList *,
int
index=-1 );
69
void
insertStrList(
const
char
**,
int
numStrings=-1,
int
index=-1);
70
71
void
insertItem(
const
QString &text,
int
index=-1 );
72
void
insertItem(
const
QPixmap &pixmap,
int
index=-1 );
73
void
insertItem(
const
QPixmap &pixmap,
const
QString &text,
int
index=-1 );
74
75
void
removeItem(
int
index );
76
77
int
currentItem();
78
virtual
void
setCurrentItem(
int
index );
79
80
QString currentText()
const
;
81
virtual
void
setCurrentText(
const
QString& );
82
83
QString text(
int
index )
const
;
84
const
QPixmap *pixmap(
int
index )
const
;
85
86
void
changeItem(
const
QString &text,
int
index );
87
void
changeItem(
const
QPixmap &pixmap,
int
index );
88
void
changeItem(
const
QPixmap &pixmap,
const
QString &text,
int
index );
89
90
bool
autoResize()
const
;
91
virtual
void
setAutoResize(
bool
);
92
QSize sizeHint()
const
;
93
94
void
setPalette(
const
QPalette & );
95
void
setFont(
const
QFont & );
96
void
setEnabled(
bool
);
97
98
virtual
void
setSizeLimit(
int
);
99
int
sizeLimit()
const
;
100
101
102
virtual
void
setMaxCount(
int
);
103
int
maxCount()
const
;
104
105
virtual
void
setInsertionPolicy( Policy policy );
106
QComboBox::Policy insertionPolicy()
const
;
107
108
virtual
void
setValidator(
const
QValidator * );
109
const
QValidator * validator()
const
;
110
111
virtual
void
setListBox( QListBox * );
112
QListBox * listBox()
const
;
113
114
virtual
void
setLineEdit( QLineEdit *edit );
115
QLineEdit* lineEdit()
const
;
116
117
virtual
void
setAutoCompletion(
bool
);
118
bool
autoCompletion()
const
;
119
120
bool
eventFilter( QObject *
object
, QEvent *event );
121
122
void
setDuplicatesEnabled(
bool
enable );
123
bool
duplicatesEnabled()
const
;
124
125
bool
editable()
const
;
126
void
setEditable(
bool
);
127
128
virtual
void
popup();
129
130
void
hide();
131
132
};
133
134
135
#endif
AComboBox
Плагин – виджет обеспечивает доступ из Ананас.Скрипта ко всем публичным методам QComboBox,...
Definition
acombobox.h:56
Создано системой
1.12.0