Skip to content

Commit

Permalink
icc_examin_070425.170923.tar.gz
Browse files Browse the repository at this point in the history
  • Loading branch information
beku committed Mar 2, 2008
1 parent 8ab4ba4 commit 5bb9eea
Show file tree
Hide file tree
Showing 39 changed files with 444 additions and 473 deletions.
4 changes: 2 additions & 2 deletions fl_i18n/Makefile
Expand Up @@ -9,8 +9,8 @@ XINERAMA_LIB = -lXinerama
X11_LIB_PATH = -L/usr/X11R6/lib$(BARCH) -L/usr/lib$(BARCH) -L$(libdir)
X11_LIBS=$(X11_LIB_PATH) -lX11 $(XF86VMODE_LIB) -lXpm -lXext $(XINERAMA_LIB)
FLTK = 1
FLTK_H = -I/usr/include/freetype2 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing
FLTK_LIBS = -lfltk_images -lpng -lz -ljpeg -lfltk_gl -lGLU -lGL -lfltk -lXft -lXinerama -lpthread -lm -lXext -lX11
FLTK_H = -I/opt/test1/include -I/usr/include/freetype2 -I/usr/X11R6/include
FLTK_LIBS = -L/opt/test1/lib -L/usr/X11R6/lib -lfltk_images -lpng -lz -ljpeg -lfltk_gl -lGLU -lGL -lfltk -lXft -lXinerama -lpthread -lm -lXext -lX11
dl = -ldl
GETTEXT = -DUSE_GETTEXT
DEBUG = -Wall -g -DDEBUG --pedantic
Expand Down
8 changes: 4 additions & 4 deletions icc_helfer_osx.cpp
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* Aufbereitung von osX internen Informationen - werkzeugabhängig
* preparation of osX internal informations - toolkitdependent
*
*/

Expand Down Expand Up @@ -70,7 +70,7 @@ leseGrafikKartenGamma (std::string display_name,
texte[2] = _("Blue");
texte[3] = "gamma_start_ende";

texte.push_back(_("Hersteller: "));
texte.push_back(_("Manufacturer: "));
//texte[texte.size()-1].append(monitor.vendor);
texte.push_back(_("Model: "));
//texte[texte.size()-1].append(monitor.model);
Expand Down Expand Up @@ -117,7 +117,7 @@ leseGrafikKartenGamma (std::string display_name,
}
}

} else DBG_NUM_S( "kein vcgt in X anzeigbar" )
} else DBG_NUM_S( "no vcgt in X displayable" )

bail:

Expand Down Expand Up @@ -159,7 +159,7 @@ namespace icc_examin_ns {
DBG_PROG_S( adresse )
CFRelease(cfstring);
if(text) free (text);
} else { WARN_S( "Für "<<dateiname<<"|"<<ende<<" kein Adresse gefunden" ) }
} else { WARN_S( "For "<<dateiname<<"|"<<ende<<" no adress found" ) }
}
return adresse;
}
Expand Down
2 changes: 1 addition & 1 deletion icc_helfer_ui.h
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* ICC Helfer - werkzeugabhaengig
* ICC helper - toolkitdependent
*
*/

Expand Down
12 changes: 6 additions & 6 deletions icc_helfer_x.cpp
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* Aufbereitung von X internen Informationen - werkzeugabhängig
* preparation of osX internal informations - toolkitdependent
*
*/

Expand Down Expand Up @@ -181,12 +181,12 @@ leseGrafikKartenGamma (std::string display_name,
DBG_PROG_V( monitor.vendor )
DBG_PROG_V( monitor.model )
} else {
WARN_S( _("Keine Monitor Information erhalten") )
WARN_S( "no monitor information obtained" )
}
DBG_PROG_V( DisplayWidth(display, screen) <<" "<< DisplayWidthMM(display, screen) )

if (!XF86VidModeGetGamma(display, screen, &gamma))
{ DBG_PROG_S( _("Keine Gamma Information erhalten") );
{ DBG_PROG_S( "no gamma information obtained" );
} else {
char t[24];
if( gamma.red != 1.0 ) {
Expand All @@ -212,7 +212,7 @@ leseGrafikKartenGamma (std::string display_name,

int size;
if (!XF86VidModeGetGammaRampSize(display, screen, &size))
DBG_PROG_S( _("Kein Gammagradient Information erhalten") );
DBG_PROG_S( "no gammagradient information obtained" );

DBG_PROG_V( size )
if (size)
Expand All @@ -221,7 +221,7 @@ leseGrafikKartenGamma (std::string display_name,
*green = new unsigned short [size],
*blue = new unsigned short [size];
if (!XF86VidModeGetGammaRamp(display, screen, size, red, green, blue))
WARN_S( _("Kein Gammagradient Information erhalten") )
WARN_S( _("no gammagradient information obtained") )

kurven.resize(3);
for( int i = 0; i < 3; ++i) {
Expand All @@ -236,7 +236,7 @@ leseGrafikKartenGamma (std::string display_name,
delete [] red;
delete [] green;
delete [] blue;
} else DBG_NUM_S( "kein vcgt in X anzeigbar" );
} else DBG_NUM_S( "no vcgt in X displayable" );

# ifndef HAVE_FLTK
if (display) XCloseDisplay(display);
Expand Down
6 changes: 3 additions & 3 deletions icc_helfer_x.h
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* ICC Helfer - X / osX abhaengig
* ICC helper - X / osX dependent
*
*/

Expand All @@ -33,8 +33,8 @@
#include <string>
#include <vector>

// Helferfunktionen
// definiert in icc_helfer_x.cpp / icc_helfer_osx.cpp
// helper functions
// defined in icc_helfer_x.cpp / icc_helfer_osx.cpp
std::vector<std::vector<double> >leseGrafikKartenGamma(std::string display_name,
std::vector<std::string> &texte,
int x, int y );
Expand Down
2 changes: 1 addition & 1 deletion icc_icc.h
Expand Up @@ -32,7 +32,7 @@

#include <lcms.h>

// Zusaetze - nicht definiert in icc34.h
// additionals - not defined in icc34.h

#ifndef icSigChromaticityType
#define icSigChromaticityType 0x6368726D // chrm
Expand Down
2 changes: 1 addition & 1 deletion icc_info.h
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* Die Infos
* infos
*
*/

Expand Down
25 changes: 12 additions & 13 deletions icc_kette.cpp
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* Die Kette von Profilen Klasse.
* the chain of profiles.
*
*/

Expand Down Expand Up @@ -51,29 +51,28 @@ ICCkette::init ()
{ DBG_PROG_START
aktuelles_profil_ = -1;
# if USE_THREADS
// Es gibt drei threads.
// Der erste Neben-thread started eine while Schleife zum Beobachten
// der göffneten Dateien.
// Im Haupthread laeuft ICCexamin.
// Ein weiterer Thread übernimmt das Laden von neuen Daten.
// There are three basic threads for ICC Examin.
// iThe first one starts a while loop to observe the opened files
// In the main thread runs ICCexamin.
// A additional thread loads new files.

int fehler = fl_create_thread( getThreadId(THREAD_WACHE), &waechter, (void *)this );
if(!fehler)
DBG_PROG_S( "neuer Thread" );
DBG_PROG_S( "new thread" );

if( fehler == EAGAIN)
{
WARN_S( "Waechter Thread nicht gestartet Fehler: " << fehler );
WARN_S( "Observer thread not started. Error: " << fehler );
} else
# if !APPLE && !WIN32 && PTHREAD_THREADS_MAX
if( fehler == (int)PTHREAD_THREADS_MAX )
{
WARN_S( "zu viele Waechter Threads Fehler: " << fehler );
WARN_S( "Too many observer threads. Error: " << fehler );
} else
# endif
if( fehler != 0 )
{
WARN_S( "unbekannter Fehler beim Start eines Waechter Threads Fehler: " << fehler );
WARN_S( "Unknown error at start of observer threads. Error: " << fehler );
}

# else
Expand Down Expand Up @@ -119,7 +118,7 @@ ICCkette::einfuegen (const Speicher & prof, int pos)

DBG_PROG_V( pos )

// Laden TODO: test auf Korrektheit des Profiles (oyranos?)
// Load TODO: test for correctnes of a profile (oyranos?)
if (pos < 0 ||
pos >= (int)profile_.size() )
{
Expand Down Expand Up @@ -148,7 +147,7 @@ ICCkette::einfuegen (const Speicher & prof, int pos)
DBG_PROG_V( dtype )

int extra_benachrichtigen = -1;
// Messdaten sollten dem ersten Profil, so es normal ist, angehangen werden
// measurement data should be appended after the first profile, as normal
if(profile_[0].data_type == ICCprofile::ICCprofileDATA)
{
//ICCmeasurement m;
Expand Down Expand Up @@ -240,7 +239,7 @@ ICCkette::waechter (void* zeiger)
{
DBG_MEM_V( obj->profil_mzeit_[i] )
if( obj->profil_mzeit_[i] != 0 ) {
// lade in LADEN und warte auf Ergebnis
// load in LADEN and wait for result
icc_examin->erneuern(i);
}
obj->profil_mzeit_[i] = m_zeit;
Expand Down
8 changes: 4 additions & 4 deletions icc_kette.h
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* Die Kette von Profilen Klasse
* chain of profiles
*
*/

Expand Down Expand Up @@ -54,14 +54,14 @@ class ICCkette : public icc_examin_ns::ThreadDaten,
aktiv_.clear(); profil_mzeit_.clear(); }
private:
int aktuelles_profil_;
/** Liste der geladenen Profile */
/** list of loaded profiles */
std::vector<ICCprofile> profile_;
std::vector<std::string> profilnamen_;
std::vector<int> aktiv_;
std::vector<double> profil_mzeit_;

/** Starte einen pthread Wächter und lasse Ihn alle unsere Beobachter
informieren, welches Profile gerade geändert wurde.
/** Start a pthread observer, and let him inform all our observers,
which profile was just changed.
*/
static
# if USE_THREADS
Expand Down
2 changes: 1 addition & 1 deletion icc_main.cpp
Expand Up @@ -21,7 +21,7 @@
*
* -----------------------------------------------------------------------------
*
* Start Funktion.
* start function
*
*/

Expand Down

0 comments on commit 5bb9eea

Please sign in to comment.