tahoma2d/toonz/sources/include/tw/progressbar.h

39 lines
741 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef PROGRESSBAR_INCLUDED
#define PROGRESSBAR_INCLUDED
#include "tw/popup.h"
class DVAPI TProgressBar : public TPopup
{
class Imp;
Imp *m_data;
public:
TProgressBar(TWidget *parent, string name = "progress bar", wstring text = L"");
~TProgressBar();
void popup();
// se ritorna false vuol dire che l'utente ha premuto il bottone
bool changeFraction(int num, int den);
void closePopup();
void configureNotify(const TDimension &d);
TDimension getPreferredSize() const;
void setPreferredSize(const TDimension &d);
void setPreferredSize(int lx, int ly)
{
setPreferredSize(TDimension(lx, ly));
}
bool onNcPaint(
bool is_active,
const TDimension &window_size,
const TRect &caption_rect);
};
#endif