Exemplo n.º 1
0
MainWindow::MainWindow(QWidget *parent, Qt::WindowFlags flags)
    : QMainWindow(parent, flags),
      ui_(new Ui::MainWindow) {
  qDebug() << __FUNCTION__;
  ui_->setupUi(this);
  SetupUi();

  std::string url;

  // Check if a "--url=" value was provided via the command-line. If so, use
  // that instead of the default URL.
  CefRefPtr<CefCommandLine> command_line = CefCommandLine::GetGlobalCommandLine();
  url = command_line->GetSwitchValue("url");
  kiosk_ = command_line->HasSwitch("kiosk");
  if (url.empty())
	  url = "http://www.google.com";
  
  if (kiosk_) {
	  /*ui_->centralwidget->setVisible(false);*/
	  ui_->backButton->setVisible(false);
	  ui_->forwardButton->setVisible(false);
	  ui_->lineEdit->setVisible(false);
	  ui_->reloadButton->setVisible(false);
	  ui_->stopButton->setVisible(false);

	  ui_->menubar->setVisible(false);
	  ui_->statusbar->setVisible(false);
  }
  
  webview_->load(QUrl(QString::fromStdString(url)));
}
Exemplo n.º 2
0
QmitkPointListWidget::QmitkPointListWidget(QWidget *parent, int orientation)
  : QWidget(parent),
    m_PointListView(nullptr),
    m_PointSetNode(nullptr),
    m_Orientation(0),
    m_MovePointUpBtn(nullptr),
    m_MovePointDownBtn(nullptr),
    m_RemovePointBtn(nullptr),
    m_SavePointsBtn(nullptr),
    m_LoadPointsBtn(nullptr),
    m_ToggleAddPoint(nullptr),
    m_AddPoint(nullptr),
    m_TimeStepDisplay(nullptr),
    m_DataInteractor(nullptr),
    m_TimeStep(0),
    m_EditAllowed(true),
    m_NodeObserverTag(0)
{
  m_PointListView = new QmitkPointListView();

  if (orientation != 0)
    m_Orientation = orientation;

  SetupUi();
  SetupConnections();
  ObserveNewNode(nullptr);
}
QmitkCorrespondingPointSetsWidget::QmitkCorrespondingPointSetsWidget(QWidget *parent):
  QWidget(parent),
  m_CorrespondingPointSetsView(NULL)
{
  // create new QTableView
  m_CorrespondingPointSetsView = new QmitkCorrespondingPointSetsView();
  // setup user interface
  SetupUi();
  // setup connections
  connect( this->m_CorrespondingPointSetsView, SIGNAL(SignalPointSelectionChanged()), this, SLOT(OnPointSelectionChanged()) );
  connect( this->m_CorrespondingPointSetsView, SIGNAL(SignalAddPointsModeChanged(bool)), this, SLOT(OnAddPointsModeChanged(bool)) );
}
Exemplo n.º 4
0
BruteForcePanel::BruteForcePanel(QMainWindow* parent):  AlgorithmParametersPanel(parent) 
{
	SetupUi();
	RetranslateUi();
};
Exemplo n.º 5
0
MainWindow::MainWindow(QWidget *parent, Qt::WFlags flags) : QMainWindow(parent, flags), settings("naturaleditor.org", "MainWindow")
{
	SetupUi();
}