git-svn-id: svn://db.shs.com.ru/libs@379 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -2,20 +2,17 @@
|
||||
#define CDPULTWINDOW_H
|
||||
|
||||
#include "emainwindow.h"
|
||||
#include "ui_cdpultwindow.h"
|
||||
#include "cdviewwidget.h"
|
||||
#include "ribbon.h"
|
||||
#include "piobject.h"
|
||||
|
||||
|
||||
namespace Ui {
|
||||
class CDPultWindow;
|
||||
}
|
||||
|
||||
class CDPultWindow : public EMainWindow
|
||||
class CDPultWindow : public EMainWindow, public Ui::CDPultWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS(LogIcon)
|
||||
public:
|
||||
enum LogIcon {NoIcon, OKIcon, FailIcon, WaitIcon};
|
||||
|
||||
explicit CDPultWindow(QWidget *parent = 0);
|
||||
~CDPultWindow();
|
||||
@@ -27,26 +24,20 @@ private:
|
||||
void reset(bool full = false);
|
||||
bool load(const QString & path);
|
||||
bool save(const QString & path);
|
||||
QString loadFilter() {return "CD file(*.dat)";}
|
||||
QString saveFilter() {return "CD file(*.dat)";}
|
||||
QString loadFilter() {return "Pult session(*.conf)";}
|
||||
QString saveFilter() {return loadFilter();}
|
||||
void loadingSession(QPIConfig & conf);
|
||||
void savingSession(QPIConfig & conf);
|
||||
|
||||
Ui::CDPultWindow *ui;
|
||||
Ribbon * ribbon;
|
||||
QMap<LogIcon, QIcon> log_icons;
|
||||
QMap<CDViewWidget::LogIcon, QIcon> log_icons;
|
||||
|
||||
private slots:
|
||||
void KSended();
|
||||
void KReceived();
|
||||
void KSendFailed();
|
||||
void KReceiveFailed();
|
||||
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();
|
||||
void addToLog(CDViewWidget::LogIcon icon, const QString & msg);
|
||||
void on_editFileK_valueChanged(const QVariant & p);
|
||||
void on_buttonSessionApply_clicked();
|
||||
|
||||
void on_lineSessionName_textChanged(const QString & t);
|
||||
};
|
||||
|
||||
#endif // CDPULTWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user