Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ae157fbf
Commit
ae157fbf
authored
May 23, 2004
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Remove the old info window from SVN.
* Cosmetic fix to misc.m
parent
3c42af82
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
211 deletions
+3
-211
modules/gui/macosx/info.h
modules/gui/macosx/info.h
+0
-41
modules/gui/macosx/info.m
modules/gui/macosx/info.m
+0
-167
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+0
-1
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+3
-2
No files found.
modules/gui/macosx/info.h
deleted
100644 → 0
View file @
3c42af82
/*****************************************************************************
* info.h: MacOS X info panel
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id$
*
* Authors: Derk-Jan Hartman <thedj@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
/*****************************************************************************
* VLCInfo interface
*****************************************************************************/
@interface
VLCInfo
:
NSObject
{
IBOutlet
id
o_window
;
IBOutlet
id
o_view
;
IBOutlet
id
o_selector
;
NSMutableDictionary
*
o_strings
;
}
-
(
void
)
updateInfo
;
-
(
IBAction
)
toggleInfoPanel
:(
id
)
sender
;
-
(
IBAction
)
showCategory
:(
id
)
sender
;
-
(
void
)
createInfoView
:(
info_category_t
*
)
p_category
;
@end
modules/gui/macosx/info.m
deleted
100644 → 0
View file @
3c42af82
/*****************************************************************************
* info.m: MacOS X info panel
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id$
*
* Authors: Derk-Jan Hartman <hartman at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include "intf.h"
#include "info.h"
/*****************************************************************************
* VLCInfo implementation
*****************************************************************************/
@implementation
VLCInfo
-
(
void
)
awakeFromNib
{
[
o_window
setExcludedFromWindowsMenu
:
YES
];
}
-
(
id
)
init
{
self
=
[
super
init
];
if
(
self
!=
nil
)
{
o_strings
=
[[
NSMutableDictionary
alloc
]
init
];
}
return
(
self
);
}
-
(
void
)
dealloc
{
[
o_strings
release
];
[
super
dealloc
];
}
-
(
IBAction
)
toggleInfoPanel
:(
id
)
sender
{
if
(
[
o_window
isVisible
]
)
{
[
o_window
orderOut
:
sender
];
}
else
{
[
o_window
orderFront
:
sender
];
[
self
updateInfo
];
}
}
-
(
IBAction
)
showCategory
:(
id
)
sender
{
NSString
*
o_title
=
[
o_selector
titleOfSelectedItem
];
[
o_view
setString
:
[
o_strings
objectForKey
:
o_title
]];
[
o_view
setNeedsDisplay
:
YES
];
}
-
(
void
)
updateInfo
{
NSString
*
o_selectedPane
;
int
i
,
i_select
;
if
(
!
[
o_window
isVisible
]
)
{
return
;
}
o_selectedPane
=
[[
o_selector
selectedItem
]
title
];
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
input_thread_t
*
p_input
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_input
==
NULL
)
{
return
;
}
[
o_strings
removeAllObjects
];
[
o_selector
removeAllItems
];
vlc_mutex_lock
(
&
p_input
->
p_item
->
lock
);
for
(
i
=
0
;
i
<
p_input
->
p_item
->
i_categories
;
i
++
)
{
info_category_t
*
p_cat
=
p_input
->
p_item
->
pp_categories
[
i
];
[
self
createInfoView
:
p_cat
];
}
vlc_mutex_unlock
(
&
p_input
->
p_item
->
lock
);
vlc_object_release
(
p_input
);
i_select
=
[
o_selector
indexOfItemWithTitle
:
o_selectedPane
];
if
(
i_select
<
0
)
{
i_select
=
0
;
}
[
o_selector
selectItemAtIndex
:
i_select
];
[
self
showCategory
:
o_selector
];
}
-
(
void
)
createInfoView
:(
info_category_t
*
)
p_cat
{
NSString
*
o_title
;
NSMutableString
*
o_content
;
info_t
*
p_info
;
int
i
;
/* Add a category */
o_title
=
[
NSString
stringWithUTF8String
:
p_cat
->
psz_name
];
[
o_selector
addItemWithTitle
:
o_title
];
/* Create empty content string */
o_content
=
[
NSMutableString
string
];
/* Add the fields */
for
(
i
=
0
;
i
<
p_cat
->
i_infos
;
i
++
)
{
p_info
=
p_cat
->
pp_infos
[
i
];
[
o_content
appendFormat
:
@"%@: %@
\n\n
"
,
[
NSApp
localizedString
:
p_info
->
psz_name
],
[
NSApp
localizedString
:
p_info
->
psz_value
]];
}
[
o_strings
setObject
:
o_content
forKey
:
o_title
];
}
@end
@implementation
VLCInfo
(
NSMenuValidation
)
-
(
BOOL
)
validateMenuItem
:(
NSMenuItem
*
)
o_mi
{
BOOL
bEnabled
=
TRUE
;
intf_thread_t
*
p_intf
=
[
NSApp
getIntf
];
input_thread_t
*
p_input
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
[[
o_mi
title
]
isEqualToString
:
_NS
(
"Info"
)]
)
{
if
(
p_input
==
NULL
)
{
bEnabled
=
FALSE
;
}
}
if
(
p_input
)
vlc_object_release
(
p_input
);
return
(
bEnabled
);
}
@end
modules/gui/macosx/intf.m
View file @
ae157fbf
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
#include "vout.h"
#include "vout.h"
#include "prefs.h"
#include "prefs.h"
#include "playlist.h"
#include "playlist.h"
#include "info.h"
#include "controls.h"
#include "controls.h"
/*****************************************************************************
/*****************************************************************************
...
...
modules/gui/macosx/misc.m
View file @
ae157fbf
/*****************************************************************************
/*****************************************************************************
* misc.m: code not specific to vlc
* misc.m: code not specific to vlc
*****************************************************************************
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* Copyright (C) 2003
-2004
VideoLAN
* $Id$
* $Id$
*
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
...
@@ -266,4 +266,5 @@ void _drawFrameInRect(NSRect frameRect)
...
@@ -266,4 +266,5 @@ void _drawFrameInRect(NSRect frameRect)
_drawKnobInRect
(
knobRect
);
_drawKnobInRect
(
knobRect
);
}
}
@end
@end
\ No newline at end of file
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