void MainWindow::Init( QString &filename ) { StartInit(); plst.clear(); plst.initArray( this, filename ); SetupWidgets (); }
Ocean::Ocean(QWidget *parent) : QMainWindow(parent), ui(new Ui::Ocean) { ui->setupUi(this); timer = new QTimer; SizeField=ui->SizeFieldBox->value(); for (int i = 0;i<100;i++) massPointX.push_back(i); ocean = new Drawing_Scene(this, SizeField); area = new AREA * [400]; for (int i = 0; i < 400; i++) area[i] = new AREA [400]; connect(ui->startButton, SIGNAL(clicked()), this, SLOT(Generation())); connect(ui->generationButton, SIGNAL(clicked()), this, SLOT(StartInit())); connect(ocean, SIGNAL(SendCoordMous(int, int, int)), this, SLOT(GetCoordMouse(int, int, int))); connect(timer, SIGNAL(timeout()), this, SLOT(Generation())); connect(ui->SizeFieldBox, SIGNAL(valueChanged(int)), ocean, SLOT(ChangeFieldSize(int))); ui->main_layout->setStretchFactor(ui->OceanScene, 8); ui->main_layout->setStretchFactor(ui->ConfigLaout, 2); ui->startButton->setEnabled(false); ui->OceanScene->addWidget(ocean); ocean->RecieveInit(area); }
void MainWindow::Init() { StartInit(); plst.clear(); plst.initArray( this ); SetupWidgets (); }
void KernelMain() { EarlyConsoleInit(); ArchInit(); ThrEarlyInit(); TimeInit(); ShutdownInit(); /* Set up the device-related subsystems. */ IcInit(); /* Once we've set up the ICFS framework, there are several * areas of Whitix (like the slab code) that need to expose * their internal information. */ SlabInfoInit(); ModuleInfoInit(); ThrInit(); VfsInit(); DevFsInit(); DeviceInit(); MiscInit(); LoadInit(); StartInit(); /* This is where the idle thread idles, after returning from StartInit in startup.c */ ThrIdleFunc(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), signalMapper( NULL ), ui( NULL ) { StartInit(); }