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

36 lines
781 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"
2016-06-15 18:43:10 +12:00
class DVAPI TProgressBar : public TPopup {
class Imp;
Imp *m_data;
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
TProgressBar(TWidget *parent, string name = "progress bar",
wstring text = L"");
~TProgressBar();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void popup();
// se ritorna false vuol dire che l'utente ha premuto il bottone
bool changeFraction(int num, int den);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void closePopup();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void configureNotify(const TDimension &d);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
TDimension getPreferredSize() const;
void setPreferredSize(const TDimension &d);
void setPreferredSize(int lx, int ly) {
setPreferredSize(TDimension(lx, ly));
}
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
bool onNcPaint(bool is_active, const TDimension &window_size,
const TRect &caption_rect);
2016-03-19 06:57:51 +13:00
};
#endif