summaryrefslogtreecommitdiffstats
path: root/quanta/components/framewizard/framewizard.h
blob: 177c6c6b799d39a2b9c5c90e5f1cf3311cc4c5a0 (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
/***************************************************************************
                          framewizard.h  -  description
                             -------------------
    begin                : mer giu  4 14:14:07 CEST 2003
    copyright            : (C) |YEAR| by Gu2003Luciano
    email                : gulmini.luciano@student.unife.it
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef FRAMEWIZARD_H
#define FRAMEWIZARD_H

#include <framewizards.h>
#include "visualframeeditor.h"
class TQStringList;

/** FrameWizard is the base class of the project */
class FrameWizard : public FrameWizardS
{
  Q_OBJECT
  TQ_OBJECT
  private:
    bool m_hasSelected,
            m_saved; // if saved = false the the file containing the frameset structure
                            // has been not saved and so you cannot edit the frame
                            // This is for me: se non si salva il file no si riesce a conoscere il
                            // percorso relativo dei file da mettere nell'attributo src
    TQString m_currSA;

  public:
    FrameWizard( TQWidget* tqparent=0, const char *name=0);
    ~FrameWizard();

  private slots:
    void showFrameEditorDlg();
    void reset();
    void remove();
    void catchSelectedArea(const TQString &id );
    void split();
    void draw();
    int showRCeditorDlg(const TQString &s);

  public :
    void loadExistingFramesetStructure(const TQStringList &list){ vfe->loadExistingStructure(list);}
    TQString generateFramesetStructure(){ return vfe->framesetStructure(); }
    void setSaved( bool b){ m_saved=b; }
    void setMarkupLanguage(const TQString& s){ vfe->setMarkupLanguage(s);}

  signals:
    void launchDraw();

};

#endif