2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* The Original Code is Copyright (C) 2010 Blender Foundation.
19
* All rights reserved.
22
* Contributor(s): Blender Foundation
24
* ***** END GPL LICENSE BLOCK *****
27
/** \file ghost/intern/GHOST_SystemPathsX11.h
32
#ifndef __GHOST_SYSTEMPATHSX11_H__
33
#define __GHOST_SYSTEMPATHSX11_H__
35
#include "GHOST_SystemPaths.h"
36
#include "../GHOST_Types.h"
39
class GHOST_SystemPathsX11 : public GHOST_SystemPaths {
44
* this class should only be instanciated by GHOST_ISystem.
46
GHOST_SystemPathsX11();
51
virtual ~GHOST_SystemPathsX11();
54
* Determine the base dir in which shared resources are located. It will first try to use
55
* "unpack and run" path, then look for properly installed path, not including versioning.
56
* @return Unsigned char string pointing to system dir (eg /usr/share/blender/).
58
const GHOST_TUns8* getSystemDir() const;
61
* Determine the base dir in which user configuration is stored, not including versioning.
62
* If needed, it will create the base directory.
63
* @return Unsigned char string pointing to user dir (eg ~/.blender/).
65
const GHOST_TUns8* getUserDir() const;
68
* Determine the directory of the current binary
69
* @return Unsigned char string pointing to the binary dir
71
const GHOST_TUns8* getBinaryDir() const;
74
* Add the file to the operating system most recently used files
76
void addToSystemRecentFiles(const char* filename) const;