Ananas Library  0.9.5
awindowslist.h
1 /****************************************************************************
2 ** $Id: awindowslist.h,v 1.7 2006/08/23 08:30:04 app Exp $
3 **
4 ** Main window of Ananas Designer applications
5 **
6 ** Created : 20031201
7 **
8 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved.
9 **
10 ** This file is part of the Designer application of the Ananas
11 ** automation accounting system.
12 **
13 ** This file may be distributed and/or modified under the terms of the
14 ** GNU General Public License version 2 as published by the Free Software
15 ** Foundation and appearing in the file LICENSE.GPL included in the
16 ** packaging of this file.
17 **
18 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 **
21 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru
22 ** See http://www.leaderit.ru/gpl/ for GPL licensing information.
23 **
24 ** Contact org@leaderit.ru if any conditions of this licensing are
25 ** not clear to you.
26 **
27 **********************************************************************/
28 
29 #ifndef AWINDOWSLIST_H
30 #define AWINDOWSLIST_H
31 
32 #include "ananasglobal.h"
33 
34 
35 #include <qwidget.h>
36 #include <qdict.h>
37 
49 class ANANAS_EXPORT aWindowsList : public QWidget
50 {
51  Q_OBJECT
52 public:
53  aWindowsList();
54  virtual ~aWindowsList();
55 
56  void insert( int id, QWidget *window, Q_ULLONG ido = 0 );
57  void remove( int id, Q_ULLONG ido = 0 );
58  void remove( QWidget *window );
59  bool find( int id, Q_ULLONG ido = 0 );
60  bool find( QWidget *window );
61  QWidget *get( int id, Q_ULLONG ido = 0 );
62 
63 private:
64  QDict<QWidget> list;
65  QString conv( int id, Q_ULLONG ido );
66 };
67 
68 
69 #endif //AWINDOWSLIST_H
Класс определяет интерфейс управления списком открытых окон. Наследует QWidget.
Definition: awindowslist.h:49