12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- /* GCSx
- ** IMGDIALOG.H
- **
- ** Image selection dialog (from animgroup/tileset)
- ** Not a full dialog- used as a base for others
- */
- /*****************************************************************************
- ** Copyright (C) 2003-2006 Janson
- **
- ** This program is free software; you can redistribute it and/or modify
- ** it under the terms of the GNU General Public License as published by
- ** the Free Software Foundation; either version 2 of the License, or
- ** (at your option) any later version.
- **
- ** This program is distributed in the hope that it will be useful,
- ** but WITHOUT ANY WARRANTY; without even the implied warranty of
- ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ** GNU General Public License for more details.
- **
- ** You should have received a copy of the GNU General Public License
- ** along with this program; if not, write to the Free Software
- ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
- *****************************************************************************/
- #ifndef __GCSx_IMGDIALOG_H_
- #define __GCSx_IMGDIALOG_H_
- class ImageDialog : protected Dialog {
- protected:
- void addLibTree(int id);
- void addImgChoose(int id);
- // Only world is required
- void runPrep(class WorldEdit* nWorld, class AnimGroup* animGroup, class TileSet* tileSet, int animTileId);
- // Return values are gaurunteed within ranges/valid
- // justchecking = give me the values but don't clean up yet
- void runComplete(class AnimGroup** animGroup = NULL, class TileSet** tileSet = NULL, int* animTileId = NULL, int justChecking = 0);
-
- void selectImage(class AnimGroup* animGroup, class TileSet* tileSet, int animTileId);
-
- private:
- int animId;
- int tileId;
- int subId;
- class TreeView* libTree;
- class ImageChooser* imgChoose;
- int libId;
- class WorldEdit* world;
- void fillLibTree();
- static int treeViewWrapTileSet(void* ptr, int code, int command, int check);
- int treeViewTileSet(int code, int command, int check);
-
- static int treeViewWrapAnimGroup(void* ptr, int code, int command, int check);
- int treeViewAnimGroup(int code, int command, int check);
- public:
- ImageDialog();
- virtual ~ImageDialog();
- };
- #endif
|