NCBI C++ Toolkit Cross Reference

  C++/include/gui/core/broadcast_settings_dlg.hpp


/* $Id: broadcast_settings_dlg.hpp 22027 2010-09-03 20:36:23Z voronov $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors: Yury Voronov * * File Description: * */ #ifndef _BROADCAST_SETTINGS_DLG_H_ #define _BROADCAST_SETTINGS_DLG_H_ #include <corelib/ncbistd.hpp> /*! * Includes */ #include <wx/dialog.h> ////@begin includes #include "wx/valgen.h" #include "wx/statline.h" ////@end includes #include <gui/gui_export.h> BEGIN_NCBI_SCOPE /*! * Forward declarations */ ////@begin forward declarations ////@end forward declarations /*! * Control identifiers */ ////@begin control identifiers #define SYMBOL_CBROADCASTDIALOG_STYLE wxCAPTION|wxSYSTEM_MENU|wxCLOSE_BOX #define SYMBOL_CBROADCASTDIALOG_TITLE _("Broadcast Options") #define SYMBOL_CBROADCASTDIALOG_IDNAME ID_CBROADCASTDIALOG #define SYMBOL_CBROADCASTDIALOG_SIZE wxSize(400, 300) #define SYMBOL_CBROADCASTDIALOG_POSITION wxDefaultPosition ////@end control identifiers struct SBroadcastParams { SBroadcastParams() : m_BioseqMatching(), m_SeqIDMatching(), m_MatchAlnLocs(true), m_MatchByProduct(true), m_BroadcastBetweenProjects(true), m_AutoSelBroadcast(true), m_AutoVRBroadcast(true), m_VRBPolicy() {} int m_BioseqMatching; int m_SeqIDMatching; bool m_MatchAlnLocs; bool m_MatchByProduct; bool m_BroadcastBetweenProjects; bool m_AutoSelBroadcast; bool m_AutoVRBroadcast; int m_VRBPolicy; }; /*! * CBroadcastDialog class declaration */ class NCBI_GUICORE_EXPORT CBroadcastDialog: public wxDialog { DECLARE_DYNAMIC_CLASS( CBroadcastDialog ) DECLARE_EVENT_TABLE() public: CBroadcastDialog(); CBroadcastDialog( wxWindow* parent, wxWindowID id = SYMBOL_CBROADCASTDIALOG_IDNAME, const wxString& caption = SYMBOL_CBROADCASTDIALOG_TITLE, const wxPoint& pos = SYMBOL_CBROADCASTDIALOG_POSITION, const wxSize& size = SYMBOL_CBROADCASTDIALOG_SIZE, long style = SYMBOL_CBROADCASTDIALOG_STYLE ); bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CBROADCASTDIALOG_IDNAME, const wxString& caption = SYMBOL_CBROADCASTDIALOG_TITLE, const wxPoint& pos = SYMBOL_CBROADCASTDIALOG_POSITION, const wxSize& size = SYMBOL_CBROADCASTDIALOG_SIZE, long style = SYMBOL_CBROADCASTDIALOG_STYLE ); ~CBroadcastDialog(); void Init(); void CreateControls(); void SetData( const SBroadcastParams& params ); SBroadcastParams GetData() const; ////@begin CBroadcastDialog event handler declarations void OnApplyClick( wxCommandEvent& event ); ////@end CBroadcastDialog event handler declarations ////@begin CBroadcastDialog member function declarations int GetVRBPolicy() const { return m_VRBPolicy ; } void SetVRBPolicy(int value) { m_VRBPolicy = value ; } bool GetMatchAlnLocs() const { return m_MatchAlnLocs ; } void SetMatchAlnLocs(bool value) { m_MatchAlnLocs = value ; } bool GetMatchByProduct() const { return m_MatchByProduct ; } void SetMatchByProduct(bool value) { m_MatchByProduct = value ; } bool GetAutoSelBroadcast() const { return m_AutoSelBroadcast ; } void SetAutoSelBroadcast(bool value) { m_AutoSelBroadcast = value ; } bool GetAutoVRBroadcast() const { return m_AutoVRBroadcast ; } void SetAutoVRBroadcast(bool value) { m_AutoVRBroadcast = value ; } bool GetBroadcastBetweenProjects() const { return m_BroadcastBetweenProjects ; } void SetBroadcastBetweenProjects(bool value) { m_BroadcastBetweenProjects = value ; } int GetMatchRadios() const { return m_MatchRadios ; } void SetMatchRadios(int value) { m_MatchRadios = value ; } wxBitmap GetBitmapResource( const wxString& name ); wxIcon GetIconResource( const wxString& name ); ////@end CBroadcastDialog member function declarations static bool ShowToolTips(); ////@begin CBroadcastDialog member variables private: int m_VRBPolicy; bool m_MatchAlnLocs; bool m_MatchByProduct; bool m_AutoSelBroadcast; bool m_AutoVRBroadcast; bool m_BroadcastBetweenProjects; int m_MatchRadios; enum { ID_CBROADCASTDIALOG = 10001, ID_CHOICE1 = 10022, ID_RADIOBOX1 = 10032, ID_CHECKBOX2 = 10019, ID_CHECKBOX1 = 10018, ID_CHECKBOX4 = 10025, ID_RADIOBOX3 = 10017, ID_CHECKBOX3 = 10024, ID_RADIOBOX2 = 10017, ID_CHECKBOX5 = 10026, ID_STATICLINE2 = 10028 }; ////@end CBroadcastDialog member variables }; END_NCBI_SCOPE #endif // _BROADCAST_SETTINGS_DLG_H_

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.