/**************************************************************************

    This file is part of explorer95, a file manager for fvwm95.
    Copyright (C) 1996, 1997 David Barth, Hector Peraza.

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

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

**************************************************************************/

#ifndef __OXNEWWIDGETS_H
#define __OXNEWWIDGETS_H

#include <X11/Xlib.h>

#include <xclass/OXFrame.h>
#include <xclass/OXWindow.h>
#include <xclass/OXWidgets.h>
#include <xclass/OString.h>
#include <xclass/utils.h>


//-------------------------------------------------------------------

struct _tb_data {
  char *pixmap_name;
  char **pixmap_data;
  char *tip_text;
  int  type;
  int  id;
  OXButton *button;
};

class OXToolBar : public OXCompositeFrame {
public:
  OXToolBar(const OXWindow *p, int w, int h,
            unsigned int options = HORIZONTAL_FRAME,
            unsigned long back = _defaultFrameBackground) :
    OXCompositeFrame(p, w, h, options, back) {}

  void AddButtons(_tb_data *tb_data, OXMainFrame *parent);
};

#endif
