// --- DABlinGTK ----------------------------------------------------------------- DABlinGTK::DABlinGTK(DABlinGTKOptions options) { this->options = options; initial_channel_appended = false; format_change.connect(sigc::mem_fun(*this, &DABlinGTK::ETIChangeFormatEmitted)); fic_data_change_ensemble.connect(sigc::mem_fun(*this, &DABlinGTK::FICChangeEnsembleEmitted)); fic_data_change_services.connect(sigc::mem_fun(*this, &DABlinGTK::FICChangeServicesEmitted)); pad_data_change_dynamic_label.connect(sigc::mem_fun(*this, &DABlinGTK::PADChangeDynamicLabelEmitted)); eti_player = new ETIPlayer(this); if(!options.dab2eti_binary.empty()) { eti_source = NULL; } else { eti_source = new ETISource(options.filename, this); eti_source_thread = std::thread(&ETISource::Main, eti_source); } fic_decoder = new FICDecoder(this); pad_decoder = new PADDecoder(this); set_title("DABlin"); set_default_icon_name("media-playback-start"); InitWidgets(); set_border_width(2 * WIDGET_SPACE); show_all_children(); // combobox first must be visible if(combo_channels_liststore->iter_is_valid(initial_channel_it)) combo_channels.set_active(initial_channel_it); initial_channel_appended = true; }
void ATheHUD::DrawHUD() { // Canvas is only initialized here. Super::DrawHUD(); InitWidgets(); RenderPortrait(); // Render the minimap, only if the floor is present FBox box = Game->flycam->floor->GetBox(); FVector lookPt = box.GetCenter(); RenderScreen( rendererMinimap, lookPt, box.GetExtent().GetMax(), FVector( 0, 0, -1 ) ); ui->SetSize( FVector2D( Canvas->SizeX, Canvas->SizeY ) ); ui->Update( Game->gm->T ); // Ticked here, in case reflow is needed ui->render(); // Overlay the lines for the minimap's view. vector< FVector2D > pts = ui->gameChrome->rightPanel->minimap->pts; for( int i = 0; i < pts.size()-1; i++ ) { Canvas->K2_DrawLine( pts[i], pts[i+1], 2.f, FLinearColor::Green ); } if( pts.size() > 1 ) { Canvas->K2_DrawLine( pts[ pts.size()-1 ], pts[ 0 ], 2.f, FLinearColor::Green ); } }
CommentWindow::CommentWindow(QWidget *parent, ModelVideo model) :PostureWindow(parent) { m_mvModel.m_sDate = model.m_sDate; m_mvModel.m_sDescribe = model.m_sDescribe; m_mvModel.m_sDirectory = model.m_sDirectory; m_mvModel.m_sOutLine = model.m_sOutLine; m_mvModel.m_sPublisher = model.m_sPublisher; m_mvModel.m_sVideoID = model.m_sVideoID; m_mvModel.m_vCommendsName = model.m_vCommendsName; m_mvModel.m_vComments = model.m_vComments; m_mvModel.m_sFavor = model.m_sFavor; m_mvModel.m_sMode = model.m_sMode; m_iCurrPage = 0; InitWidgets(); BuildBottomRight(); BuildConnections(); }
HUD2::HUD2(QextSerialPort *sp, int timeout, int timezone, QWidget *parent) { setWindowFlags( Qt::FramelessWindowHint ); setGeometry( 0, 0, 480, 272 ); QPalette p = this->palette(); p.setColor( QPalette::Window, QColor(0, 40, 65)); //p.setColor( QPalette::Window, Qt::black ); setPalette( p ); this->sp = sp; this->timeout = timeout; this->timezone = timezone; connect( sp, SIGNAL( readyRead() ), this, SLOT( ReceiveData() ) ); MsgList = new QList<Msg>(); InitWidgets(); }
/* InvokeXLISP - invoke the xlisp interpreter */ int InvokeXLISP(xlCallbacks *callbacks,int argc,char *argv[]) { xlSubrDef *sdp; xlXSubrDef *xsdp; /* initialize xlisp */ if (!xlInit(callbacks,argc,argv,NULL)) { Error("initializing xlisp"); return FALSE; } /* set our platform type */ xlSetSoftwareType("WIN95"); /* add all of our functions */ for (sdp = subrtab; sdp->name != NULL; ++sdp) xlSubr(sdp->name,sdp->subr); for (xsdp = xsubrtab; xsdp->name != NULL; ++xsdp) xlXSubr(xsdp->name,xsdp->subr); /* initialize the widget classes */ InitWidgets(); /* initialize the window classes */ InitWindows(); /* initialize the canvas class */ InitCanvas(); /* initialize the menu classes */ InitMenus(); /* initialize the edit classes */ InitEdit(); /* initialize the toolbar routines */ InitToolbars(); /* initialize the accelerator routines */ InitAccelerators(); /* initialize the listener routines */ InitListener(); /* initialize the miscellaneous routines */ InitMisc(); /* setup the *command-line* variable */ xlVal = xlMakeCString((char *)GetCommandLine()); xlSetValue(xlEnter("*COMMAND-LINE*"),xlVal); /* load the lisp code */ xlLoadFile("xlispw.lsp"); /* display the banner */ xlInfo("%s",xlBanner()); /* display the initial prompt */ xlCallFunctionByName(NULL,0,"LISTENER-PROMPT",0); /* flush terminal output */ xlosFlushOutput(); /* return successfully */ return TRUE; }
ProfileEditWindow::ProfileEditWindow(QWidget *parent) :PostureWindow(parent) { InitWidgets(); BuildBottomRight(); }
WrfImageSeriesView::WrfImageSeriesView(int index) : view_index_(index) { InitWidgets(); this->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); }