source: cpp/frams/util/advlist.h @ 329

Last change on this file since 329 was 286, checked in by Maciej Komosinski, 10 years ago

Updated headers

  • Property svn:eol-style set to native
File size: 913 bytes
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2015  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#ifndef _ADVLIST_H_
6#define _ADVLIST_H_
7
8#include "list.h"
9#include "common/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
21class AdvList: public SList
22{
23public:
24Callback l_add, l_del, l_mod, l_postdel;
25void remove(int);
26virtual void mod(int=-1); ///< call this when you change one or more elements in list (-1 means all elements)
27void clear();
28AdvList() {}
29~AdvList() {clear();}
30int operator+=(void*);
31void operator-=(void*);
32void operator-=(int i) {remove(i);}
33};
34
35#endif
Note: See TracBrowser for help on using the repository browser.