Exemplo n.º 1
0
//-----------------------------------------------------------------------------
DigitalClock::DigitalClock(QWidget *parent)
: KGameLCDClock(parent, "digital_clock")
{
    setFrameStyle(Panel | Sunken);
    setDefaultBackgroundColor(black);
    setDefaultColor(white);
}
Exemplo n.º 2
0
void ZDvidSynapse::init()
{
  m_type = GetType();
  m_projectionVisible = false;
  m_kind = EKind::KIND_INVALID;
  setDefaultRadius();
  setDefaultColor();
}
Exemplo n.º 3
0
CursesWindow::CursesWindow(CursesWindow *parent, const std::string & name, const Size & s, const Point & p, int default_cp, int bk_cp, bool lvok)
  : Component(parent, name), m_win(0), topLeft(p), absTopLeft(p), sz(s)
{
  if (parent) absTopLeft += parent->absPos();
  m_win = newwin(size().rows(), size().cols(), absPos().y(), absPos().x());
  setDefaultColor(default_cp);
  setBackgroundColor(bk_cp);
  setLeaveOK(lvok);
}
Exemplo n.º 4
0
 DeleteHandle::DeleteHandle( HandleItem * parent ):
         QPushButton(parent),
         m_handleItemRoot(parent),
         m_isHover(false)
 {
     setFixedWidth(Config::VisualAspect::widthHandleControl);
     setFixedHeight(Config::VisualAspect::widthHandleControl);
     setContentsMargins(0,0,0,0);
     setDefaultColor(parent->defaultColor());
     setFlat(true);
     hide();
 }
Exemplo n.º 5
0
/*
 * デストラクタ。
 * @return なし
 */
ScreenControl::~ScreenControl()
{
    setDefaultColor();
    setWindow(mInitWindow.Left, mInitWindow.Top, mInitWindow.Right, mInitWindow.Bottom);
    setBufferSize(mInitBufferSize.X, mInitBufferSize.Y);
    
    // 初期ハンドルの再設定
    SetConsoleActiveScreenBuffer(mInitHandle);
    
    // スクリーンバッファを解放
    CloseHandle(mHandle);
    mHandle = NULL;
}
Exemplo n.º 6
0
// Initializes all the pointers to NULL
// and sets the numbers of objects to 0
void Scene::init()
{
    // Fixed max sizes for arrays
    this->maxStoredObjects=50;
    this->maxDrawnObjects=200;
    
	// Initialisation of the numbers of objets filled
	this->nbStoredObjects=0;
    this->nbDrawnObjects=0;
    
    // Array creation (with fixed size)
    this->storedObjects=new Object *[this->maxStoredObjects];
    this->drawnObjects=new GLuint[this->maxDrawnObjects];
    this->drawnObjectsColors=new GLfloat[this->maxDrawnObjects*4];
    this->drawnObjectsModels=new GLfloat[this->maxDrawnObjects*16];
    this->drawnObjectsShaderIDs=new GLuint[this->maxDrawnObjects];

           
    // Default color
    GLfloat grey[16]={0.2, 0.2, 0.2, 1.0}; setDefaultColor(grey);
    // Default model
    GLfloat I[16]; setToIdentity(I); setDefaultModel(I);
    // Default shader ID
    setDefaultShaderID(1);
    
     // Initalisation of storedObjects
	for (GLuint iStoredObjects=0 ; iStoredObjects<this->maxStoredObjects ; iStoredObjects++)
		this->storedObjects[iStoredObjects]=NULL;
		
    // Light creation
    GLfloat lightPosition[]={0.0, 5.0, 0.0, 1.0}; GLfloat lightPower=1.0;
    this->setLight(lightPosition, lightPower);

    // Creation and initialisation of a camera
    this->camera=new Camera();

// in Scene::init()    
    this->drawnObjectsTexture0IDs=new GLuint[this->maxDrawnObjects];
    this->drawnObjectsTexture1IDs=new GLuint[this->maxDrawnObjects];
    // Default texture ID	
    setDefaultTextureID(1);
}
Exemplo n.º 7
0
void KColorCombo2::init()
{
	m_discardNextMousePress = false;
	m_colorArray            = 0;
	d                       = new KColorCombo2Private();

	setDefaultColor(m_defaultColor);
	insertItem("", /*index=*/0);
	updateComboBox(); // It need an item of index 0 to exists, so we created it.
	setAcceptDrops(true);

	m_popup = new KColorPopup(this);
	m_popup->installEventFilter(this);

	// By default, the array is filled with setRainbowPreset().
	// But we allocate it on demand (the later as possible) to avoid performances issues if the developer set another array.
	// However, to keep columnCount() rowCount() const, we define theme here:
	m_columnCount = 13;
	m_rowCount    = 9;
}
void RDPanelButton::clear()
{
    setText("");
    setOutputText("");
    setDefaultColor(button_parent->backgroundColor());
    setColor(button_parent->backgroundColor());
    setCart(0);
    button_deck=-1;
    button_output=-1;
    button_play_deck=NULL;
    button_start_time=QTime();
    button_end_time=QTime();
    button_active_length=0;
    button_length[0]=0;
    button_length[1]=0;
    button_secs=-1;
    button_flashing=false;
    button_flash_state=false;
    button_state=false;
    button_start_source=RDLogLine::StartUnknown;
    button_pause_when_finished=false;
    button_duck_volume=0;
}
Exemplo n.º 9
0
void pColorButton::setColor( const QColor& color )
{
    setDefaultColor( color );
    emit colorChanged( mColor );
}
Exemplo n.º 10
0
void ColorTextButton::createGUI()
{
    setIcon( QIcon( ":/FormattingToolbar/color-text" ) );
    setDefaultColor( Qt::black );
}
void scigraphics::sequence::graphViewCollection::setColor( const color &Color )
{
  setDefaultColor( Color );
  for ( viewsList::iterator View = Views.begin(); View != Views.end(); ++View )
    View->setColor(Color);
}
Exemplo n.º 12
0
 void DeleteHandle::setDefaultColor( const QColor & c )
 {
     m_defaultColor = QColor(c);
     setDefaultColor();
 }