~canonical-dx-team/nux/nux.fix-702538

« back to all changes in this revision

Viewing changes to Nux/Matrix4Editor.cpp

  • Committer: Jay Taoko
  • Date: 2011-01-04 03:57:29 UTC
  • mfrom: (157.1.13 nux-holidays)
  • Revision ID: jay.taoko@canonical.com-20110104035729-0xh3iabo7e7dk371
* Added support to copy a texture from the current render target
* Blur, Color matrix, Exponent shaders
* Gaussian blur
* Bug fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
    HLayout *ButtonLayout (new HLayout (TEXT ("Dialog Buttons") ) );
43
43
 
44
 
    Button *OkButton (new Button (TEXT ("OK") ) );
 
44
    PushButton *OkButton (new PushButton (TEXT ("OK") ) );
45
45
    OkButton->SetMinimumWidth (60);
46
46
    OkButton->SetMinimumHeight (20);
47
47
 
48
 
    Button *CancelButton (new Button (TEXT ("Cancel") ) );
 
48
    PushButton *CancelButton (new PushButton (TEXT ("Cancel") ) );
49
49
    CancelButton->SetMinimumWidth (60);
50
50
    CancelButton->SetMinimumHeight (20);
51
51
 
69
69
    static_cast<WindowThread *> (thread)->SetWindowSize (MainLayout->GetBaseWidth(), MainLayout->GetBaseHeight() );
70
70
 
71
71
    // Call StopThreadMonitoring in case the dialog was close by clicking the window close button.
72
 
    matrixeditorproxy->StopThreadMonitoring();
 
72
    //matrixeditorproxy->StopThreadMonitoring();
73
73
    //delete CancelButton;
74
74
    //delete OkButton;
75
75
    //delete matrixeditor;
150
150
    mtx_row_layout[2]   = new HLayout (TEXT (""), NUX_TRACKER_LOCATION);
151
151
    mtx_row_layout[3]   = new HLayout (TEXT (""), NUX_TRACKER_LOCATION);
152
152
 
153
 
    m_IdentityMtxBtn    = new Button (TEXT (""), NUX_TRACKER_LOCATION);
154
 
    m_ZeroMtxBtn        = new Button (TEXT (""), NUX_TRACKER_LOCATION);
155
 
    m_InverseMtxBtn     = new Button (TEXT (""), NUX_TRACKER_LOCATION);
156
 
    m_NegateMtxBtn      = new Button (TEXT (""), NUX_TRACKER_LOCATION);
 
153
    m_IdentityMtxBtn    = new PushButton (TEXT (""), NUX_TRACKER_LOCATION);
 
154
    m_ZeroMtxBtn        = new PushButton (TEXT (""), NUX_TRACKER_LOCATION);
 
155
    m_InverseMtxBtn     = new PushButton (TEXT (""), NUX_TRACKER_LOCATION);
 
156
    m_NegateMtxBtn      = new PushButton (TEXT (""), NUX_TRACKER_LOCATION);
157
157
 
158
158
    m_IdentityMtxBtn->sigClick.connect (sigc::mem_fun (this, &Matrix4Editor::RecvIdentityMatrixCmd) );
159
159
    m_ZeroMtxBtn->sigClick.connect (sigc::mem_fun (this, &Matrix4Editor::RecvZeroMatrixCmd) );