NCBI C++ ToolKit
winmask_files_dlg.hpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 #ifndef GUI_WIDGETS___LOADERS___WINMASK_FILES_DLG__HPP
2 #define GUI_WIDGETS___LOADERS___WINMASK_FILES_DLG__HPP
3 
4 /* $Id: winmask_files_dlg.hpp 43936 2019-09-20 20:26:42Z katargir $
5 * ===========================================================================
6 *
7 * PUBLIC DOMAIN NOTICE
8 * National Center for Biotechnology Information
9 *
10 * This software/database is a "United States Government Work" under the
11 * terms of the United States Copyright Act. It was written as part of
12 * the author's official duties as a United States Government employee and
13 * thus cannot be copyrighted. This software/database is freely available
14 * to the public for use. The National Library of Medicine and the U.S.
15 * Government have not placed any restriction on its use or reproduction.
16 *
17 * Although all reasonable efforts have been taken to ensure the accuracy
18 * and reliability of the software and data, the NLM and the U.S.
19 * Government do not and cannot warrant the performance or results that
20 * may be obtained by using this software or data. The NLM and the U.S.
21 * Government disclaim all warranties, express or implied, including
22 * warranties of performance, merchantability or fitness for any particular
23 * purpose.
24 *
25 * Please cite the author in any work or product based on this material.
26 *
27 * ===========================================================================
28 *
29 * Authors: Yury Voronov
30 *
31 * File Description:
32 *
33 */
34 
35 #include <corelib/ncbistd.hpp>
36 
38 #include <wx/dialog.h>
39 
40 #include <gui/utils/job_future.hpp>
41 
42 
43 /*!
44  * Forward declarations
45  */
46 
47 class wxTextCtrl;
48 class wxButton;
49 class wxCheckListBox;
50 class wxStaticText;
51 class wxCheckBox;
52 class wxBitmapButton;
53 class wxRadioButton;
54 
55 ////@begin forward declarations
56 class wxBoxSizer;
57 ////@end forward declarations
58 
59 /*!
60  * Control identifiers
61  */
62 
63 ////@begin control identifiers
64 #define SYMBOL_CWINMASKFILESDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
65 #define SYMBOL_CWINMASKFILESDLG_TITLE _("WindowMasker files information")
66 #define SYMBOL_CWINMASKFILESDLG_IDNAME ID_CWIN_MASK_FILES_DLG
67 #define SYMBOL_CWINMASKFILESDLG_SIZE wxDefaultSize
68 #define SYMBOL_CWINMASKFILESDLG_POSITION wxDefaultPosition
69 ////@end control identifiers
70 
72 
73 /*!
74  * CWinMaskFilesDlg class declaration
75  */
76 
78 {
79  DECLARE_DYNAMIC_CLASS( CWinMaskFilesDlg )
80  DECLARE_EVENT_TABLE()
81 
82 public:
84  CWinMaskFilesDlg( wxWindow* parent, wxWindowID id = SYMBOL_CWINMASKFILESDLG_IDNAME, const wxString& caption = SYMBOL_CWINMASKFILESDLG_TITLE, const wxPoint& pos = SYMBOL_CWINMASKFILESDLG_POSITION, const wxSize& size = SYMBOL_CWINMASKFILESDLG_SIZE, long style = SYMBOL_CWINMASKFILESDLG_STYLE );
85 
86  bool Create( wxWindow* parent, wxWindowID id = SYMBOL_CWINMASKFILESDLG_IDNAME, const wxString& caption = SYMBOL_CWINMASKFILESDLG_TITLE, const wxPoint& pos = SYMBOL_CWINMASKFILESDLG_POSITION, const wxSize& size = SYMBOL_CWINMASKFILESDLG_SIZE, long style = SYMBOL_CWINMASKFILESDLG_STYLE );
87 
89 
90  void Init();
91 
92  void CreateControls();
93 
94  virtual bool TransferDataFromWindow();
95 
96 ////@begin CWinMaskFilesDlg event handler declarations
97 
98  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON
99  void OnUseWMPATHSelected( wxCommandEvent& event );
100 
101  /// wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON1
102  void OnUseDownloadedSelected( wxCommandEvent& event );
103 
104  /// wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2
105  void OnResetDownloads( wxCommandEvent& event );
106 
107 ////@end CWinMaskFilesDlg event handler declarations
108 
109 ////@begin CWinMaskFilesDlg member function declarations
110 
111  /// Retrieves bitmap resources
112  wxBitmap GetBitmapResource( const wxString& name );
113 
114  /// Retrieves icon resources
115  wxIcon GetIconResource( const wxString& name );
116 ////@end CWinMaskFilesDlg member function declarations
117 
118  static bool ShowToolTips();
119 
120 ////@begin CWinMaskFilesDlg member variables
121  wxRadioButton* m_UseWMPATHCtrl;
123  wxStaticText* m_WMPATHValueCtrl;
124  wxRadioButton* m_UseDownloadedCtrl;
125  wxBoxSizer* m_FileListTitleSizer;
126  wxStaticText* m_FileListTitle;
127  wxCheckListBox* m_FileList;
128  wxStaticText* m_HelpLine;
129  /// Control identifiers
130  enum {
132  ID_RADIOBUTTON = 10029,
134  ID_BUTTON2 = 10031,
135  ID_CHECKLISTBOX1 = 10027
136  };
137 ////@end CWinMaskFilesDlg member variables
138 
139  enum {
141  ID_LOADING_PROGRESS = 9999
142  };
143 
144 private:
145  void x_FillFileList();
146  void x_ShowLoadingFiles(bool show);
147 
149  std::unique_ptr<async_job> m_FutureJob;
150 };
151 
153 
154 #endif // GUI_WIDGETS___LOADERS___WINMASK_FILES_DLG__HPP
CDialog.
Definition: dialog.hpp:47
wxStaticText * m_FileListTitle
wxStaticText * m_WMPATHNotAvailableCtrl
virtual bool TransferDataFromWindow()
static bool ShowToolTips()
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void x_ShowLoadingFiles(bool show)
wxRadioButton * m_UseWMPATHCtrl
void OnUseWMPATHSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON
std::unique_ptr< async_job > m_FutureJob
bool Create(wxWindow *parent, wxWindowID id=ID_CWIN_MASK_FILES_DLG, const wxString &caption=_("WindowMasker files information"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
wxCheckListBox * m_FileList
void OnUseDownloadedSelected(wxCommandEvent &event)
wxEVT_COMMAND_RADIOBUTTON_SELECTED event handler for ID_RADIOBUTTON1
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
void OnResetDownloads(wxCommandEvent &event)
wxEVT_COMMAND_BUTTON_CLICKED event handler for ID_BUTTON2
wxRadioButton * m_UseDownloadedCtrl
wxBoxSizer * m_FileListTitleSizer
wxStaticText * m_WMPATHValueCtrl
wxStaticText * m_HelpLine
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
Definition: ncbistl.hpp:103
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Definition: ncbistl.hpp:100
const struct ncbi::grid::netcache::search::fields::SIZE size
#define SYMBOL_CWINMASKFILESDLG_POSITION
#define SYMBOL_CWINMASKFILESDLG_TITLE
#define SYMBOL_CWINMASKFILESDLG_IDNAME
#define SYMBOL_CWINMASKFILESDLG_STYLE
#define SYMBOL_CWINMASKFILESDLG_SIZE
Modified on Fri Sep 20 14:58:20 2024 by modify_doxy.py rev. 669887