tahoma2d/toonz/sources/toonzfarm/tfarmclient/appmainshell.h

41 lines
703 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 APPMAINSHELL_H
#define APPMAINSHELL_H
#include "tw/mainshell.h"
//==============================================================================
2016-06-15 18:43:10 +12:00
class AppMainshell : public TMainshell {
2016-03-19 06:57:51 +13:00
public:
2016-06-15 18:43:10 +12:00
AppMainshell();
~AppMainshell();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
static AppMainshell *instance();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void init();
bool beforeShow();
void configureNotify(const TDimension &size);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void openProgressBar(string name);
void closeProgressBar();
bool setProgressBarFraction(int num, int den);
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void repaint();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void close();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
TDimension getPreferredSize();
int getMainIconId();
2016-03-19 06:57:51 +13:00
2016-06-15 18:43:10 +12:00
void onTimer(int);
string getAppId() const { return "TFarm"; }
2016-03-19 06:57:51 +13:00
private:
2016-06-15 18:43:10 +12:00
class Data;
Data *m_data;
2016-03-19 06:57:51 +13:00
};
#endif