/***************************************************************************
                            QMenuData.h -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QMENUDATA_H
#define QMENUDATA_H

#include <Foundation/NSObject.h>
#include <Foundation/NSString.h>
#include <qtobjc/QtSupport.h>

@class QIconSet;
@class QPopupMenu;
@class QCustomMenuItem;
@class QObject;
@class QPixmap;
@class QWidget;
@class QMenuData;
@class QMenuItem;
@class QKeySequence;

@protocol QMenuDataInterface
- (unsigned int) count;
- (int) insertTextItem: (NSString *)text receiver: (QObject *)receiver slot: (NSString *)member accel: (QKeySequence*)accel identifier: (int)identifier index: (int)index;
- (int) insertTextItem: (NSString *)text receiver: (QObject *)receiver slot: (NSString *)member ;
- (int) insertIconSetItem: (QIconSet*)icon text: (NSString *)text receiver: (QObject *)receiver slot: (NSString *)member accel: (QKeySequence*)accel identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon text: (NSString *)text receiver: (QObject *)receiver slot: (NSString *)member ;
- (int) insertPixmapItem: (QPixmap *)pixmap receiver: (QObject *)receiver slot: (NSString *)member accel: (QKeySequence*)accel identifier: (int)identifier index: (int)index;
- (int) insertPixmapItem: (QPixmap *)pixmap receiver: (QObject *)receiver slot: (NSString *)member ;
- (int) insertIconSetItem: (QIconSet*)icon pixmap: (QPixmap *)pixmap receiver: (QObject *)receiver slot: (NSString *)member accel: (QKeySequence*)accel identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon pixmap: (QPixmap *)pixmap receiver: (QObject *)receiver slot: (NSString *)member ;
- (int) insertTextItem: (NSString *)text identifier: (int)identifier index: (int)index;
- (int) insertTextItem: (NSString *)text identifier: (int)identifier;
- (int) insertTextItem: (NSString *)text ;
- (int) insertIconSetItem: (QIconSet*)icon text: (NSString *)text identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon text: (NSString *)text ;
- (int) insertTextItem: (NSString *)text popup: (QPopupMenu*)popup identifier: (int)identifier index: (int)index;
- (int) insertTextItem: (NSString *)text popup: (QPopupMenu*)popup ;
- (int) insertIconSetItem: (QIconSet*)icon text: (NSString *)text popup: (QPopupMenu*)popup identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon text: (NSString *)text popup: (QPopupMenu*)popup ;
- (int) insertPixmapItem: (QPixmap *)pixmap identifier: (int)identifier index: (int)index;
- (int) insertPixmapItem: (QPixmap *)pixmap ;
- (int) insertIconSetItem: (QIconSet*)icon pixmap: (QPixmap *)pixmap identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon pixmap: (QPixmap *)pixmap ;
- (int) insertPixmapItem: (QPixmap *)pixmap popup: (QPopupMenu*)popup identifier: (int)identifier index: (int)index;
- (int) insertPixmapItem: (QPixmap *)pixmap popup: (QPopupMenu*)popup ;
- (int) insertIconSetItem: (QIconSet*)icon pixmap: (QPixmap *)pixmap popup: (QPopupMenu*)popup identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon pixmap: (QPixmap *)pixmap popup: (QPopupMenu*)popup ;
- (int) insertWidgetItem: (QWidget *)widget identifier: (int)identifier index: (int)index;
- (int) insertWidgetItem: (QWidget *)widget ;
- (int) insertIconSetItem: (QIconSet*)icon custom: (QCustomMenuItem*)custom identifier: (int)identifier index: (int)index;
- (int) insertIconSetItem: (QIconSet*)icon custom: (QCustomMenuItem*)custom ;
- (int) insertCustomMenuItem: (QCustomMenuItem*)custom identifier: (int)identifier index: (int)index;
- (int) insertCustomMenuItem: (QCustomMenuItem*)custom ;
- (int) insertSeparator: (int)index;
- (int) insertSeparator;
- removeIntItem: (int)identifier;
- removeItemAt: (int)index;
- clear;
- (QKeySequence*) accel: (int)identifier;
- setAccel: (QKeySequence*)key identifier: (int)identifier;
- (QIconSet*) iconSet: (int)identifier;
- (NSString *) text: (int)identifier;
- (QPixmap*) pixmap: (int)identifier;
- setWhatsThis: (int)identifier string: (NSString *)arg1;
- (NSString *) whatsThis: (int)identifier;
- changeIntItem: (int)identifier text: (NSString *)text;
- changeIntItem: (int)identifier pixmap: (QPixmap *)pixmap;
- changeIntItem: (int)identifier icon: (QIconSet*)icon text: (NSString *)text;
- changeIntItem: (int)identifier icon: (QIconSet*)icon pixmap: (QPixmap *)pixmap;
- changeTextItem: (NSString *)text identifier: (int)identifier;
- changePixmapItem: (QPixmap *)pixmap identifier: (int)identifier;
- changeIconSetItem: (QIconSet*)icon text: (NSString *)text identifier: (int)identifier;
- (BOOL) isItemActive: (int)identifier;
- (BOOL) isItemEnabled: (int)identifier;
- setItemEnabled: (int)identifier enable: (BOOL)enable;
- (BOOL) isItemChecked: (int)identifier;
- setItemChecked: (int)identifier check: (BOOL)check;
- updateIntItem: (int)identifier;
- (int) indexOf: (int)identifier;
- (int) idAt: (int)index;
- setId: (int)index identifier: (int)identifier;
- (BOOL) connectItem: (int)identifier receiver: (QObject *)receiver slot: (NSString *)member;
- (BOOL) disconnectItem: (int)identifier receiver: (QObject *)receiver slot: (NSString *)member;
- (BOOL) setItemParameter: (int)identifier param: (int)param;
- (int) itemParameter: (int)identifier;
- (QMenuItem*) findItem: (int)identifier;
//- (QMenuItem*) findItem: (int)identifier parent: (QMenuData**)parent;
- (QMenuItem*) findPopup: (QPopupMenu*)arg1 index: (int*)index;
- (QMenuItem*) findPopup: (QPopupMenu*)arg1 ;
- activateItemAt: (int)index;
- menuContentsChanged;
- menuStateChanged;
- menuInsPopup: (QPopupMenu*)arg1;
- menuDelPopup: (QPopupMenu*)arg1;
@end

@class QKeySequence; 
@class QMenuData; 

@interface QMenuData : NSObject <QtSupport,QMenuDataInterface>
{
@private
	void * _qt;
	BOOL  _allocatedInObjcWorld;
}
- init;
- (void) dealloc;
@end

#endif
