#ifndef XFILEWRITE_H
#define XFILEWRITE_H


class Preferences;
class WriteWindow;


// Main Application class
class XFileWrite : public FXApp
{
    FXDECLARE(XFileWrite)
public:
    WriteWindowList windowlist;              // Window list
private:
    XFileWrite()
    {
    }
    XFileWrite(const XFileWrite&);
    XFileWrite& operator=(const XFileWrite&);

public:
    enum
    {
        ID_CLOSEALL=FXApp::ID_LAST,
        ID_LAST
    };
public:
    long onCmdCloseAll(FXObject*, FXSelector, void*);
public:

    // Construct application object
    XFileWrite(const FXString&, const FXString&);

    // Initialize application
    virtual void init(int& argc, char** argv, bool connect = true);

    // Exit application
    virtual void exit(int code = 0);

    // Delete application object
    virtual ~XFileWrite();
};

#endif
