Changeset 1343

Show
Ignore:
Timestamp:
01/10/08 13:24:37 (9 months ago)
Author:
calvin
Message:

clean out unused ClientViewListener?-stuff, comment out unfinished theme editor and keyboard shortcuts in prefs, paramviews are opened as popup or in last dock automatically

Location:
trunk/src/buzelib
Files:
1 removed
39 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/buzelib/AnalyzerView.cpp

    r1318 r1343  
    1111using namespace zzub; 
    1212 
    13 AnalyzerView::AnalyzerView(CMainFrame* frame, ClientViewListener* cl) 
    14         :clientViewListener( cl) 
    15         ,fft(MAX_FFT_SIZE, frame->player->masterInfo.samples_per_second) 
     13AnalyzerView::AnalyzerView(CMainFrame* frame) 
     14        :fft(MAX_FFT_SIZE, frame->player->masterInfo.samples_per_second) 
    1615    ,recorder_buffer(frame->player) 
    1716{ 
     
    4342    player->master->removePostProcessor(this); 
    4443 
    45     mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     44        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    4645        return 0; 
    4746} 
  • trunk/src/buzelib/AnalyzerView.h

    r1318 r1343  
    55 
    66class AnalyzerView : public CWindowImpl<AnalyzerView>, zzub::recorder_buffer { 
    7         ClientViewListener* clientViewListener; 
    87        CMainFrame* mainFrame; 
    98        zzub::player* player; 
     
    3736 
    3837 
    39         AnalyzerView(CMainFrame* frame, ClientViewListener* cl); 
     38        AnalyzerView(CMainFrame* frame); 
    4039        ~AnalyzerView(void); 
    4140 
  • trunk/src/buzelib/CommentView.cpp

    r1312 r1343  
    1313*/ 
    1414 
    15 CCommentView::CCommentView(CMainFrame* mainFrm, ClientViewListener* cl) 
     15CCommentView::CCommentView(CMainFrame* mainFrm) 
    1616    :CViewImpl<CMainFrame, CDocument, CCommentView>(mainFrm->document) 
    17         ,clientViewListener(cl) 
    1817{ 
    1918    mainFrame = mainFrm; 
     
    4544 
    4645LRESULT CCommentView::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { 
    47         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     46        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    4847    document->removeView(this); 
    4948        return 0; 
  • trunk/src/buzelib/CommentView.h

    r1218 r1343  
    22 
    33class CMainFrame; 
    4 class ClientViewListener; 
    54 
    65class CCommentView  
     
    87    , public CWindowImpl<CCommentView> { 
    98public: 
    10         ClientViewListener* clientViewListener; 
    119    CMainFrame* mainFrame; 
    1210    CEdit edit; 
     
    2826        END_MSG_MAP() 
    2927 
    30     CCommentView(CMainFrame* mf, ClientViewListener* cl); 
     28    CCommentView(CMainFrame* mf); 
    3129        ~CCommentView(); 
    3230        LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
  • trunk/src/buzelib/CpuMeterView.cpp

    r1239 r1343  
    1010using namespace zzub; 
    1111 
    12 CCpuMeterView::CCpuMeterView(CMainFrame* mainFrm, ClientViewListener* cl) 
    13         :clientViewListener(cl) 
    14 { 
     12CCpuMeterView::CCpuMeterView(CMainFrame* mainFrm) { 
    1513        mainFrame = mainFrm; 
    1614} 
     
    5149 
    5250        mainFrame->removeTimerHandler(this); 
    53         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     51        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    5452        return 0; 
    5553} 
  • trunk/src/buzelib/CpuMeterView.h

    r1237 r1343  
    77{ 
    88public: 
    9         ClientViewListener* clientViewListener; 
    109        CListViewCtrl pluginList; 
    1110        CStatic details; 
     
    1615 
    1716        BEGIN_MSG_MAP(CCpuMeterView) 
    18                 COMMAND_ID_HANDLER( ID_CLIENTVIEWLIST_DOCKABLE, OnClientViewDockable) 
    19                 COMMAND_ID_HANDLER( ID_CLIENTVIEWLIST_HIDE,     OnClientViewHide) 
    20                 COMMAND_ID_HANDLER( ID_CLIENTVIEWLIST_FLOATING, OnClientViewFloating) 
    21  
    2217                MESSAGE_HANDLER(WM_CREATE, OnCreate) 
    2318                MESSAGE_HANDLER(WM_CLOSE, OnClose) 
     
    2520        END_MSG_MAP() 
    2621 
    27         CCpuMeterView(CMainFrame* mainFrm, ClientViewListener* cl); 
     22        CCpuMeterView(CMainFrame* mainFrm); 
    2823        ~CCpuMeterView(void); 
    29  
    30         LRESULT OnClientViewDockable(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { clientViewListener->clientViewDockable(m_hWnd); return 0; } 
    31         LRESULT OnClientViewHide(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { clientViewListener->clientViewHide(m_hWnd); return 0; } 
    32         LRESULT OnClientViewFloating(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { clientViewListener->clientViewFloating(m_hWnd); return 0; } 
    3324 
    3425        LRESULT OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/); 
  • trunk/src/buzelib/DebugView.cpp

    r1218 r1343  
    44#include ".\debugview.h" 
    55 
    6 CDebugView::CDebugView(CMainFrame* mf, ClientViewListener* cl) { 
     6CDebugView::CDebugView(CMainFrame* mf) { 
    77        mainFrame = mf; 
    88} 
     
    2121 
    2222LRESULT CDebugView::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { 
    23         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     23        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    2424    return 0; 
    2525} 
  • trunk/src/buzelib/DebugView.h

    r1218 r1343  
    22 
    33class CMainFrame; 
    4 class ClientViewListener; 
    54 
    65class CDebugView : public CWindowImpl<CDebugView> { 
    76public: 
    8         ClientViewListener* clientViewListener; 
    97    std::string text; 
    108    CMainFrame* mainFrame; 
     
    1917        END_MSG_MAP() 
    2018 
    21     CDebugView(CMainFrame* mf, ClientViewListener* cl); 
     19    CDebugView(CMainFrame* mf); 
    2220        ~CDebugView(); 
    2321        LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
  • trunk/src/buzelib/DockTabFrame/DockTabFrame.cpp

    r1273 r1343  
    66 
    77#include "DockTabFrame.h" 
    8 #include "ClientViewListener.h" 
    98 
    10 int Frame::DockPane::instanceCount = 0; 
    11 CBrush Frame::DockPane::systemFrameBrush; 
    12 CBrush Frame::DockPane::activeCaptionBrush; 
    13 CBrush Frame::DockPane::inactiveCaptionBrush; 
    14 CBrush Frame::DockPane::activeBorderBrush; 
    15 CBrush Frame::DockPane::inactiveBorderBrush; 
     9int DockSplitTab::Frame::DockPane::instanceCount = 0; 
     10CBrush DockSplitTab::Frame::DockPane::systemFrameBrush; 
     11CBrush DockSplitTab::Frame::DockPane::activeCaptionBrush; 
     12CBrush DockSplitTab::Frame::DockPane::inactiveCaptionBrush; 
     13CBrush DockSplitTab::Frame::DockPane::activeBorderBrush; 
     14CBrush DockSplitTab::Frame::DockPane::inactiveBorderBrush; 
    1615                 
    17 COLORREF Frame::DockPane::activeCaptionTextColor; 
    18 COLORREF Frame::DockPane::inactiveCaptionTextColor; 
     16COLORREF DockSplitTab::Frame::DockPane::activeCaptionTextColor; 
     17COLORREF DockSplitTab::Frame::DockPane::inactiveCaptionTextColor; 
    1918                 
    20 int   Frame::DockPane::systemCxFrame; 
    21 int   Frame::DockPane::systemCyFrame; 
    22 int   Frame::DockPane::systemCaptionHeight; 
    23 CFont Frame::DockPane::systemCaptionFont; 
     19int   DockSplitTab::Frame::DockPane::systemCxFrame; 
     20int   DockSplitTab::Frame::DockPane::systemCyFrame; 
     21int   DockSplitTab::Frame::DockPane::systemCaptionHeight; 
     22CFont DockSplitTab::Frame::DockPane::systemCaptionFont; 
    2423                 
    25 HCURSOR Frame::DockPane::verCursor; 
    26 HCURSOR Frame::DockPane::horCursor; 
     24HCURSOR DockSplitTab::Frame::DockPane::verCursor; 
     25HCURSOR DockSplitTab::Frame::DockPane::horCursor; 
  • trunk/src/buzelib/DockTabFrame/DockTabFrame.h

    r1337 r1343  
    124124        public: 
    125125                virtual void clientDetached( ClientView* clientView) = 0; 
     126                virtual void clientChangedPlace( ClientView* clientView, DockSplitTab::FramePlace place, DockSplitTab::DockSide side) = 0; 
    126127        }; 
    127128         
     
    21222123                } 
    21232124 
    2124                 public: 
    2125                         // anders added 
    2126                 void setDockSize(DockSide dockSide, int size) { 
    2127                         layout.resizeDock(dockSide, size); 
    2128                 } 
    2129  
    2130                 protected: 
    2131                  
    21322125                DockPane* createDockPane( DockSide dockSide, int dockWidth, int dockSize, SplitPane* splitPane = NULL) { 
    21332126                         
     
    37073700                                                             ); 
    37083701                                        this->setCurrentPane( &this->mainPane); 
     3702                                        this->cbListener->clientChangedPlace(clientView, placeMAINPANE, dockUNKNOWN); 
    37093703                                        break; 
    37103704                                         
     
    37273721                                        clientView->dockSide = dropParcel->targetDock; 
    37283722                                        this->setCurrentPane( splitPane); 
     3723                                        this->cbListener->clientChangedPlace(clientView, placeDOCKPANE, dropParcel->targetDock); 
    37293724                                        break; 
    37303725                                         
     
    37543749                                                                ); 
    37553750                                        this->setCurrentPane( splitPane); 
     3751                                        this->cbListener->clientChangedPlace(clientView, placeFLOATFRAME, dockUNKNOWN); 
    37563752                                        break; 
    37573753                                         
     
    38653861                                                                clientView->owner = &this->mainPane; 
    38663862                                                                clientViewWnd = clientView->wnd; 
     3863                                                                this->cbListener->clientChangedPlace(clientView, placeMAINPANE, dockUNKNOWN); 
    38673864                                                        } 
    38683865                                                } while ( NULL != position); 
     
    38853882                                         
    38863883                                        targetDockPane = this->dockPanes[ dropParcel->targetDock]; 
    3887                                         if ( NULL == targetDockPane) 
     3884                                        if ( NULL == targetDockPane) { 
    38883885                                                 
    38893886                                                // create a new dock pane and attach the split pane to it 
     
    38933890                                                                                     , splitPane 
    38943891                                                                                     ); 
    3895                                         else { 
     3892 
     3893                                                // notify all clientviews belonging to this split pane they place just changed place 
     3894                                                if ( NULL != ( position = this->clientViews.GetStartPosition())) 
     3895                                                        do { 
     3896                                                                ClientView* clientView = this->clientViews.GetNextValue( position); 
     3897                                                                if ( clientView->owner == splitPane) 
     3898                                                                        this->cbListener->clientChangedPlace(clientView, placeDOCKPANE, dropParcel->targetDock); 
     3899                                                        } while ( NULL != position); 
     3900                                        } else { 
    38963901                                                 
    38973902                                                // move all client windows from the split pane to an existing dock pane 
     
    39103915                                                                        clientView->owner = targetDockPane->getPane(); 
    39113916                                                                        clientViewWnd = clientView->wnd; 
     3917                                                                        this->cbListener->clientChangedPlace(clientView, placeDOCKPANE, dropParcel->targetDock); 
    39123918                                                                } 
    39133919                                                        } while ( NULL != position); 
     
    39433949                                                // create a new float pane and attach the split pane to it 
    39443950                                                targetFloatFrame = this->createFloatFrame( floatFrameRect, splitPane); 
     3951 
     3952                                                // notify all clientviews belonging to this split pane they place just changed place 
     3953                                                if ( NULL != ( position = this->clientViews.GetStartPosition())) 
     3954                                                        do { 
     3955                                                                ClientView* clientView = this->clientViews.GetNextValue( position); 
     3956                                                                if ( clientView->owner == targetFloatFrame->getPane()) 
     3957                                                                        this->cbListener->clientChangedPlace(clientView, placeFLOATFRAME, dockUNKNOWN); 
     3958                                                        } while ( NULL != position); 
    39453959                                        } else { 
    39463960                                                 
     
    39593973                                                                                                ); 
    39603974                                                                        clientView->owner = targetFloatFrame->getPane(); 
     3975                                                                        this->cbListener->clientChangedPlace(clientView, placeFLOATFRAME, dockUNKNOWN); 
    39613976                                                                } 
    39623977                                                        } while ( NULL != position); 
  • trunk/src/buzelib/DockTabFrame/DockTabSerializer.cpp

    r1290 r1343  
    55#include "DockTabViewManager.h" 
    66#include "DockTabSerializer.h" 
    7 #include "ClientViewListener.h" 
    8 //#include "MultiClientView.h" 
    97 
    108using namespace pug; 
  • trunk/src/buzelib/DockTabFrame/DockTabViewManager.h

    r1285 r1343  
    133133            tip = toolTip; 
    134134 
    135                 ViewT* view = new ViewT(frame, frame); 
     135                ViewT* view = new ViewT(frame); 
    136136                RECT rcFrame; 
    137137                frame->GetClientRect(&rcFrame); 
  • trunk/src/buzelib/FileBrowserView.cpp

    r1338 r1343  
    101101 
    102102 
    103 CFileBrowserView::CFileBrowserView(CMainFrame* mainFrm, ClientViewListener* cl) 
    104         :clientViewListener( cl) 
     103CFileBrowserView::CFileBrowserView(CMainFrame* mainFrm) 
    105104{ 
    106105        player = mainFrm->player; 
     
    167166 
    168167        // denne fixet crash når vi lukker hele clienten 
    169         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     168        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    170169        return 0; 
    171170} 
  • trunk/src/buzelib/FileBrowserView.h

    r1338 r1343  
    44        class ClientView; 
    55} 
    6 class ClientViewListener; 
    7  
    86#include "Utils/DragDropImpl.h" 
    97#include "FileBrowserList.h" 
     
    3028        , public CMessageFilter 
    3129{ 
    32         ClientViewListener* clientViewListener; 
    33  
    3430        zzub::player* player; 
    3531        CMainFrame* mainFrame; 
     
    8278        END_MSG_MAP() 
    8379 
    84         CFileBrowserView(CMainFrame* mainFrm, ClientViewListener* cl); 
     80        CFileBrowserView(CMainFrame* mainFrm); 
    8581        ~CFileBrowserView(void); 
    8682 
  • trunk/src/buzelib/HelpView.cpp

    r1338 r1343  
    55using namespace DockSplitTab; 
    66 
    7 CHelpView::CHelpView(CMainFrame* mainFrm, ClientViewListener* cl) 
    8         :clientViewListener(cl) 
    9 { 
     7CHelpView::CHelpView(CMainFrame* mainFrm) { 
    108    mainFrame = mainFrm; 
    119} 
     
    5351        pLoop->RemoveMessageFilter(this); 
    5452 
    55         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     53        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    5654 
    5755        return 0; 
  • trunk/src/buzelib/HelpView.h

    r1338 r1343  
    22 
    33class CMainFrame; 
    4 class ClientViewListener; 
    54 
    65class CHelpView  
     
    98{ 
    109public: 
    11         ClientViewListener* clientViewListener; 
    1210    CMainFrame* mainFrame; 
    1311    CFont helpFont; 
     
    2523        END_MSG_MAP() 
    2624 
    27     CHelpView(CMainFrame* mf, ClientViewListener* cl); 
     25    CHelpView(CMainFrame* mf); 
    2826        ~CHelpView(); 
    2927        LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled); 
  • trunk/src/buzelib/InputMixerView.cpp

    r1218 r1343  
    1010using namespace zzub; 
    1111 
    12 CInputMixerView::CInputMixerView(CMainFrame* mainFrm, ClientViewListener* cl) 
     12CInputMixerView::CInputMixerView(CMainFrame* mainFrm) 
    1313    :CViewImpl<CMainFrame, CDocument, CInputMixerView>(mainFrm->document) 
    14         ,clientViewListener( cl) 
    1514{ 
    1615    assert(mainFrm->document->getSelectedMachines() > 0); 
     
    2625LRESULT CInputMixerView::OnClose(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) { 
    2726        // denne fixet crash når vi lukker hele clienten 
    28         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     27        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    2928 
    3029    document->removeView(this); 
  • trunk/src/buzelib/InputMixerView.h

    r1273 r1343  
    1010    , public zzub::event_handler 
    1111{ 
    12         ClientViewListener* clientViewListener; 
    1312        std::vector<CVisualVolumeSlider*> sliders; 
    1413 
     
    3029        END_MSG_MAP() 
    3130 
    32         CInputMixerView(CMainFrame* mainFrm, ClientViewListener* cl); 
     31        CInputMixerView(CMainFrame* mainFrm); 
    3332        ~CInputMixerView(void); 
    3433 
  • trunk/src/buzelib/MachineFolderView.cpp

    r1312 r1343  
    2222 
    2323 
    24 MachineFolderView::MachineFolderView(CMainFrame* mainFrm, ClientViewListener* clientViewListener) 
    25     :clientViewListener( clientViewListener) { 
     24MachineFolderView::MachineFolderView(CMainFrame* mainFrm) { 
    2625        player = mainFrm->player; 
    2726        mainFrame = mainFrm; 
     
    3534 
    3635LRESULT MachineFolderView::OnClose(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/) { 
    37         mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->get(m_hWnd))); 
     36        mainFrame->closeClientWindow(const_cast<ClientView*>(mainFrame->frame.getClientView(m_hWnd))); 
    3837        return 0; 
    3938} 
  • trunk/src/buzelib/MachineFolderView.h