Changeset 477


Ignore:
Timestamp:
11/02/10 18:16:46 (14 years ago)
Author:
yerima
Message:

An text editor is implemented in the visual Yao interface. The user must lunch the editor with a specific file.

Location:
trunk/yao/src/interface
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/projects/demo/demo.d

    r470 r477  
    2323space soc_4 M 5 5 3 toc_4 
    2424space soc_5 M 4 3 5 toc_1 
     25space soc_6 M 6 5 toc_1 
    2526 
    2627#NETWARD netname indegree outdegree 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r476 r477  
    6868        tabWidget->addTab(page2, "                 Exécution          "); 
    6969         
    70         //Editor *edit = new Editor; 
    71         //pt_espace->addWindow(editor);  
    72         //editor->show(); 
    73  
    74         connect(this, SIGNAL(WindowTitleChanged()), this, SLOT(setTitle())); 
     70                connect(this, SIGNAL(WindowTitleChanged()), this, SLOT(setTitle())); 
    7571        this->showMaximized(); // Maximise toujours la fenetre principale. 
    7672                 
     
    235231     // Les actions du menu Configuration 
    236232        actionEditeur = new QAction(tr("Editeur par defaut"), this); 
     233                connect(actionEditeur, SIGNAL(triggered()), this, SLOT(createEditor())); 
    237234 
    238235     // Les actions du menu Aide 
     
    247244} 
    248245 
     246/******************************** Implementation of the createEditor() SLOT *********************************************************************/ 
     247void MainWindow::createEditor() { 
     248 
     249        Editor *edit = new Editor(this); 
     250        edit->open(); 
     251        pt_espace->addWindow(edit);  
     252        edit->show(); 
     253 
     254 
     255} 
    249256/********************************* Implementation of the enableIAction() method ***************************************************************************/ 
    250257void MainWindow::enableIAction() { 
  • trunk/yao/src/interface/src/include/MainWindow.hpp

    r476 r477  
    3939class QStringList; 
    4040class QStringListModel; 
    41  
    4241class HatNameWindow; 
     42 
    4343/*! 
    4444 * \class MainWindow 
     
    143143                        void save(); 
    144144                        void enableIAction(); 
     145                        void createEditor(); 
    145146 
    146147        signals : 
Note: See TracChangeset for help on using the changeset viewer.