/*------------------------------------------------------------------------------
 src/bin/djview/imageInfoTool.h

 Copyright (c) 2004-2006 Darby Johnston.
 All rights reserved.
 Use is subject to license terms.
------------------------------------------------------------------------------*/

#ifndef DJVIEW_IMAGE_INFO_TOOL_H
#define DJVIEW_IMAGE_INFO_TOOL_H
#include "base.h"
#include <djImage.h>
#include <djDialog.h>

namespace dj {
class TextDisplayWidget;
}

namespace djview {

class _ImageInfoToolTagsWidget;

// Image information tool.
//
class ImageInfoTool : public DialogBase {
public:
  
  ImageInfoTool();
  
  // Set.
  //
  void set(const Str & fileName, const Image *);

private:

  DJ_CALLBACK(ImageInfoTool, closeCallback, bool)
  void widgetUpdate();

  Str _fileName;
  Vec2i _size;
  Pixel _pixel;
  ImageTagList _tagList;
  
  TextDisplayWidget * _fileNameWidget;
  TextDisplayWidget * _sizeWidget, * _aspectWidget;
  TextDisplayWidget * _pixelWidget;
  _ImageInfoToolTagsWidget * _tagsWidget;
};

}

#endif
