File: FileHistory.xs

package info (click to toggle)
libwx-perl 1%3A0.9909-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,912 kB
  • sloc: cpp: 9,728; perl: 8,182; ansic: 626; makefile: 41
file content (98 lines) | stat: -rw-r--r-- 2,020 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#############################################################################
## Name:        ext/docview/XS/FileHistory.xs
## Purpose:     XS for wxFileHistory (Document/View Framework)
## Author:      Simon Flack
## Modified by:
## Created:     11/09/2002
## RCS-ID:      $Id: FileHistory.xs 2285 2007-11-11 21:31:54Z mbarbon $
## Copyright:   (c) 2002, 2004, 2006-2007 Mattia Barbon
## Licence:     This program is free software; you can redistribute it and/or
##              modify it under the same terms as Perl itself
#############################################################################

MODULE=Wx PACKAGE=Wx::FileHistory

wxFileHistory *
wxFileHistory::new( maxFiles = 9 )
    int maxFiles
  CODE:
    RETVAL=new wxPliFileHistory(CLASS, maxFiles );
  OUTPUT:
    RETVAL

void
wxFileHistory::AddFileToHistory( file )
    wxString file

void
wxFileHistory::RemoveFileFromHistory( i )
    int i 

int
wxFileHistory::GetMaxFiles()

void
wxFileHistory::UseMenu( menu )
    wxMenu* menu

void
wxFileHistory::RemoveMenu( menu )
    wxMenu* menu

## Work out the config stuff

void
wxFileHistory::Load( config )
    wxConfigBase* config
  C_ARGS: *config

void
wxFileHistory::Save( config )
    wxConfigBase* config
  C_ARGS: *config

void
wxFileHistory::AddFilesToMenu( ... )
  CASE: items == 1
    CODE:
      THIS->AddFilesToMenu();
  CASE: items == 2
    INPUT:
      wxMenu* menu = NO_INIT
    CODE:
      THIS->AddFilesToMenu( menu );
  CASE:
    CODE:
      croak( "Usage: Wx::FileHistory::AddfilesToMenu(THIS [, menu ] )" );

wxString
wxFileHistory::GetHistoryFile( i )
    int i

int
wxFileHistory::GetCount()

#if WXPERL_W_VERSION_LT( 2, 5, 1 )

int
wxFileHistory::GetNoHistoryFiles()

#endif

SV*
wxFileHistory::GetMenus()
  CODE:
    AV* aMenus = wxPli_objlist_2_av( aTHX_ THIS->GetMenus() );
    RETVAL = newRV_noinc( (SV*)aMenus  );
  OUTPUT: RETVAL

#if WXPERL_W_VERSION_GE( 2, 8, 3 )

void
wxFileHistory::SetBaseId( baseId )
    wxWindowID baseId

wxWindowID
wxFileHistory::GetBaseId()

#endif