Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TNZ_TW_CONTROL_PANEL_INCLUDED
Toshihiro Shimizu 890ddd
#define TNZ_TW_CONTROL_PANEL_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tw/tw.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TWIN_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI TControlPanel : public TWidget {
Shinya Kitaoka 120a6e
  class Layout;
Shinya Kitaoka 120a6e
  Layout *m_layout;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  TControlPanel(TWidget *parent, string name = "control panel");
Shinya Kitaoka 120a6e
  ~TControlPanel();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void beginRow(Alignment align = BEGIN);
Shinya Kitaoka 120a6e
  void endRow();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void add(TWidget *w, bool canResize = false);
Shinya Kitaoka 120a6e
  void addSeparator(string title = "");
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void setTab(int x);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void draw();
Shinya Kitaoka 120a6e
  void configureNotify(const TDimension &d);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  TDimension getMinimumSize();
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif