Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef CASMCONFIGPANEL2_H
Toshihiro Shimizu 890ddd
#define CASMCONFIGPANEL2_H
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "submitpage.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tw/tw.h"
Toshihiro Shimizu 890ddd
#include "tw/textfield.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// forward declarations
Toshihiro Shimizu 890ddd
class TLabel;
Toshihiro Shimizu 890ddd
class TNumField;
Toshihiro Shimizu 890ddd
class TOptionMenu;
Toshihiro Shimizu 890ddd
class TButton;
Toshihiro Shimizu 890ddd
class TFilePath;
Toshihiro Shimizu 890ddd
class TCheckBox;
Toshihiro Shimizu 890ddd
class CasmTask2;
Toshihiro Shimizu 890ddd
class CasmConfigPanel2;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//==============================================================================
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class FilePathField : public TTextField {
Shinya Kitaoka 120a6e
  CasmConfigPanel2 *m_page;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  FilePathField(TWidget *parent, string name = "");
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void onFocusChange(bool on);
Shinya Kitaoka 120a6e
  void close();
Shinya Kitaoka 120a6e
  void keyDown(int key, unsigned long flags, const TPoint &p);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//==============================================================================
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class CasmConfigPanel2 : public TaskConfigPanel {
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  CasmConfigPanel2(TWidget *parent);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void configureNotify(const TDimension &d);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void setTask(SubmitPageTask *task);
Shinya Kitaoka 120a6e
  SubmitPageTask *getTask() const;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void loadSetup(const TFilePath &fp);
Shinya Kitaoka 120a6e
  void onNumField(double v, int type);
Shinya Kitaoka 120a6e
  void onColumnField(string value, int type);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Shinya Kitaoka 120a6e
  CasmTask2 *m_task;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_setupLabel;
Shinya Kitaoka 120a6e
  FilePathField *m_setupTextField;
Shinya Kitaoka 120a6e
  TButton *m_setupBrowseBtn;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_chunkSizeLabel;
Shinya Kitaoka 120a6e
  TNumField *m_chunkSize;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_fromLabel;
Shinya Kitaoka 120a6e
  TLabel *m_toLabel;
Shinya Kitaoka 120a6e
  TLabel *m_stepLabel;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TNumField *m_from;
Shinya Kitaoka 120a6e
  TNumField *m_to;
Shinya Kitaoka 120a6e
  TNumField *m_step;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_shrinkLabel;
Shinya Kitaoka 120a6e
  TLabel *m_renderTileLabel;
Shinya Kitaoka 120a6e
  TLabel *m_memChunkLabel;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TNumField *m_shrink;
Shinya Kitaoka 120a6e
  TNumField *m_renderTile;
Shinya Kitaoka 120a6e
  TNumField *m_memChunk;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_subPixelMoveLabel;
Shinya Kitaoka 120a6e
  TOptionMenu *m_subPixelMove;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_processingLabel;
Shinya Kitaoka 120a6e
  TOptionMenu *m_processing;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TLabel *m_resampleQualityLabel;
Shinya Kitaoka 120a6e
  TOptionMenu *m_resampleQuality;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TCheckBox *m_focus;
Shinya Kitaoka 120a6e
  TCheckBox *m_noOverwrite;
Shinya Kitaoka 120a6e
  TCheckBox *m_multimedia;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TTextField *m_column;
Shinya Kitaoka 120a6e
  TCheckBox *m_lineart;
Shinya Kitaoka 120a6e
  TCheckBox *m_edgeAliasing;
Shinya Kitaoka 120a6e
  TNumField *m_thickness;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TCheckBox *m_gamma;
Shinya Kitaoka 120a6e
  TNumField *m_gammaValue;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  TCheckBox *m_clap;
Shinya Kitaoka 120a6e
  TLabel *m_outputScriptLabel;
Shinya Kitaoka 120a6e
  TOptionMenu *m_outputScript;
Shinya Kitaoka 120a6e
  TLabel *m_entryPointLabel;
Shinya Kitaoka 120a6e
  TTextField *m_entryPoint;
Shinya Kitaoka 120a6e
Shinya Kitaoka 120a6e
  void browseSetupFiles();
Shinya Kitaoka 120a6e
  void onMultimedia(TCheckBox *box, bool on);
Shinya Kitaoka 120a6e
  void onLineart(TCheckBox *box, bool on);
Shinya Kitaoka 120a6e
  void onEdgeAliasing(TCheckBox *box, bool on);
Shinya Kitaoka 120a6e
  void onConstantFocus(TCheckBox *box, bool on);
Shinya Kitaoka 120a6e
  void onOverwrite(TCheckBox *box, bool on);
Shinya Kitaoka 120a6e
  void onGamma(TCheckBox *box, bool on);
Shinya Kitaoka 120a6e
  void onSubPixelMove(string move);
Shinya Kitaoka 120a6e
  void onProcessing(string bits);
Shinya Kitaoka 120a6e
  void onResampleQuality(string quality);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif