Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
RotatePanelDlg.h
Package: solidgraph_sources.zip [view]
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 2k
Category:
Graph program
Development Platform:
Visual C++
- #pragma once
- #include "..//resource.h"
- #include "afxwin.h"
- #include "..//Controls//FloatEdit.h"
- class RotateCommand;
- // CRotatePanelDlg dialog
- class CRotatePanelDlg : public CDialog, public IBaseInterfaceOfGetDialogs
- {
- DECLARE_DYNAMIC(CRotatePanelDlg)
- public:
- CRotatePanelDlg(CWnd* pParent = NULL); // standard constructor
- virtual ~CRotatePanelDlg();
- virtual DLG_TYPE GetType() {return IBaseInterfaceOfGetDialogs::USER_DIALOG;};
- virtual CWnd* GetWindow() {return this;};
- virtual void EnableControls(bool);
- // Dialog Data
- enum { IDD = IDD_ROTATE_PANEL };
- private:
- bool* m_enable_history;
- bool m_was_diasabled;
- RotateCommand* m_commander;
- public:
- void SetCommander( RotateCommand* nC) {ASSERT(nC);m_commander=nC;};
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- DECLARE_MESSAGE_MAP()
- virtual void OnOK();
- virtual void OnCancel();
- public:
- void SetAngles(const SG_VECTOR&);
- void GetAngles(SG_VECTOR&);
- bool IsDouble();
- bool IsSelectNew();
- int GetCopiesCount();
- int GetRotateType() {return m_rotate_around;};
- private:
- int m_rotate_type;
- int m_rotate_around;
- public:
- afx_msg void OnBnClickedRotateGlobalZeroRadio();
- afx_msg void OnBnClickedRotateObjCentersRadio();
- afx_msg void OnBnClickedRotWithoutDubleRadio();
- afx_msg void OnBnClickedRadio2();
- virtual BOOL OnInitDialog();
- private:
- BOOL m_sel_new;
- int m_tabs_counter;
- CSpinButtonCtrl m_cnt_spin;
- int m_copies_cnt;
- public:
- afx_msg void OnDeltaposRotCopiesCntSpin(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg void OnBnClickedRotSelNewCheck();
- afx_msg void OnSize(UINT nType, int cx, int cy);
- private:
- CFloatEdit m_x_rot_ang;
- CFloatEdit m_y_rot_ang;
- CFloatEdit m_z_rot_ang;
- public:
- afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
- };