コード例 #1
0
ファイル: ConfigureDialog.cpp プロジェクト: Templier/desktopx
LRESULT CConfigureDialog::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
	// Create the child windows for the main window class
	HWND tabWnd = GetDlgItem(IDC_TAB);
	RECT tabRect;

	::GetClientRect(tabWnd, &tabRect);
	RECT tabContentRect;

	// Set the size and location of the child windows based on the tab control
	tabContentRect.left = tabRect.left + 5;
	tabContentRect.top = tabRect.top + 25;
	tabContentRect.right = tabRect.right - 5;
	tabContentRect.bottom = tabRect.bottom - 5;

	// Create the child windows for the main window class
	HWND panelWnd = meterPanel.Create(tabWnd);
	meterPanel.MoveWindow(&tabContentRect);

	panelWnd = overlayPanel.Create(tabWnd);
	::MoveWindow(panelWnd, tabContentRect.left, tabContentRect.top, tabContentRect.right - tabContentRect.left, tabContentRect.bottom - tabContentRect.top, true);

	panelWnd = controllerPanel.Create(tabWnd);
	::MoveWindow(panelWnd, tabContentRect.left, tabContentRect.top, tabContentRect.right - tabContentRect.left, tabContentRect.bottom - tabContentRect.top, true);

	panelWnd = modelPanel.Create(tabWnd);
	::MoveWindow(modelPanel, tabContentRect.left, tabContentRect.top, tabContentRect.right - tabContentRect.left, tabContentRect.bottom - tabContentRect.top, true);

	// Set the titles for each tab
	TCITEM tabItem;
	tabItem.mask = TCIF_TEXT;

	tabItem.pszText = "  Docklet   ";
	SendDlgItemMessage(IDC_TAB, TCM_INSERTITEM , (WPARAM)0, (LPARAM)&tabItem);

	tabItem.pszText = "  Overlays    ";
	SendDlgItemMessage(IDC_TAB, TCM_INSERTITEM , (WPARAM)1, (LPARAM)&tabItem);

	tabItem.pszText = "  Meters   ";
	SendDlgItemMessage(IDC_TAB, TCM_INSERTITEM , (WPARAM)2, (LPARAM)&tabItem);

	tabItem.pszText = "  Controllers  ";
	SendDlgItemMessage(IDC_TAB, TCM_INSERTITEM , (WPARAM)3, (LPARAM)&tabItem);

	// Select tab zero
	ShowChild(0);

	bHandled = false;

	return TRUE;  // return TRUE  unless you set the focus to a control
}
コード例 #2
0
void ribi::maziak::QtMaziakMenuDialog2::OnStartRetro()
{
    QtCanvas * const qtcanvas {
        new QtMaziakCanvas(GetMazeSize())
    };
    boost::scoped_ptr<QtCanvasDialog> d {
        new QtCanvasDialog(qtcanvas)
    };
    {
        //Put the dialog in the screen center
        const QRect screen = QApplication::desktop()->screenGeometry();
        d->setGeometry(
            0,0,256,256);
        d->move( screen.center() - this->rect().center() );
    }
    d->setWindowTitle("Maziak");
    ShowChild(d.get());
}
コード例 #3
0
void ribi::tictactoe::QtTicTacToeMenuDialog::on_button_start_old_school_clicked()
{
  QtCanvas * const qtcanvas {
    new QtTicTacToeCanvas
  };
  boost::scoped_ptr<QtCanvasDialog> d {
    new QtCanvasDialog(qtcanvas)
  };
  {
    //Put the dialog in the screen center
    const QRect screen = QApplication::desktop()->screenGeometry();
    d->setGeometry(
      0,0,102,102);
    d->move( screen.center() - this->rect().center() );
  }
  d->setWindowTitle("TicTacToe");
  ShowChild(d.get());
  //canvas will be deleted by QtCanvasDialog
}
void ribi::QtPaperRockScissorsMenuDialog::on_button_start_clicked()
{
  QtPaperRockScissorsMainDialog d;
  ShowChild(&d);
  /*
  QtPaperRockScissorsWidget * const w{new QtPaperRockScissorsWidget};
  QtPaperRockScissorsDialog d(this);
  d.setWindowTitle("PaperRockScissors");
  QGridLayout * const my_layout{new QGridLayout};
  assert(!d.layout());
  d.setLayout(my_layout);
  assert(d.layout());
  my_layout->addWidget(w);
  {
    const QRect screen = QApplication::desktop()->screenGeometry();
    d.setGeometry(0,0,screen.width() * 8 / 10,screen.height() * 8 / 10);
    d.move( screen.center() - d.rect().center() );
  }
  ShowChild(&d);
  */
}
コード例 #5
0
void ribi::ruco::QtRubiksClockMenuDialog::on_button_start_clicked()
{
  QtRubiksClockMainDialog d;
  ShowChild(&d);
}
コード例 #6
0
void ribi::QtToolPrimeExpertMenuDialog::on_button_start_clicked()
{
  QtToolPrimeExpertMainDialog d;
  d.setStyleSheet(this->styleSheet());
  ShowChild(&d);
}
コード例 #7
0
void ribi::tictactoe::QtTestTicTacToeMenuDialog::on_button_start_clicked()
{
  QtTestTicTacToeMainDialog d(nullptr,nullptr);
  d.setStyleSheet(this->styleSheet());
  ShowChild(&d);
}
void ribi::sadc::QtSearchAndDestroyChessMenuDialog::on_button_about_clicked()
{
  const About a = sadc::MenuDialog().GetAbout();
  QtAboutDialog d(a);
  ShowChild(&d);
}
コード例 #9
0
void ribi::QtQuadraticSolverMenuDialog::on_button_start_clicked()
{
  QtQuadraticSolverMainDialog d;
  //d.setStyleSheet(this->styleSheet());
  ShowChild(&d);
}
コード例 #10
0
void ribi::kalman::QtKalmanFiltererMenuDialog::on_button_start_clicked()
{
  const boost::shared_ptr<QtKalmanFiltererMainDialog> d = QtKalmanFiltererMainDialog::Create();
  assert(d);
  ShowChild(d.get());
}
コード例 #11
0
void ribi::QtToolEncrangerMenuDialog::on_button_start_clicked() noexcept
{
    QtToolEncrangerMainDialog d;
    ShowChild(&d);
}
コード例 #12
0
void ribi::QtHometrainerMenuDialog::on_button_start_exercise_clicked() noexcept
{
  QtHometrainerMainDialog d(m_main_dialog);
  ShowChild(&d);
}
コード例 #13
0
void ribi::QtToolSimplifyNewickMenuDialog::on_button_start_clicked() noexcept
{
  QtToolSimplifyNewickMainDialog d;
  ShowChild(&d);
}
コード例 #14
0
void ribi::QtRandomCodeMenuDialog::on_button_start_clicked()
{
    QtRandomCodeMainDialog d;
    ShowChild(&d);
}
コード例 #15
0
void ribi::QtVigenereCipherMenuDialog::on_button_start_clicked() noexcept
{
    QtVigenereCipherMainDialog d;
    ShowChild(&d);
}
コード例 #16
0
ファイル: manager.cpp プロジェクト: cubemoon/game-editor
void wxInterfaceManager::HideChild(wxWindow *child, bool update)
{
    ShowChild(child, false, update);
}
void ribi::sadc::QtSearchAndDestroyChessMenuDialog::on_button_start_clicked()
{
  QtSearchAndDestroyChessGameDialog d;
  ShowChild(&d);
}
コード例 #18
0
void QtTestQuestionMenuDialog::on_button_start_clicked()
{
  QtTestQuestionMainDialog d;
  d.setStyleSheet(this->styleSheet());
  ShowChild(&d);
}
void ribi::QtRichelBilderbeekGalleryMenuDialog::on_button_start_clicked()
{
  QtRichelBilderbeekGalleryDialog d;
  ShowChild(&d);
}