GRSISort "v4.0.0.5"
An extension of the ROOT analysis Framework
Loading...
Searching...
No Matches
grsixx.cxx File Reference
#include "Globals.h"
#include "GVersion.h"
#include "RConfigure.h"
#include <cstdio>
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <pwd.h>
#include <sys/types.h>
#include <X11/Xlib.h>
#include <X11/xpm.h>
#include "Rtypes.h"
#include <ctime>
#include <sys/time.h>
#include "TSystem.h"
+ Include dependency graph for grsixx.cxx:

Go to the source code of this file.

Functions

void CloseDisplay ()
 
static int DrawCreditItem (const char *creditItem, const char **members, int y, bool draw)
 
static int DrawCredits (bool draw, bool)
 
static void DrawROOTCredit ()
 
static void DrawVersion ()
 
static Pixmap GetRootLogo ()
 
void PopdownLogo ()
 
void PopupLogo (bool about)
 
static void ReadContributors ()
 
void ScrollCredits (int ypos)
 
static void Sleep (int milliSec)
 
static bool StayUp (int milliSec)
 
void WaitLogo ()
 

Variables

static bool gAbout = false
 
static std::array< const char *, 2 > gConception = {"P. C. Bender", nullptr}
 
static char ** gContributors = nullptr
 
static unsigned int gCreditsHeight = 0
 
static Pixmap gCreditsPixmap = 0
 
static XRectangle gCreditsRect = {15, 155, 285, 130}
 
static unsigned int gCreditsWidth = gCreditsRect.width / 2
 
static Display * gDisplay = nullptr
 
static bool gDone = false
 
static XFontStruct * gFont = nullptr
 
static GC gGC = nullptr
 
static unsigned int gHeight = 0
 
static std::array< const char *, 3 > gKeyContributors = {"R. Dunlop", "D. Miller", nullptr}
 
static std::array< const char *, 3 > gLeadDevelopers = {"V. Bildstein", "P. C. Bender", nullptr}
 
static Pixmap gLogoPixmap = 0
 
static Window gLogoWindow = 0
 
static bool gMayPopdown = false
 
static struct timeval gPopupTime
 
static int gStayUp = 4000
 
static unsigned int gWidth = 0
 

Function Documentation

◆ CloseDisplay()

void CloseDisplay ( )

Close connection to X server (called by child).

Definition at line 471 of file grsixx.cxx.

References gDisplay.

◆ DrawCreditItem()

static int DrawCreditItem ( const char * creditItem,
const char ** members,
int y,
bool draw )
static

Draw credit item.

Definition at line 223 of file grsixx.cxx.

References gCreditsPixmap, gCreditsWidth, gDisplay, gFont, and gGC.

Referenced by DrawCredits().

◆ DrawCredits()

static int DrawCredits ( bool draw,
bool  )
static

Draw credits. If draw is true draw credits, otherwise just return size of all credit text.

Definition at line 252 of file grsixx.cxx.

References DrawCreditItem(), gConception, gFont, gKeyContributors, and gLeadDevelopers.

Referenced by PopupLogo().

◆ DrawROOTCredit()

static void DrawROOTCredit ( )
static

Draw version string.

Definition at line 214 of file grsixx.cxx.

References gDisplay, gGC, gHeight, and gLogoWindow.

Referenced by WaitLogo().

◆ DrawVersion()

static void DrawVersion ( )
static

Draw version string.

Definition at line 204 of file grsixx.cxx.

References gDisplay, gGC, gHeight, and gLogoWindow.

Referenced by WaitLogo().

◆ GetRootLogo()

static Pixmap GetRootLogo ( )
static

Get logo from xpm file.

Definition at line 103 of file grsixx.cxx.

References gDisplay, and gLogoWindow.

Referenced by PopupLogo().

◆ PopdownLogo()

void PopdownLogo ( )

ROOT is ready to run, may pop down the logo if stay up time expires.

Definition at line 464 of file grsixx.cxx.

References gMayPopdown.

◆ PopupLogo()

void PopupLogo ( bool about)

Popup logo, waiting till ROOT is ready to run.

Definition at line 289 of file grsixx.cxx.

References DrawCredits(), gAbout, gCreditsHeight, gCreditsPixmap, gCreditsRect, gCreditsWidth, gDisplay, GetRootLogo(), gFont, gGC, gHeight, gLogoPixmap, gLogoWindow, gPopupTime, gWidth, and ReadContributors().

Referenced by TGRSIint::DrawLogo().

◆ ReadContributors()

static void ReadContributors ( )
static

Read the file $ROOTSYS/README/CREDITS for the names of the contributors.

Definition at line 160 of file grsixx.cxx.

References gContributors.

Referenced by PopupLogo().

◆ ScrollCredits()

void ScrollCredits ( int ypos)

