Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f3563dc1
Commit
f3563dc1
authored
Jan 30, 2003
by
Boris Dorès
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed a segfault occuring when the preference dialog box was destroyed
parent
aafd6446
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
81 additions
and
102 deletions
+81
-102
modules/gui/win32/preferences.cpp
modules/gui/win32/preferences.cpp
+64
-83
modules/gui/win32/preferences.h
modules/gui/win32/preferences.h
+17
-19
No files found.
modules/gui/win32/preferences.cpp
View file @
f3563dc1
This diff is collapsed.
Click to expand it.
modules/gui/win32/preferences.h
View file @
f3563dc1
...
...
@@ -34,14 +34,18 @@
#include <ExtCtrls.hpp>
#include "CSPIN.h"
//---------------------------------------------------------------------------
/* A TCheckListBox that automatically disposes any TObject
associated with the string items */
class
TCleanCheckListBox
:
public
TCheckListBox
/* A TCheckListBox that can associate an integer to each string item */
class
TExtCheckListBox
:
public
TCheckListBox
{
public:
__fastcall
TCleanCheckListBox
(
Classes
::
TComponent
*
AOwner
)
DYNAMIC
void
__fastcall
SetItemData
(
int
Index
,
int
AData
)
{
TCheckListBox
::
SetItemData
(
Index
,
AData
);
}
DYNAMIC
int
__fastcall
GetItemData
(
int
Index
)
{
return
TCheckListBox
::
GetItemData
(
Index
);
}
__fastcall
TExtCheckListBox
(
Classes
::
TComponent
*
AOwner
)
:
TCheckListBox
(
AOwner
)
{};
virtual
__fastcall
~
TCleanCheckListBox
();
};
//---------------------------------------------------------------------------
/* A THintWindow with a limited width */
...
...
@@ -52,16 +56,6 @@ public:
const
System
::
AnsiString
AHint
);
};
//---------------------------------------------------------------------------
/* Just a wrapper to embed an AnsiString into a TObject */
class
TObjectString
:
public
TObject
{
private:
AnsiString
FString
;
public:
__fastcall
TObjectString
(
char
*
String
);
AnsiString
__fastcall
String
();
};
//---------------------------------------------------------------------------
class
TPanelPref
:
public
TPanel
{
public:
...
...
@@ -71,7 +65,7 @@ public:
protected:
module_config_t
*
p_config
;
intf_thread_t
*
p_intf
;
T
CleanCheckListBox
*
__fastcall
CreateClean
CheckListBox
(
TWinControl
*
Parent
,
T
ExtCheckListBox
*
__fastcall
CreateExt
CheckListBox
(
TWinControl
*
Parent
,
int
Left
,
int
Width
,
int
Top
,
int
Height
);
TButton
*
__fastcall
CreateButton
(
TWinControl
*
Parent
,
int
Left
,
int
Width
,
int
Top
,
int
Height
,
AnsiString
Caption
);
...
...
@@ -89,16 +83,18 @@ protected:
//---------------------------------------------------------------------------
class
TPanelPlugin
:
public
TPanelPref
{
module_t
*
ModuleSelected
;
public:
__fastcall
TPanelPlugin
(
TComponent
*
Owner
,
module_config_t
*
p_config
,
intf_thread_t
*
_p_intf
,
bool
b_multi_plugins
);
intf_thread_t
*
_p_intf
,
TStringList
*
ModuleNames
,
bool
b_multi_plugins
);
bool
b_multi_plugins
;
T
CleanCheckListBox
*
Clean
CheckListBox
;
T
ExtCheckListBox
*
Ext
CheckListBox
;
TButton
*
ButtonConfig
;
TButton
*
ButtonUp
;
TButton
*
ButtonDown
;
TLabel
*
Label
;
module_t
*
ModuleSelected
;
TStringList
*
ModuleNames
;
virtual
void
__fastcall
TPanelPlugin
::
SetValue
(
AnsiString
Values
);
virtual
void
__fastcall
UpdateChanges
();
void
__fastcall
CheckListBoxClick
(
TObject
*
Sender
);
...
...
@@ -162,8 +158,10 @@ __published: // IDE-managed Components
void
__fastcall
FormClose
(
TObject
*
Sender
,
TCloseAction
&
Action
);
private:
// User declarations
intf_thread_t
*
p_intf
;
TStringList
*
ModuleNames
;
public:
// User declarations
__fastcall
TPreferencesDlg
(
TComponent
*
Owner
,
intf_thread_t
*
_p_intf
);
virtual
__fastcall
~
TPreferencesDlg
();
void
__fastcall
CreateConfigDialog
(
char
*
psz_module_name
);
};
//---------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment