Some files are still using msdos encoding, which is bad :)
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@926 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
b5e806eda3
commit
3a7edb8323
96
filesel.h
96
filesel.h
@ -1,48 +1,48 @@
|
|||||||
/* Grafx2 - The Ultimate 256-color bitmap paint program
|
/* Grafx2 - The Ultimate 256-color bitmap paint program
|
||||||
|
|
||||||
Copyright 2007 Adrien Destugues
|
Copyright 2007 Adrien Destugues
|
||||||
Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
|
Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
|
||||||
|
|
||||||
Grafx2 is free software; you can redistribute it and/or
|
Grafx2 is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
as published by the Free Software Foundation; version 2
|
as published by the Free Software Foundation; version 2
|
||||||
of the License.
|
of the License.
|
||||||
|
|
||||||
Grafx2 is distributed in the hope that it will be useful,
|
Grafx2 is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with Grafx2; if not, see <http://www.gnu.org/licenses/>
|
along with Grafx2; if not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
///@file filesel.h
|
///@file filesel.h
|
||||||
/// Fileselector window, used for loading and saving images and brushes.
|
/// Fileselector window, used for loading and saving images and brushes.
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
#ifndef __FILESEL_H__
|
#ifndef __FILESEL_H__
|
||||||
#define __FILESEL_H__
|
#define __FILESEL_H__
|
||||||
|
|
||||||
#include "struct.h"
|
#include "struct.h"
|
||||||
|
|
||||||
byte Button_Load_or_Save(byte load, byte image);
|
byte Button_Load_or_Save(byte load, byte image);
|
||||||
|
|
||||||
void Add_element_to_list(T_Fileselector *list, const char * fname, int type);
|
void Add_element_to_list(T_Fileselector *list, const char * fname, int type);
|
||||||
///
|
///
|
||||||
/// Formats a display name for a file, directory, or similar name (drive, volume).
|
/// Formats a display name for a file, directory, or similar name (drive, volume).
|
||||||
/// The returned value is a pointer to a single static buffer of 19 characters
|
/// The returned value is a pointer to a single static buffer of 19 characters
|
||||||
/// including the '\0'.
|
/// including the '\0'.
|
||||||
char * Format_filename(const char * fname, int type);
|
char * Format_filename(const char * fname, int type);
|
||||||
|
|
||||||
void Free_fileselector_list(T_Fileselector *list);
|
void Free_fileselector_list(T_Fileselector *list);
|
||||||
|
|
||||||
void Sort_list_of_files(T_Fileselector *list);
|
void Sort_list_of_files(T_Fileselector *list);
|
||||||
|
|
||||||
void Recount_files(T_Fileselector *list);
|
void Recount_files(T_Fileselector *list);
|
||||||
|
|
||||||
T_Fileselector_item * Get_item_by_index(T_Fileselector *list, short index);
|
T_Fileselector_item * Get_item_by_index(T_Fileselector *list, short index);
|
||||||
|
|
||||||
short Find_file_in_fileselector(T_Fileselector *list, char * fname);
|
short Find_file_in_fileselector(T_Fileselector *list, char * fname);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user