Definition at line 280 of file grsixx.cxx.

References gCreditsHeight, gCreditsPixmap, gCreditsRect, gCreditsWidth, gDisplay, gGC, and gLogoWindow.

Referenced by WaitLogo().

◆ Sleep()

static void Sleep ( int milliSec)
static

Sleep for specified amount of milli seconds.

Definition at line 90 of file grsixx.cxx.

Referenced by WaitLogo().

◆ StayUp()

static bool StayUp ( int milliSec)
static

Returns false if milliSec milliseconds have passed since logo was popped up, true otherwise.

Definition at line 61 of file grsixx.cxx.

References gPopupTime.

Referenced by WaitLogo().

◆ WaitLogo()

void WaitLogo ( )

Main event loop waiting till time arrives to pop down logo or when forced by button press event.

Definition at line 376 of file grsixx.cxx.

References DrawROOTCredit(), DrawVersion(), gAbout, gCreditsHeight, gCreditsPixmap, gCreditsRect, gDisplay, gDone, gFont, gGC, gLogoPixmap, gLogoWindow, gMayPopdown, gStayUp, ScrollCredits(), Sleep(), and StayUp().

Referenced by TGRSIint::DrawLogo().

Variable Documentation

◆ gAbout

bool gAbout = false
static

Definition at line 43 of file grsixx.cxx.

Referenced by PopupLogo(), and WaitLogo().

◆ gConception

std::array<const char*, 2> gConception = {"P. C. Bender", nullptr}
static

Definition at line 53 of file grsixx.cxx.

Referenced by DrawCredits().

◆ gContributors

char** gContributors = nullptr
static

Definition at line 59 of file grsixx.cxx.

Referenced by ReadContributors().

◆ gCreditsHeight

unsigned int gCreditsHeight = 0
static

Definition at line 49 of file grsixx.cxx.

Referenced by PopupLogo(), ScrollCredits(), and WaitLogo().

◆ gCreditsPixmap

Pixmap gCreditsPixmap = 0
static

Definition at line 38 of file grsixx.cxx.

Referenced by DrawCreditItem(), PopupLogo(), ScrollCredits(), and WaitLogo().

◆ gCreditsRect

XRectangle gCreditsRect = {15, 155, 285, 130}
static

Definition at line 47 of file grsixx.cxx.

Referenced by PopupLogo(), ScrollCredits(), and WaitLogo().

◆ gCreditsWidth

unsigned int gCreditsWidth = gCreditsRect.width / 2
static

Definition at line 48 of file grsixx.cxx.

Referenced by DrawCreditItem(), PopupLogo(), and ScrollCredits().

◆ gDisplay

Display* gDisplay = nullptr
static

◆ gDone

bool gDone = false
static

Definition at line 41 of file grsixx.cxx.

Referenced by WaitLogo().

◆ gFont

XFontStruct* gFont = nullptr
static

Definition at line 40 of file grsixx.cxx.

Referenced by DrawCreditItem(), DrawCredits(), PopupLogo(), and WaitLogo().

◆ gGC

GC gGC = nullptr
static

◆ gHeight

unsigned int gHeight = 0
static

Definition at line 45 of file grsixx.cxx.

Referenced by DrawROOTCredit(), DrawVersion(), and PopupLogo().

◆ gKeyContributors

std::array<const char*, 3> gKeyContributors = {"R. Dunlop", "D. Miller", nullptr}
static

Definition at line 57 of file grsixx.cxx.

Referenced by DrawCredits().

◆ gLeadDevelopers

std::array<const char*, 3> gLeadDevelopers = {"V. Bildstein", "P. C. Bender", nullptr}
static

Definition at line 55 of file grsixx.cxx.

Referenced by DrawCredits().

◆ gLogoPixmap

Pixmap gLogoPixmap = 0
static

Definition at line 37 of file grsixx.cxx.

Referenced by PopupLogo(), and WaitLogo().

◆ gLogoWindow

Window gLogoWindow = 0
static

Definition at line 36 of file grsixx.cxx.

Referenced by DrawROOTCredit(), DrawVersion(), GetRootLogo(), PopupLogo(), ScrollCredits(), and WaitLogo().

◆ gMayPopdown

bool gMayPopdown = false
static

Definition at line 42 of file grsixx.cxx.

Referenced by PopdownLogo(), and WaitLogo().

◆ gPopupTime

struct timeval gPopupTime
static

Definition at line 51 of file grsixx.cxx.

Referenced by PopupLogo(), and StayUp().

◆ gStayUp

int gStayUp = 4000
static

Definition at line 46 of file grsixx.cxx.

Referenced by WaitLogo().

◆ gWidth

unsigned int gWidth = 0
static

Definition at line 44 of file grsixx.cxx.

Referenced by PopupLogo().