source: trunk/SapphireShowChooser.h @ 407

Revision 407, 2.3 KB checked in by gbooker, 7 years ago (diff)

GPL header info

Line 
1/*
2 * SapphireShowChooser.h
3 * Sapphire
4 *
5 * Created by Graham Booker on Jul. 1, 2007.
6 * Copyright 2007 Sapphire Development Team and/or www.nanopi.net
7 * All rights reserved.
8 *
9 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
10 * General Public License as published by the Free Software Foundation; either version 3 of the License,
11 * or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
14 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
15 * Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along with this program; if not,
18 * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 */
20
21#import "SapphireCenteredMenuController.h"
22
23#define SHOW_CHOOSE_CANCEL -2
24#define SHOW_CHOOSE_NOT_SHOW -1
25
26/*!
27 * @brief A subclass of SapphireCenteredMenuController to choose a show title
28 *
29 * This class presents the user with a list of possible shows to match a file and asks the user to choose its name.
30 */
31@interface SapphireShowChooser : SapphireCenteredMenuController {
32        NSArray                 *shows;         /*!< @brief The list of possible shows*/
33        NSString                *searchStr;     /*!< @brief The string we searched for*/
34        int                             selection;      /*!< @brief The user's selection*/
35        BRTextControl   *fileName;      /*!< @brief The filename control*/
36}
37
38/*!
39 * @brief Sets the shows to choose from
40 *
41 * @param showList The list of shows to choose from
42 */
43- (void)setShows:(NSArray *)showList;
44
45/*!
46 * @brief Sets the filename to display
47 *
48 * @param choosingForFileName The filename being choosen for
49 */
50- (void)setFileName:(NSString *)choosingForFileName;
51
52/*!
53 * @brief The list of shows to choose from
54 *
55 * @return The list of shows to choose from
56 */
57- (NSArray *)shows;
58
59/*!
60 * @brief Sets the string we searched for
61 *
62 * @param search The string we searched for
63 */
64- (void)setSearchStr:(NSString *)search;
65
66/*!
67 * @brief The string we searched for
68 *
69 * @return The string we searched for
70 */
71- (NSString *)searchStr;
72
73/*!
74 * @brief The item the user selected.  Special values are in the header file
75 *
76 * @return The user's selection
77 */
78- (int)selection;
79
80@end
Note: See TracBrowser for help on using the repository browser.