2012-12-02 22:14:24 +01:00
|
|
|
// Copyright (c) 2012, Thomas Goyne <plorkyeran@aegisub.org>
|
2010-08-10 03:47:29 +02:00
|
|
|
//
|
2012-12-02 22:14:24 +01:00
|
|
|
// Permission to use, copy, modify, and distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice appear in all copies.
|
2010-08-10 03:47:29 +02:00
|
|
|
//
|
2012-12-02 22:14:24 +01:00
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
2010-08-10 03:47:29 +02:00
|
|
|
//
|
|
|
|
// Aegisub Project http://www.aegisub.org/
|
|
|
|
|
|
|
|
/// @file dialog_selected_choices.cpp
|
|
|
|
/// @brief wxMultiChoiceDialog with Select All and Select None
|
|
|
|
/// @ingroup
|
|
|
|
|
2013-01-04 16:01:50 +01:00
|
|
|
#include <wx/config.h>
|
2010-08-10 03:47:29 +02:00
|
|
|
#include <wx/choicdlg.h>
|
|
|
|
|
|
|
|
/// @class SelectedChoicesDialog
|
|
|
|
/// @brief wxMultiChoiceDialog with Select All and Select None
|
2014-03-13 02:39:07 +01:00
|
|
|
class SelectedChoicesDialog final : public wxMultiChoiceDialog {
|
2010-08-10 03:47:29 +02:00
|
|
|
SelectedChoicesDialog(SelectedChoicesDialog const&);
|
|
|
|
SelectedChoicesDialog& operator=(SelectedChoicesDialog const&);
|
|
|
|
|
|
|
|
void SelectAll(wxCommandEvent&);
|
|
|
|
|
|
|
|
public:
|
|
|
|
SelectedChoicesDialog(wxWindow *parent, wxString const& message, wxString const& caption, wxArrayString const& choices);
|
|
|
|
};
|
|
|
|
|
|
|
|
int GetSelectedChoices(wxWindow *parent, wxArrayInt& selections, wxString const& message, wxString const& caption, wxArrayString const& choices);
|