Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef PROGRESSBAR_INCLUDED
Toshihiro Shimizu 890ddd
#define PROGRESSBAR_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tw/popup.h"
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI TProgressBar : public TPopup {
Shinya Kitaoka 120a6e
  class Imp;
Shinya Kitaoka 120a6e
  Imp *m_data;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  TProgressBar(TWidget *parent, string name = "progress bar",
Shinya Kitaoka 120a6e
               wstring text = L"");
Shinya Kitaoka 120a6e
  ~TProgressBar();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void popup();
Shinya Kitaoka 120a6e
  // se ritorna false vuol dire che l'utente ha premuto il bottone
Shinya Kitaoka 120a6e
  bool changeFraction(int num, int den);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void closePopup();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  void configureNotify(const TDimension &d);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  TDimension getPreferredSize() const;
Shinya Kitaoka 120a6e
  void setPreferredSize(const TDimension &d);
Shinya Kitaoka 120a6e
  void setPreferredSize(int lx, int ly) {
Shinya Kitaoka 120a6e
    setPreferredSize(TDimension(lx, ly));
Shinya Kitaoka 120a6e
  }
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  bool onNcPaint(bool is_active, const TDimension &window_size,
Shinya Kitaoka 120a6e
                 const TRect &caption_rect);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif