-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathicc_examin_io.h
96 lines (84 loc) · 2.68 KB
/
icc_examin_io.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* ICC Examin ist eine ICC Profil Betrachter
*
* Copyright (C) 2004-2008 Kai-Uwe Behrmann
*
* Autor: Kai-Uwe Behrmann <ku.b@gmx.de>
*
* 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-1307, USA.
*
* -----------------------------------------------------------------------------
*
* I/O of the central class
*
*/
// Date: Mai 2004
#ifndef ICC_EXAMIN_IO_H
#define ICC_EXAMIN_IO_H
#include "icc_utils.h"
#include "icc_gl.h"
#include "icc_kette.h"
#include "icc_oyranos.h"
#include "icc_model_observer.h"
#include "icc_thread_daten.h"
#include <string>
#include <set>
class ICCfltkBetrachter;
class ICCwaehler;
class ICCexamin;
extern ICCexamin *icc_examin;
/** @brief file I/O of the central program instance
*
* This class manages the coordination with file events
*/
class ICCexaminIO /*: public icc_examin_ns::Beobachter,
public icc_examin_ns::ThreadDaten*/
{
friend class ICCexamin;
public:
ICCexaminIO ();
~ICCexaminIO () {; }
private:
bool lade_;
bool neu_laden_;
std::set<int> erneuern_;
public:
int erneuern();
void erneuern(int pos);
private:
ICClist<Speicher> speicher_vect_;
static
#if USE_THREADS
void*
#else
void
#endif
oeffnenStatisch_ ( void* ICCexamina );
void oeffnenThread_ (); //!< only one time pro ICCexamin
void oeffnenThread_ (int erneuern__);
int intent_alt_; //!< old rendering intent / de: Uebertragungsart
void farbraum_ (int info);
public:
void oeffnen (); //!< interactive
void oeffnen (ICClist<std::string> dateinamen);
bool lade () {
return lade_;
};
void lade (ICClist<Speicher> & neu);
public:
bool berichtSpeichern (void); //!< GCATS report -> html file
bool gamutSpeichern (icc_examin_ns::IccGamutFormat format); //!< gamut
};
#endif //ICC_EXAMIN_IO_H