|
Last change
on this file since 84 was
66,
checked in by Maciej Komosinski, 15 years ago
|
|
set 'eol-style' to 'native'
|
-
Property svn:eol-style set to
native
|
|
File size:
930 bytes
|
| Line | |
|---|
| 1 | // This file is a part of the Framsticks GDK library. |
|---|
| 2 | // Copyright (C) 2002-2011 Szymon Ulatowski. See LICENSE.txt for details. |
|---|
| 3 | // Refer to http://www.framsticks.com/ for further information. |
|---|
| 4 | |
|---|
| 5 | #ifndef _ADVLIST_H_ |
|---|
| 6 | #define _ADVLIST_H_ |
|---|
| 7 | |
|---|
| 8 | #include "list.h" |
|---|
| 9 | #include "nonstd.h" |
|---|
| 10 | #include "callbacks.h" |
|---|
| 11 | |
|---|
| 12 | //////////////////////////////////////////// |
|---|
| 13 | /// no more DuoList -> now we have Callback class (callbacks.h) |
|---|
| 14 | |
|---|
| 15 | /// list with notification support. |
|---|
| 16 | /// you can register callbacks which will be activated |
|---|
| 17 | /// as the list contents changes |
|---|
| 18 | |
|---|
| 19 | /// sorting functions moved to SortView class |
|---|
| 20 | |
|---|
| 21 | class AdvList: public SList |
|---|
| 22 | { |
|---|
| 23 | public: |
|---|
| 24 | Callback l_add, l_del, l_mod, l_postdel; |
|---|
| 25 | void remove(int); |
|---|
| 26 | virtual void mod(int=-1); ///< call this when you change one or more elements in list (-1 means all elements) |
|---|
| 27 | void clear(); |
|---|
| 28 | AdvList() {} |
|---|
| 29 | ~AdvList() {clear();} |
|---|
| 30 | int operator+=(void*); |
|---|
| 31 | void operator-=(void*); |
|---|
| 32 | void operator-=(int i) {remove(i);} |
|---|
| 33 | }; |
|---|
| 34 | |
|---|
| 35 | #endif |
|---|
Note: See
TracBrowser
for help on using the repository browser.