• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • ekos
  • guide
common.cpp
Go to the documentation of this file.
1 /* Ekos guide tool
2  Copyright (C) 2012 Andrew Stepanenko
3 
4  Modified by Jasem Mutlaq <mutlaqja@ikarustech.com> for KStars.
5 
6  This application is free software; you can redistribute it and/or
7  modify it under the terms of the GNU General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10  */
11 
12 #include "common.h"
13 
14 #include <sys/types.h>
15 
16 // define some colors
17 const u_char DEF_BKGD_COLOR[3] = {0, 0, 0};
18 const u_char DEF_RA_COLOR[3] = {0, 255, 0};
19 const u_char DEF_DEC_COLOR[3] = {0, 165, 255};
20 const u_char DEF_GRID_COLOR[3] = {128, 128, 128};
21 const u_char DEF_WHITE_COLOR[3] = {255, 255, 255};
22 const u_char DEF_GRID_FONT_COLOR[3] = {0, 255, 128};
23 
24 const u_char DEF_SQR_OVL_COLOR[3] = {0, 255, 0};
25 
26 void u_msg( const char *fmt, ...)
27 {
28 /*
29  va_list args;
30  char buf[1024];
31 
32  va_start(args, fmt);
33  int ret = vsnprintf( buf, sizeof(buf)-1, fmt, args );
34  va_end(args);
35 */
36  va_list argptr;
37  QString text;
38 
39  va_start (argptr,fmt);
40  text.vsprintf(fmt, argptr);
41  va_end (argptr);
42 
43  QMessageBox::information( NULL, "Info...", text, QMessageBox::Ok, QMessageBox::Ok );
44 
45  //QMessageBox::information( this, "Info...", QString().sprintf("test = %d", 13), QMessageBox::Ok, QMessageBox::Ok );
46 }
47 
DEF_SQR_OVL_COLOR
const u_char DEF_SQR_OVL_COLOR[3]
Definition: common.cpp:24
DEF_GRID_COLOR
const u_char DEF_GRID_COLOR[3]
Definition: common.cpp:20
DEF_WHITE_COLOR
const u_char DEF_WHITE_COLOR[3]
Definition: common.cpp:21
DEF_DEC_COLOR
const u_char DEF_DEC_COLOR[3]
Definition: common.cpp:19
u_msg
void u_msg(const char *fmt,...)
Definition: common.cpp:26
DEF_BKGD_COLOR
const u_char DEF_BKGD_COLOR[3]
Definition: common.cpp:17
common.h
DEF_GRID_FONT_COLOR
const u_char DEF_GRID_FONT_COLOR[3]
Definition: common.cpp:22
DEF_RA_COLOR
const u_char DEF_RA_COLOR[3]
Definition: common.cpp:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal