00001 /**************************************************************************** 00002 ** $Id: atoolbar.h,v 1.1 2004/11/04 08:57:36 avs Exp $ 00003 ** 00004 ** Header file of the Ananas Tool bar of Ananas 00005 ** Designer and Engine applications 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00010 ** 00011 ** This file is part of the Library of the Ananas 00012 ** automation accounting system. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00023 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00024 ** 00025 ** Contact org@leaderit.ru if any conditions of this licensing are 00026 ** not clear to you. 00027 ** 00028 **********************************************************************/ 00029 00030 /**************************************************************************** 00031 ****************************************************************************/ 00032 00033 #ifndef ATOOLBAR_H 00034 #define ATOOLBAR_H 00035 00036 #include <qtoolbar.h> 00037 #include <qaction.h> 00038 00039 #include "acfg.h" 00040 #include "ananas.h" 00041 00042 class ANANAS_EXPORT aToolBar : public QToolBar 00043 { 00044 Q_OBJECT 00045 private: 00046 aCfg *md; 00047 aEngine *en; 00048 QIntDict<QAction> actions; 00049 00050 public: 00051 aToolBar( aCfg *cfg, aCfgItem &obj, aEngine *e, QMainWindow* parent = 0, const char* name = 0 ); 00052 ~aToolBar(); 00053 00054 void ReadTool( aCfgItem &obj ); 00055 00056 public slots: 00057 void on_Item(); 00058 }; 00059 00060 00061 #endif // ATOOLBAR_H