AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDialog) { ui->setupUi(this); ui->versionLabel->setText(Reihenaufnahme::applicationVersion()); manager = 0; initAbout(); initAuthors(); initThanksto(); initLicense(); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { Settings::create(QApplication::applicationDirPath() + "/appSettings.ini"); ui->setupUi(this); createPlotsGroups(); routePlotsMenu(); createPlotsTilingMenu(); createPlotSettingsView(); restoreVisibilityActionsState(); restoreSettings(); createProject(); createSamplesProxyActions(); createRecentlyProjectPaths(); initAbout(); createTranslator(); }
AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) { // Initialize the About dialog parameters initAbout(); // Initialize the layout initLayout(); // Connect signals and slots setConnections(); // Translate the UI strings as needed retranslateUi(); }
FFDemo::FFDemo() { mRunning = true; SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO); mScreen = SDL_SetVideoMode(320, 240, 32, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_HWACCEL); SDL_EnableUNICODE(1); SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); SDL_ShowCursor(0); SDL_WM_SetCaption("Gui-chan FF demo", NULL); Mix_OpenAudio(22050, MIX_DEFAULT_FORMAT, 2, 1024); mChooseSound = Mix_LoadWAV("sound/sound1.wav"); mEscapeSound = Mix_LoadWAV("sound/sound2.wav"); mSDLImageLoader = new fcn::SDLImageLoader(); fcn::Image::setImageLoader(mSDLImageLoader); mSDLGraphics = new fcn::SDLGraphics(); mSDLGraphics->setTarget(mScreen); mSDLInput = new fcn::SDLInput(); mSplashImage = fcn::Image::load("images/splash.png"); mTop = new fcn::Container(); mTop->setBaseColor(fcn::Color(0x000000)); mTop->setDimension(fcn::Rectangle(0, 0, 320, 240)); mGui = new fcn::Gui(); mGui->setTabbingEnabled(false); mGui->setGraphics(mSDLGraphics); mGui->setInput(mSDLInput); mGui->setTop(mTop); mFontWhite = new fcn::ImageFont("images/rpgfont.png", " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\""); mFontCyan = new fcn::ImageFont("images/rpgfont2.png", " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\""); fcn::Widget::setGlobalFont(mFontWhite); initMain(); mMenu = new FFContainer(); mMenu->setDimension(fcn::Rectangle(230, 0, 90, 130)); mMenu->setOpaque(false); mTop->add(mMenu); mGoldFootsteps = new FFContainer(); mGoldFootsteps->setDimension(fcn::Rectangle(210, 170, 110, 70)); mGoldFootsteps->setOpaque(false); mGoldFootsteps->setFrameSize(0); mTop->add(mGoldFootsteps); mTime = new FFContainer(); mTime->setDimension(fcn::Rectangle(230, 130, 90, 40)); mTime->setOpaque(false); mTop->add(mTime); mGoldFootstepsInfo1 = new fcn::TextBox("Steps\n\nGP"); mGoldFootstepsInfo1->setFont(mFontCyan); mGoldFootstepsInfo1->setOpaque(false); mGoldFootstepsInfo1->setEditable(false); mGoldFootstepsInfo1->setFocusable(false); mGoldFootstepsInfo1->setFrameSize(0); mGoldFootstepsInfo2 = new fcn::TextBox("\n 9119092\n\n 1009213"); mGoldFootstepsInfo2->setOpaque(false); mGoldFootstepsInfo2->setEditable(false); mGoldFootstepsInfo2->setFocusable(false); mGoldFootstepsInfo2->setFrameSize(0); mTimeLabel1 = new fcn::Label("Time"); mTimeLabel1->setFont(mFontCyan); mTimeLabel2 = new fcn::Label(); mTime->add(mTimeLabel1, 5, 5); mTime->add(mTimeLabel2, 22, 20); mGoldFootsteps->add(mGoldFootstepsInfo2, 5, 0); mGoldFootsteps->add(mGoldFootstepsInfo1, 5, 5); mMenuListModel = new StringListModel(); mMenuListModel->add("Items"); mMenuListModel->add("Status"); mMenuListModel->add("Skills"); mMenuListModel->add("Magic"); mMenuListModel->add("About"); mMenuListModel->add(""); mMenuListModel->add("Quit"); mMenuList = new FFListBox(); mMenuList->setActionEventId("menu"); mMenuList->addActionListener(this); mMenuList->setListModel(mMenuListModel); mMenu->add(mMenuList, 5, 5); mMenuList->setSelected(0); mMenuList->requestFocus(); initStatus(); initAbout(); initItems(); initMagicSkills(); }
void GameBox::initGui() { mOpenGLGraphics = new gcn::OpenGLGraphics(); mOpenGLGraphics->setTargetPlane(mWidth, mHeight); mOpenGLImageLoader = new gcn::OpenGLSDLImageLoader(); gcn::Image::setImageLoader(mOpenGLImageLoader); mSDLInput = new gcn::SDLInput(); //try/catch? YES mFont = new gcn::ImageFont(Pathfinder::Image_Path+"techyfontbig2.png"," abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\""); mHighLightFont = new gcn::ImageFont(Pathfinder::Image_Path+"techyfontbighighlight.png", " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\""); mWhiteFont = new gcn::ImageFont(Pathfinder::Image_Path+"techyfontwhite.png"," abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%@`'*#=[]\""); gcn::Widget::setGlobalFont(mWhiteFont); //what is this line? mTop = new gcn::Container(); mTop->setOpaque(false); mMain = new gcn::Container(); mMain->setOpaque(false); mTop->add(mMain); mSingleplayButton = new FPSButton("PLAY DEMO 2.5",boombox); mOptionsButton = new FPSButton("OPTIONS",boombox); mAboutButton = new FPSButton("ABOUT",boombox); mQuitButton = new FPSButton("QUIT",boombox); mSingleplayButton->setHighLightFont(mHighLightFont); mSingleplayButton->adjustSize(); mSingleplayButton->setActionEventId("play"); mSingleplayButton->addActionListener(this); mSingleplayButton->setFont(mFont); mSingleplayButton->adjustSize(); mMain->add(mSingleplayButton);///////////// mOptionsButton->setHighLightFont(mHighLightFont); mOptionsButton->adjustSize(); mOptionsButton->setActionEventId("options"); mOptionsButton->addActionListener(this); mOptionsButton->setFont(mFont); mOptionsButton->adjustSize(); mMain->add(mOptionsButton);//////////// mAboutButton->setHighLightFont(mHighLightFont); mAboutButton->adjustSize(); mAboutButton->setActionEventId("about"); mAboutButton->addActionListener(this); mAboutButton->setFont(mFont); mAboutButton->adjustSize(); mMain->add(mAboutButton);///////////// mQuitButton->setHighLightFont(mHighLightFont); mQuitButton->adjustSize(); mQuitButton->setActionEventId("quit"); mQuitButton->addActionListener(this); mQuitButton->setFont(mFont); mQuitButton->adjustSize(); mMain->add(mQuitButton); mWebLabel = new gcn::Label("www.icecubeflower.com"); mWebLabel->setFont(mWhiteFont); mWebLabel->adjustSize(); mMain->add(mWebLabel); //gcn::OpenGLImage* image; //wtf? mBoxImage = gcn::Image::load("Data/Images/box.png"); mGui = new gcn::Gui(); mGui->setGraphics(mOpenGLGraphics); mGui->setInput(mSDLInput); mGui->setTop(mTop); initOptions(); initAbout(); mTop->setDimension(gcn::Rectangle(0, 0, mWidth, mHeight)); mMain->setDimension(gcn::Rectangle(0, 0, mWidth, mHeight)); mOptions->setDimension(gcn::Rectangle(0, 0, mWidth, mHeight)); mAbout->setDimension(gcn::Rectangle(0, 0, mWidth, mHeight)); mSingleplayButton->setPosition(mWidth/8, mHeight/8); mOptionsButton->setPosition(mWidth/8, mHeight/8+40); mAboutButton->setPosition(mWidth/8, mHeight/8+80); mQuitButton->setPosition(mWidth/8, mHeight/8 +120); mOptionsBoxIcon->setPosition(mWidth/2 - 300, mHeight/2 - 150); mAboutBoxIcon->setPosition(mWidth/2 - 300, mHeight/2 - 150); mOptionsLabel->setPosition(mWidth/2 + 150, mHeight/2 - 145); mAboutLabel->setPosition(mWidth/2 + 150, mHeight/2 - 145); mFullScreen->setPosition(mWidth/2 - 200, mHeight/2 -100); mResolution->setPosition(mWidth/2 - 90, mHeight/2 -70); mResolutionLabel->setPosition(mWidth/2 -200, mHeight/2-70); mOptionsBackButton->setPosition(mWidth/2 - 290, mHeight/2 + 180); mAboutBackButton->setPosition(mWidth/2 - 290, mHeight/2 + 180); mAboutText->setPosition(mWidth/2 - 285, mHeight/2 - 120); mWebLabel->setPosition(30, mHeight-30); }