git-svn-id: svn://db.shs.com.ru/libs@353 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -2,32 +2,50 @@
|
||||
#define CDPULTWINDOW_H
|
||||
|
||||
#include "emainwindow.h"
|
||||
#include "ribbon.h"
|
||||
#include "piobject.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class CDPultWindow;
|
||||
}
|
||||
|
||||
class CDPultWindow : public EMainWindow
|
||||
class CDPultWindow : public EMainWindow, public PIObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
Q_ENUMS(LogIcon)
|
||||
PIOBJECT(CDPultWindow)
|
||||
public:
|
||||
enum LogIcon {NoIcon, OKIcon, FailIcon, WaitIcon};
|
||||
|
||||
explicit CDPultWindow(QWidget *parent = 0);
|
||||
~CDPultWindow();
|
||||
void loadFile(const QString & fp);
|
||||
|
||||
private:
|
||||
|
||||
EVENT_HANDLER(void, KSended);
|
||||
EVENT_HANDLER(void, KReceived);
|
||||
EVENT_HANDLER(void, KSendFailed);
|
||||
EVENT_HANDLER(void, KReceiveFailed);
|
||||
|
||||
void closeEvent(QCloseEvent * );
|
||||
void timerEvent(QTimerEvent *);
|
||||
void reset(bool full = false);
|
||||
bool load(const QString & path);
|
||||
bool save(const QString & path);
|
||||
void loadingSession(QPIConfig & conf);
|
||||
void savingSession(QPIConfig & conf);
|
||||
void addToErrorList(QString msg);
|
||||
QString loadFilter() {return "CD file(*.dat)";}
|
||||
QString saveFilter() {return "CD file(*.dat)";}
|
||||
|
||||
Ui::CDPultWindow *ui;
|
||||
Ribbon * ribbon;
|
||||
QMap<LogIcon, QIcon> log_icons;
|
||||
|
||||
private slots:
|
||||
void addToLog(LogIcon icon, const QString & msg);
|
||||
void on_actionSend_K_triggered();
|
||||
void on_actionReceive_K_triggered();
|
||||
void on_actionParse_triggered();
|
||||
void on_actionCalculate_K_triggered();
|
||||
};
|
||||
|
||||
#endif // CDPULTWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user