forked from mia/Aegisub
Add icons to some of the dialogs missing them
Originally committed to SVN as r6651.
This commit is contained in:
parent
fe36760872
commit
462448c7d1
6 changed files with 12 additions and 3 deletions
|
@ -38,6 +38,8 @@
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#ifndef AGI_PRE
|
#ifndef AGI_PRE
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/filedlg.h>
|
#include <wx/filedlg.h>
|
||||||
#include <wx/filename.h>
|
#include <wx/filename.h>
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
#include "colour_button.h"
|
#include "colour_button.h"
|
||||||
#include "compat.h"
|
#include "compat.h"
|
||||||
#include "help_button.h"
|
#include "help_button.h"
|
||||||
|
#include "libresrc/libresrc.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "video_provider_dummy.h"
|
#include "video_provider_dummy.h"
|
||||||
|
@ -153,14 +154,14 @@ bool DialogDummyVideo::CreateDummyVideo(wxWindow *parent, wxString &out_filename
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// @brief DOCME
|
/// @brief DOCME
|
||||||
/// @param parent
|
/// @param parent
|
||||||
///
|
///
|
||||||
DialogDummyVideo::DialogDummyVideo(wxWindow *parent)
|
DialogDummyVideo::DialogDummyVideo(wxWindow *parent)
|
||||||
: wxDialog(parent, -1, _("Dummy video options"),wxDefaultPosition,wxDefaultSize)
|
: wxDialog(parent, -1, _("Dummy video options"),wxDefaultPosition,wxDefaultSize)
|
||||||
{
|
{
|
||||||
|
SetIcon(GETICON(use_dummy_video_menu_16));
|
||||||
|
|
||||||
// Main controls
|
// Main controls
|
||||||
length_display = 0;
|
length_display = 0;
|
||||||
resolution_shortcuts = new wxComboBox(this, Dummy_Video_Resolution_Shortcut, "", wxDefaultPosition, wxDefaultSize, 0, 0, wxCB_READONLY);
|
resolution_shortcuts = new wxComboBox(this, Dummy_Video_Resolution_Shortcut, "", wxDefaultPosition, wxDefaultSize, 0, 0, wxCB_READONLY);
|
||||||
|
|
|
@ -51,12 +51,14 @@
|
||||||
#include "include/aegisub/context.h"
|
#include "include/aegisub/context.h"
|
||||||
#include "charset_conv.h"
|
#include "charset_conv.h"
|
||||||
#include "help_button.h"
|
#include "help_button.h"
|
||||||
|
#include "libresrc/libresrc.h"
|
||||||
|
|
||||||
DialogExport::DialogExport(agi::Context *c)
|
DialogExport::DialogExport(agi::Context *c)
|
||||||
: wxDialog(c->parent, -1, _("Export"), wxDefaultPosition, wxSize(200, 100), wxCAPTION | wxCLOSE_BOX)
|
: wxDialog(c->parent, -1, _("Export"), wxDefaultPosition, wxSize(200, 100), wxCAPTION | wxCLOSE_BOX)
|
||||||
, c(c)
|
, c(c)
|
||||||
, exporter(new AssExporter(c))
|
, exporter(new AssExporter(c))
|
||||||
{
|
{
|
||||||
|
SetIcon(GETICON(export_menu_16));
|
||||||
SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
|
SetExtraStyle(wxWS_EX_VALIDATE_RECURSIVELY);
|
||||||
|
|
||||||
wxArrayString filters = exporter->GetAllFilterNames();
|
wxArrayString filters = exporter->GetAllFilterNames();
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
#include "frame_main.h"
|
#include "frame_main.h"
|
||||||
#include "help_button.h"
|
#include "help_button.h"
|
||||||
#include "include/aegisub/context.h"
|
#include "include/aegisub/context.h"
|
||||||
|
#include "libresrc/libresrc.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "selection_controller.h"
|
#include "selection_controller.h"
|
||||||
|
|
||||||
|
@ -131,6 +132,8 @@ DialogSelection::DialogSelection(agi::Context *c) :
|
||||||
wxDialog (c->parent, -1, _("Select"), wxDefaultPosition, wxDefaultSize, wxCAPTION)
|
wxDialog (c->parent, -1, _("Select"), wxDefaultPosition, wxDefaultSize, wxCAPTION)
|
||||||
, con(c)
|
, con(c)
|
||||||
{
|
{
|
||||||
|
SetIcon(GETICON(select_lines_button_16));
|
||||||
|
|
||||||
wxSizer *main_sizer = new wxBoxSizer(wxVERTICAL);
|
wxSizer *main_sizer = new wxBoxSizer(wxVERTICAL);
|
||||||
|
|
||||||
wxSizerFlags main_flags = wxSizerFlags().Expand().Border();
|
wxSizerFlags main_flags = wxSizerFlags().Expand().Border();
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
#include "dialog_style_manager.h"
|
#include "dialog_style_manager.h"
|
||||||
|
|
||||||
#ifndef AGI_PRE
|
#ifndef AGI_PRE
|
||||||
|
#include <algorithm>
|
||||||
#include <tr1/functional>
|
#include <tr1/functional>
|
||||||
|
|
||||||
#include <wx/bmpbuttn.h>
|
#include <wx/bmpbuttn.h>
|
||||||
|
|
|
@ -658,7 +658,7 @@ static void PageChanged(wxBookCtrlEvent& evt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"), wxDefaultPosition, wxSize(-1, 500)) {
|
Preferences::Preferences(wxWindow *parent): wxDialog(parent, -1, _("Preferences"), wxDefaultPosition, wxSize(-1, 500)) {
|
||||||
// SetIcon(GETICON(options_button_16));
|
SetIcon(GETICON(options_button_16));
|
||||||
|
|
||||||
book = new wxTreebook(this, -1, wxDefaultPosition, wxDefaultSize);
|
book = new wxTreebook(this, -1, wxDefaultPosition, wxDefaultSize);
|
||||||
new General(book, this);
|
new General(book, this);
|
||||||
|
|
Loading…
Reference in a new issue