Revision 280,
1.2 KB
checked in by yasumichi, 15 years ago
(diff) |
first import
|
Rev | Line | |
---|
[280] | 1 | /* rgslideshow.h |
---|
| 2 | * |
---|
| 3 | * Copyright (c) 2000, 2001 Conectiva S/A |
---|
| 4 | * |
---|
| 5 | * Author: Gustavo Niemeyer <niemeyer@conectiva.com> |
---|
| 6 | * |
---|
| 7 | * This program is free software; you can redistribute it and/or |
---|
| 8 | * modify it under the terms of the GNU General Public License as |
---|
| 9 | * published by the Free Software Foundation; either version 2 of the |
---|
| 10 | * License, or (at your option) any later version. |
---|
| 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU General Public License for more details. |
---|
| 16 | * |
---|
| 17 | * You should have received a copy of the GNU General Public License |
---|
| 18 | * along with this program; if not, write to the Free Software |
---|
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
| 20 | * USA |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | #ifndef _RGSLIDESHOW_H_ |
---|
| 25 | #define _RGSLIDESHOW_H_ |
---|
| 26 | |
---|
| 27 | using namespace std; |
---|
| 28 | |
---|
| 29 | class RGSlideShow { |
---|
| 30 | |
---|
| 31 | protected: |
---|
| 32 | |
---|
| 33 | GtkImage * _image; |
---|
| 34 | int _totalSteps; |
---|
| 35 | int _currentStep; |
---|
| 36 | vector<string> _imageFileList; |
---|
| 37 | |
---|
| 38 | public: |
---|
| 39 | |
---|
| 40 | void step(); |
---|
| 41 | void refresh(); |
---|
| 42 | void setTotalSteps(int totalSteps) { |
---|
| 43 | _totalSteps = totalSteps; |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | RGSlideShow(GtkImage * image, string imgPath); |
---|
| 47 | }; |
---|
| 48 | |
---|
| 49 | #endif |
---|
| 50 | |
---|
| 51 | // vim:sts=3:sw=3 |
---|
Note: See
TracBrowser
for help on using the repository browser.