summaryrefslogtreecommitdiff
path: root/library/categoryselect.h
authorkergoth <kergoth>2002-06-07 18:53:14 (UTC)
committer kergoth <kergoth>2002-06-07 18:53:14 (UTC)
commit640d964cfdc7467f6cacb513087cd3acda2c04f0 (patch) (side-by-side diff)
tree9a784686c1795f8b1f81eb344598f3b549d43467 /library/categoryselect.h
parentdfb9c76738bb68e235114c5ad43dbd26a59b98ab (diff)
downloadopie-640d964cfdc7467f6cacb513087cd3acda2c04f0.zip
opie-640d964cfdc7467f6cacb513087cd3acda2c04f0.tar.gz
opie-640d964cfdc7467f6cacb513087cd3acda2c04f0.tar.bz2
Backing out unintentional merge from TT branch.
Diffstat (limited to 'library/categoryselect.h') (more/less context) (ignore whitespace changes)
-rw-r--r--library/categoryselect.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/library/categoryselect.h b/library/categoryselect.h
index 5c6b565..7a8e491 100644
--- a/library/categoryselect.h
+++ b/library/categoryselect.h
@@ -36,7 +36,8 @@ class CategoryCombo : public QComboBox
Q_OBJECT
public:
- CategoryCombo( QWidget *parent, const char* name = 0 );
+ CategoryCombo( QWidget *parent, const char* name = 0, int width=0);
+
~CategoryCombo();
int currentCategory() const;
@@ -46,6 +47,8 @@ public:
void initCombo( const QArray<int> &recCats, const QString &appName,
const QString &visibleName /* = appName */ );
+ QArray<int> initComboWithRefind( const QArray<int> &recCats, const QString &appName );
+
signals:
void sigCatChanged( int newUid );
@@ -65,13 +68,16 @@ class CategorySelect : public QHBox
Q_OBJECT
public:
// we need two constructors, the first gets around designer limitations
- CategorySelect( QWidget *parent = 0, const char *name = 0 );
+
+ CategorySelect( QWidget *parent = 0, const char *name = 0, int width = 0 );
CategorySelect( const QArray<int> &vlCats, const QString &appName,
- QWidget *parent = 0, const char *name = 0 );
+ QWidget *parent = 0, const char *name = 0,
+ int width = 0);
CategorySelect( const QArray<int> &vlCats, const QString &appName,
const QString &visibleName, QWidget *parent = 0,
- const char *name = 0 );
+ const char *name = 0 , int width = 0);
+
~CategorySelect();
const QArray<int> &currentCategories() const;
@@ -80,24 +86,26 @@ public:
// pretty much if you don't set it the constructor, you need to
// call it here ASAP!
// however this call is depreciated...
- void setCategories( const QArray<int> &vlCats, const QString &appName );
- // use this one instead (for translating )
- void setCategories( const QArray<int> &vlCats, const QString &appName,
- const QString &visibleName );
+ QString setCategories( const QArray<int> &vlCats, const QString &appName );
+ QString setCategories( const QArray<int> &vlCats, const QString &appName,
+ const QString &visibleName );
// these were added for find dialog.
void setRemoveCategoryEdit( bool remove );
void setAllCategories( bool add );
+ void setFixedWidth(int width);
signals:
void signalSelected( int );
private slots:
void slotDialog();
+
+public slots:
void slotNewCat( int id );
private:
- void init();
+ void init(int width=0);
QString mStrAppName;
CategoryCombo *cmbCat;
QToolButton *cmdCat;