leocad/win/Piecebar.h

69 lines
1.6 KiB
C
Raw Normal View History

2011-09-07 23:06:51 +02:00
// piecebar.h : header file
//
/////////////////////////////////////////////////////////////////////////
#if !defined(PIECEBAR_H_INCLUDED)
#define PIECEBAR_H_INCLUDED
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "ColorLst.h"
#include "PieceCmb.h"
#include "PiecePrv.h"
#include "Splitter.h"
/////////////////////////////////////////////////////////////////////////
// CPiecesBar control bar
class CPiecesBar : public CDockablePane
2011-09-07 23:06:51 +02:00
{
public:
CPiecesBar();
virtual ~CPiecesBar();
2011-09-07 23:06:51 +02:00
public:
void AdjustLayout(int cx, int cy);
2011-09-07 23:06:51 +02:00
protected:
2011-09-07 23:06:51 +02:00
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
2011-09-07 23:06:51 +02:00
afx_msg LONG OnSplitterMoved(UINT lParam, LONG wParam);
2011-09-07 23:06:51 +02:00
DECLARE_MESSAGE_MAP()
2011-09-07 23:06:51 +02:00
public:
BOOL m_bSubParts;
int m_nPreviewHeight;
2011-09-07 23:06:51 +02:00
CPiecePreview m_wndPiecePreview;
CySplitterWnd m_wndSplitter;
CTreeCtrl m_PiecesTree;
CPiecesCombo m_wndPiecesCombo;
2012-04-29 22:00:16 +02:00
CColorList m_wndColorList;
2011-09-07 23:06:51 +02:00
void UpdatePiecesTree(bool SearchOnly);
void UpdatePiecesTree(const char* OldCategory, const char* NewCategory);
void SelectPiece(const char* Category, PieceInfo* Info);
void RefreshPiecesTree();
2012-04-29 22:00:16 +02:00
void OnSelChangeColor();
2011-09-07 23:06:51 +02:00
protected:
BOOL m_bNoContext;
CFont m_Font;
};
/////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(PIECEBAR_H_INCLUDED)