//----------------------------------------------------------------------------- DigitalClock::DigitalClock(QWidget *parent) : KGameLCDClock(parent, "digital_clock") { setFrameStyle(Panel | Sunken); setDefaultBackgroundColor(black); setDefaultColor(white); }
void ZDvidSynapse::init() { m_type = GetType(); m_projectionVisible = false; m_kind = EKind::KIND_INVALID; setDefaultRadius(); setDefaultColor(); }
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); }
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(); }
/* * デストラクタ。 * @return なし */ ScreenControl::~ScreenControl() { setDefaultColor(); setWindow(mInitWindow.Left, mInitWindow.Top, mInitWindow.Right, mInitWindow.Bottom); setBufferSize(mInitBufferSize.X, mInitBufferSize.Y); // 初期ハンドルの再設定 SetConsoleActiveScreenBuffer(mInitHandle); // スクリーンバッファを解放 CloseHandle(mHandle); mHandle = NULL; }
// 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); }
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; }
void pColorButton::setColor( const QColor& color ) { setDefaultColor( color ); emit colorChanged( mColor ); }
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); }
void DeleteHandle::setDefaultColor( const QColor & c ) { m_defaultColor = QColor(c); setDefaultColor(); }