Changeset 442 for trunk/yao


Ignore:
Timestamp:
10/07/10 19:17:48 (14 years ago)
Author:
yerima
Message:

The new interface of the orderWindow is added. We are going to stop here wating for the approbation.

Location:
trunk/yao/src/interface
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/yao/src/interface/src/InstructionWindow.cpp

    r440 r442  
    2222 
    2323/*********************************************************************************************************************************/ 
    24 InstructionWindow::InstructionWindow(QWidget *parent) : QWidget(parent) { 
     24InstructionWindow::InstructionWindow(/*yao::Table <yao::Function> *aFunctionTable,*/ QWidget *parent) : QWidget(parent) { 
    2525 
    2626        setupUi(this); 
  • trunk/yao/src/interface/src/MainWindow.cpp

    r437 r442  
    928928 
    929929         
    930         InstructionWindow *iw = new InstructionWindow ; 
     930        InstructionWindow *iw = new InstructionWindow(/*&theFunctionTable*/) ; 
    931931        espace.addWindow(iw)->move(0, 0);  
    932932        iw->show();      
  • trunk/yao/src/interface/src/OrderWindow.cpp

    r419 r442  
    2323 
    2424        setupUi(this); 
    25  
     25         
    2626        m_trajectoryTable       = aTrajectoryTable; 
    2727        m_spaceTable            = aSpaceTable; 
    2828        m_operatorTable         = anOperatorTable; 
    2929        m_modulTable            = aModulTable; 
    30  
     30        /* 
    3131        setFixedWidth(baseSize().width() + 765); 
    3232        m_comboTrajName->insertItem(0, ""); 
     
    4141                m_comboSpaceName->insertItem(1, QString(it->getName().c_str()));         
    4242        } 
    43         m_orderModel    = new QStandardItemModel(0, 5); 
     43        */ 
     44 
     45        //m_orderModel                  = new QStandardItemModel(0, 5); 
     46        //m_choiceComboBox              = new QComboBox; 
     47                m_choiceComboBox->addItem(tr("modinspace"));             
     48                m_choiceComboBox->addItem(tr("spaceintraj"));            
     49 
     50        //m_modinspaceRadioButton               = new QRadioButton("modinspace"); 
     51        //m_spaceintrajRadioButton      = new QRadioButton("spaceintraj");       
     52 
     53        ModinspaceWindow *misw          = new ModinspaceWindow;  
     54        SpaceintrajWindow *sitw         = new SpaceintrajWindow(m_trajectoryTable, m_spaceTable, m_operatorTable); 
     55                //sitw->show();  
     56         
     57        //horizontalLayout              = new QHBoxLayout; 
     58        //      horizontalLayout->addWidget(m_modinspaceRadioButton); 
     59        //      horizontalLayout->addWidget(m_spaceintrajRadioButton); 
     60 
     61        stackedLayout                   = new QStackedLayout(m_mainFrame); 
     62                 stackedLayout->addWidget(misw); 
     63                 stackedLayout->addWidget(sitw); 
    4464         
    4565         
     66        //mainLayout = new QVBoxLayout; 
     67                //mainLayout->addWidget(m_choiceComboBox); 
     68        //      mainLayout->addLayout(stackedLayout);  
     69        //setLayout(mainLayout); 
     70         
     71         
     72        //setFixedWidth(baseSize().width() + 765); 
     73        //resize(645, 540); 
     74        connect(m_choiceComboBox, SIGNAL(activated(int )), stackedLayout, SLOT(setCurrentIndex(int ))); 
     75        connect(m_quitButton, SIGNAL(clicked()), this, SLOT(close())); 
    4676} 
    4777 
     
    5383 
    5484/***********************************************************************/ 
     85 
     86/***********************************************************************/ 
     87/***********************************************************************/ 
  • trunk/yao/src/interface/src/include/InstructionWindow.hpp

    r440 r442  
    1313#include <QMessageBox>  
    1414#include "../../ui_instructionwindow.h" 
     15#include "../../../YAOObjects/Function.hpp" 
     16 
     17//#include "InsertFCTWindow.hpp" 
    1518 
    1619class InstructionWindow: public QWidget, public Ui::InstructionWindow { 
     
    1922 
    2023        public : 
    21                 InstructionWindow(QWidget *parent=0); 
     24                InstructionWindow(/*yao::Table <yao::Function> *aFunctionTable,*/ QWidget *parent=0); 
    2225 
    2326        private slots: 
  • trunk/yao/src/interface/src/include/OrderWindow.hpp

    r400 r442  
    1616#include "../../../YAOObjects/Trajectory.hpp" 
    1717#include "../../../YAOObjects/Order.hpp" 
     18#include "ModinspaceWindow.hpp" 
     19#include "SpaceintrajWindow.hpp" 
     20 
    1821#include <QStandardItemModel> 
     22#include <QStackedLayout> 
     23#include <QRadioButton> 
     24#include <QVBoxLayout> 
     25#include <QHBoxLayout> 
    1926 
    2027class OrderWindow : public QWidget, public Ui::OrderWindow { 
     
    3542        private : 
    3643                QStandardItemModel *m_orderModel; 
     44                QStackedLayout *stackedLayout; 
     45 
     46                //QRadioButton *m_modinspaceRadioButton; 
     47                //QRadioButton *m_spaceintrajRadioButton; 
     48                 
     49                QVBoxLayout *mainLayout; 
     50                //QHBoxLayout *horizontalLayout; 
     51 
     52                //QComboBox     *m_choiceComboBox;               
     53         
    3754                yao::Table <yao::Trajectory> *m_trajectoryTable; 
    3855                yao::Table <yao::Space> *m_spaceTable; 
  • trunk/yao/src/interface/ui_newprojectwindow.h

    r440 r442  
    22** Form generated from reading UI file 'newprojectwindow.ui' 
    33** 
    4 ** Created: Sun Oct 3 16:42:34 2010 
    5 **      by: Qt User Interface Compiler version 4.6.2 
     4** Created: Thu Oct 7 14:11:53 2010 
     5**      by: Qt User Interface Compiler version 4.6.3 
    66** 
    77** WARNING! All changes made in this file will be lost when recompiling UI file! 
Note: See TracChangeset for help on using the changeset viewer.