00001 /**************************************************************************** 00002 ** $Id: awindowslist.h,v 1.7 2006/08/23 08:30:04 app Exp $ 00003 ** 00004 ** Main window of Ananas Designer applications 00005 ** 00006 ** Created : 20031201 00007 ** 00008 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00009 ** 00010 ** This file is part of the Designer application of the Ananas 00011 ** automation accounting system. 00012 ** 00013 ** This file may be distributed and/or modified under the terms of the 00014 ** GNU General Public License version 2 as published by the Free Software 00015 ** Foundation and appearing in the file LICENSE.GPL included in the 00016 ** packaging of this file. 00017 ** 00018 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00019 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00020 ** 00021 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00022 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00023 ** 00024 ** Contact org@leaderit.ru if any conditions of this licensing are 00025 ** not clear to you. 00026 ** 00027 **********************************************************************/ 00028 00029 #ifndef AWINDOWSLIST_H 00030 #define AWINDOWSLIST_H 00031 00032 #include "ananasglobal.h" 00033 00034 00035 #include <qwidget.h> 00036 #include <qdict.h> 00037 00049 class ANANAS_EXPORT aWindowsList : public QWidget 00050 { 00051 Q_OBJECT 00052 public: 00053 aWindowsList(); 00054 virtual ~aWindowsList(); 00055 00056 void insert( int id, QWidget *window, Q_ULLONG ido = 0 ); 00057 void remove( int id, Q_ULLONG ido = 0 ); 00058 void remove( QWidget *window ); 00059 bool find( int id, Q_ULLONG ido = 0 ); 00060 bool find( QWidget *window ); 00061 QWidget *get( int id, Q_ULLONG ido = 0 ); 00062 00063 private: 00064 QDict<QWidget> list; 00065 QString conv( int id, Q_ULLONG ido ); 00066 }; 00067 00068 00069 #endif //AWINDOWSLIST_H