[Rojav-commits] rocgui/dialogs turntabledialog.h,NONE,1.1
Brought to you by:
robvrs
|
From: rob v. <ro...@us...> - 2005-11-28 20:20:16
|
Update of /cvsroot/rojav/rocgui/dialogs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9324 Added Files: turntabledialog.h Log Message: <No Comment Entered> --- NEW FILE: turntabledialog.h --- /** ------------------------------------------------------------ * Module: * Object: * ------------------------------------------------------------ * $Source: /cvsroot/rojav/rocgui/dialogs/turntabledialog.h,v $ * $Author: robvrs $ * $Date: 2005/11/28 20:19:58 $ * $Revision: 1.1 $ * $Name: $ */ #ifndef _TURNTABLEDIALOG_H_ #define _TURNTABLEDIALOG_H_ #if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "turntabledialog.cpp" #endif /*! * Includes */ ////@begin includes #include "wx/notebook.h" #include "wx/grid.h" ////@end includes #include "rocs/public/node.h" /*! * Forward declarations */ ////@begin forward declarations class wxNotebook; class wxGrid; ////@end forward declarations /*! * Control identifiers */ ////@begin control identifiers #define ID_TURNTABLE_DIALOG 10126 #define SYMBOL_TURNTABLEDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX #define SYMBOL_TURNTABLEDIALOG_TITLE _("TurntableDialog") #define SYMBOL_TURNTABLEDIALOG_IDNAME ID_TURNTABLE_DIALOG #define SYMBOL_TURNTABLEDIALOG_SIZE wxSize(400, 300) #define SYMBOL_TURNTABLEDIALOG_POSITION wxDefaultPosition #define ID_NOTEBOOK_TURNTABLE 10003 #define ID_PANEL_TT_GENERAL 10000 #define wxID_STATIC_TT_ID 10001 #define ID_TEXTCTRL_TT_ID 10002 #define wxID_STATIC_TT_TYPE 10004 #define ID_COMBOBOX_TT_TYPE 10005 #define ID_PANEL_TT_LOCATION 10006 #define wxID_STATIC_TT_X 10010 #define ID_TEXTCTRL_TT_X 10011 #define wxID_STATIC_TT_Y 10012 #define ID_TEXTCTRL_TT_Y 10013 #define wxID_STATIC_TT_Z 10014 #define ID_TEXTCTRL_TT_Z 10015 #define ID_RADIOBOX_TT_ORI 10016 #define ID_PANEL_TT_TRACKS 10127 #define ID_GRID 10128 ////@end control identifiers /*! * Compatibility */ #ifndef wxCLOSE_BOX #define wxCLOSE_BOX 0x1000 #endif #ifndef wxFIXED_MINSIZE #define wxFIXED_MINSIZE 0 #endif /*! * TurntableDialog class declaration */ class TurntableDialog: public wxDialog { DECLARE_DYNAMIC_CLASS( TurntableDialog ) DECLARE_EVENT_TABLE() void initValues(); void evaluate(); public: /// Constructors TurntableDialog( ); TurntableDialog( wxWindow* parent, iONode p_Props ); TurntableDialog( wxWindow* parent, wxWindowID id = SYMBOL_TURNTABLEDIALOG_IDNAME, const wxString& caption = SYMBOL_TURNTABLEDIALOG_TITLE, const wxPoint& pos = SYMBOL_TURNTABLEDIALOG_POSITION, const wxSize& size = SYMBOL_TURNTABLEDIALOG_SIZE, long style = SYMBOL_TURNTABLEDIALOG_STYLE ); /// Creation bool Create( wxWindow* parent, wxWindowID id = SYMBOL_TURNTABLEDIALOG_IDNAME, const wxString& caption = SYMBOL_TURNTABLEDIALOG_TITLE, const wxPoint& pos = SYMBOL_TURNTABLEDIALOG_POSITION, const wxSize& size = SYMBOL_TURNTABLEDIALOG_SIZE, long style = SYMBOL_TURNTABLEDIALOG_STYLE ); /// Creates the controls and sizers void CreateControls(); ////@begin TurntableDialog event handler declarations /// wxEVT_GRID_CELL_LEFT_CLICK event handler for ID_GRID void OnCellLeftClick( wxGridEvent& event ); /// wxEVT_GRID_CELL_RIGHT_CLICK event handler for ID_GRID void OnCellRightClick( wxGridEvent& event ); /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK void OnOkClick( wxCommandEvent& event ); /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL void OnCancelClick( wxCommandEvent& event ); ////@end TurntableDialog event handler declarations ////@begin TurntableDialog member function declarations iONode GetProps() const { return m_Props ; } void SetProps(iONode value) { m_Props = value ; } /// Retrieves bitmap resources wxBitmap GetBitmapResource( const wxString& name ); /// Retrieves icon resources wxIcon GetIconResource( const wxString& name ); ////@end TurntableDialog member function declarations /// Should we show tooltips? static bool ShowToolTips(); ////@begin TurntableDialog member variables wxNotebook* m_Notebook; wxPanel* m_GeneralPanel; wxStaticText* m_LabelID; wxTextCtrl* m_ID; wxStaticText* m_LabelType; wxComboBox* m_Type; wxPanel* m_LocationPanel; wxStaticText* m_LabelX; wxTextCtrl* m_x; wxStaticText* m_LabelY; wxTextCtrl* m_y; wxStaticText* m_LabelZ; wxTextCtrl* m_z; wxRadioBox* m_ori; wxPanel* m_TracksPanel; wxGrid* m_TracksGrid; wxButton* m_OK; wxButton* m_Cancel; iONode m_Props; ////@end TurntableDialog member variables }; #endif // _TURNTABLEDIALOG_H_ |