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

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

#ifndef DJVIEW_BASE_H
#define DJVIEW_BASE_H
#include <djPixel.h>

namespace dj {
class ImageOpStack;
}

namespace djview {
using namespace dj;

// Images.
//
void imageOpDefault();

// Playback.
//
enum PLAYBACK {
  PLAYBACK_STOP,
  PLAYBACK_FORWARD,
  PLAYBACK_REVERSE
};
int playbackFrame(
  int,
  int start, int end,
  bool inPoint, bool outPoint,
  int inFrame, int outFrame,
  bool wrap = true
);

// Tool mode.
//
enum TOOL {
  TOOL_PICK,
  TOOL_MAGNIFY,
  TOOL_COLOR_SAMPLE
};

// Labels.
//
inline const StrList fileProxyStr()
  { return StrList() + Str("None") + Str("1/2") + Str("1/4") + Str("1/8"); }
inline const StrList filePixelFormatStr()
  { return StrList() + Str("Default") + pixelFormatStr(); }
inline const StrList filePixelTypeStr()
  { return StrList() + Str("Default") + pixelTypeStr(); }

}

#endif
