CProgressWindow: implement CComponent classes

This implement window functionality from CComponentsWindow,
progress items from CProgressBar() and status text
items from CComponentsLabel()
This commit is contained in:
2014-06-09 14:56:12 +02:00
committed by svenhoefer
parent 793230e9a7
commit 2f0e4e1687
8 changed files with 99 additions and 175 deletions

View File

@@ -33,7 +33,7 @@
#ifndef __flashtool__
#define __flashtool__
#include <gui/widget/progressstatus.h>
#include <gui/widget/progresswindow.h>
#include <string>
#include <vector>
@@ -43,7 +43,7 @@ class CFlashTool
{
private:
CProgress_StatusViewer* statusViewer;
CProgressWindow* statusViewer;
std::string mtdDevice;
std::string ErrorMessage;
@@ -61,7 +61,7 @@ class CFlashTool
const std::string & getErrorMessage(void) const;
void setMTDDevice( const std::string & mtddevice );
void setStatusViewer( CProgress_StatusViewer* statusview );
void setStatusViewer( CProgressWindow* statusview );
bool program( const std::string & filename, int globalProgressEndErase=-1, int globalProgressEndFlash=-1 );
bool readFromMTD( const std::string & filename, int globalProgressEnd=-1 );