summaryrefslogtreecommitdiffstats
path: root/k9author/k9import.h
blob: 067c91fa19694d2c701ddebe35134f7bb88c7b52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
//
// C++ Interface:
//
// Description:
//
//
// Author: Jean-Michel PETIT <[email protected]>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//

#ifndef K9IMPORT_H
#define K9IMPORT_H

#include "k9common.h"
#include <tqlistview.h>
#include "k9copy.h"
#include "../k9author/import.h"
#include "../k9author/k9newdvd.h"


class k9AviFile;
class k9MenuButton;
class k9MenuEdit;
class k9Import : public import {
    TQ_OBJECT
  
private:
    TQListViewItem *m_root;
    k9NewDVD m_newDVD;
    KMdiToolViewAccessor *m_toolView;
    KDockWidget *m_dockWidget;
    k9Copy *m_parent;
    TQPtrList <k9CdDrive> recorderList;
    k9CdDrives *drives;
    k9MenuEdit *m_menuEdit;

public:
    k9Import(TQWidget* parent = 0, const char* name = 0,k9CdDrives *_drives=0 );
    ~k9Import();
    /*$PUBLIC_FUNCTIONS$*/
    void init();
    void execute();
    TQListViewItem* getRoot() const;
    k9NewDVD *getNewDVD() {
        return &m_newDVD;
    }

public slots:
    /*$PUBLIC_SLOTS$*/
    void aviFileUpdated(k9AviFile *_aviFile);
    void buttonUpdated(k9MenuButton *_button, const TQImage &_image);
    void setMenuEdit(k9MenuEdit* _value);
    void setEnableCreate(bool _state);
    void updateTotalTime();
    void titleAdded();
protected:
    /*$PROTECTED_FUNCTIONS$*/
    void setProgressWindow(TQWidget *_widget);
    void removeProgressWindow();
    void readDrives();
    void addDrive (k9CdDrive *_drive);

protected slots:
    /*$PROTECTED_SLOTS$*/
    void lvDVDItemSelected (TQListViewItem *);
    void cbFormatActivated(const TQString &_format);
    virtual void deviceAdded(k9CdDrive *_drive);
    virtual void deviceRemoved(k9CdDrive *_drive);
    virtual void volumeChanged(const TQString &device,const TQString &volumeName);

signals:
    void aviFileSelected(k9AviFile *_aviFile);
    void titleSelected(k9Title *);
    void rootSelected(k9NewDVD *);
};

#endif