Esempio n. 1
0
	/*!
	 * This is our default constructor, which creates a new "create iPod"
	 * dialog instance.
	 *
	 * \param p The dialog's parent widget.
	 * \param f The window flags the dialog should use.
	 */
	CSCreateIPodDialog::CSCreateIPodDialog(QWidget *p, Qt::WindowFlags f)
		: QDialog(p, f)
	{
		setWindowTitle("CuteSync - Create iPod");

		initializeGUI();
	}
Esempio n. 2
0
Viewer::Viewer(const ViewerSettings &settings) :
    Screen(nanogui::Vector2i(1280, 720), "Fluid Simulator"),
    _engine(mNVGContext, mSize, mSize)
{
    initializeGUI();
    refreshGUI();

    loadScene(settings.filename);
}
AddNetworkSinkDialog::AddNetworkSinkDialog(QWidget* pParent, QString pTitle, DataType pDataType, MediaSource *pMediaSource) :
    QDialog(pParent)
{
    mDataType = pDataType;
    mMediaSource = pMediaSource;
	initializeGUI();
    LoadConfiguration();
    mLeHost->setFocus(Qt::TabFocusReason);
    setWindowTitle(pTitle);
}
Esempio n. 4
0
//------------------------------------------------------------------------------
//!
void
CoreXGL::performExec()
{
   DBG_BLOCK( os_xgl, "CoreXGL::performExec" );

   // Create Gfx manager and context.
   RCP<Gfx::GLContext_GLX> cntx = new Gfx::GLContext_GLX( _display, _window );
   Core::gfx( Gfx::Manager::create( cntx.ptr() ) );

   initializeGUI();
   readyToExec();
   performShow();

   bool done = false;
   XEvent event;

   _timer.restart();

#if PROFILE_EVENTS
   EventProfiler& profiler = Core::profiler();
   profiler.add( EventProfiler::LOOPS_BEGIN );
#endif

   while( !done )
   {
#if PROFILE_EVENTS
      profiler.add( EventProfiler::LOOP_BEGIN );
#endif

      while( XPending( _display ) > 0 )
      {
         XNextEvent( _display, &event );
         done = handleEvents( event );
      }

      processEvents();

      executeAnimators( _timer.elapsed() );

      render();

#if PROFILE_EVENTS
      profiler.add( EventProfiler::LOOP_END );
#endif
   }

#if PROFILE_EVENTS
   profiler.add( EventProfiler::LOOPS_BEGIN );
#endif

   performHide();
   finalizeGUI();
}
Esempio n. 5
0
KivioView::KivioView(KivioDocument* document, QWidget* parent)
  : KoPAView(document, parent), m_document(document)
{
    Q_ASSERT(m_document);

    setXMLFile("kivio.rc");

    initializeActions();
    initializeGUI();

    connect(m_document, SIGNAL(updateGui()), this, SLOT(updateGui()));
}
Esempio n. 6
0
GoToDialog::GoToDialog(QWidget *p, Qt::WindowFlags f)
        : QDialog(p, f),
          selectedLine(0),
          layout(nullptr),
          lineLabel(nullptr),
          lineTextEdit(nullptr),
          buttonsWidget(nullptr),
          buttonsLayout(nullptr),
          closeButton(nullptr),
          goToButton(nullptr)
{
	setWindowTitle(tr("Go To Line"));

	initializeGUI();
}
Esempio n. 7
0
GeneralPreferencesWidget::GeneralPreferencesWidget(QWidget *p,
                                                   Qt::WindowFlags f)
        : PreferencesWidget(p, f),
          layout(nullptr),
          showFileInTitleCheckBox(nullptr),
          statusBarCheckBox(nullptr),
          recentListSizeLabel(nullptr),
          recentListSizeSpinBox(nullptr),
          saveWindowAttribsCheckBox(nullptr)
{
	setPreferencesIcon(gui_utils::getIconFromTheme("preferences-other"));
	setPreferencesTitle(tr("General"));

	initializeGUI();
}
Esempio n. 8
0
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), ui(new Ui::MainWindow) {
    // Important to do first! SingletonRender is used in initialize GUI
    SingletonRender::instance()->setUi(this->ui);
    initializeGUI();

    // activates deleteItem when deletebutton is pressed
    // deleteItem handles itself whether object is focussed or not nothing is
    // deleted
    QShortcut *shortcut = new QShortcut(QKeySequence(Qt::Key_Delete), this);
    connect(shortcut, SIGNAL(activated()), Data::instance(), SLOT(deleteItem()));
    connect(ui->delete_button, SIGNAL(clicked()), Data::instance(),
            SLOT(deleteItem()));
    connect(ui->actionDelete, SIGNAL(triggered()), Data::instance(),
            SLOT(deleteItem()));
}
OverviewNetworkStreamsWidget::OverviewNetworkStreamsWidget(QAction *pAssignedAction, QMainWindow* pMainWindow):
    QDockWidget(pMainWindow)
{
    mAssignedAction = pAssignedAction;
    mTimerId = -1;

    initializeGUI();

    setAllowedAreas(Qt::AllDockWidgetAreas);
    pMainWindow->addDockWidget(Qt::TopDockWidgetArea, this);

    if (mAssignedAction != NULL)
    {
        connect(mAssignedAction, SIGNAL(triggered(bool)), this, SLOT(SetVisible(bool)));
        mAssignedAction->setChecked(true);
    }
Esempio n. 10
0
AboutDialog::AboutDialog(QWidget *p, Qt::WindowFlags f)
        : QDialog(p, f),
          layout(nullptr),
          tabs(nullptr),
          licenseTextEdit(nullptr),
          qomposeTab(nullptr),
          qomposeTabLayout(nullptr),
          qomposeIconLabel(nullptr),
          qomposeLabel(nullptr),
          qomposeDescriptionLabel(nullptr),
          qomposeTextEdit(nullptr),
          closeButton(nullptr)
{
	setWindowTitle(tr("About Qompose"));

	initializeGUI();

	resize(500, 500);
}
Esempio n. 11
0
/* Called when the control is Shown*/
void CColosseumCtrl::OnShowWindow(BOOL bShow, UINT nStatus)
{
	/* This method is called the instance the control is show to the user
	 * What happens here is that we get the file name from m_server and convert it from
	 * CString to char* and send it to the CIFCEngineInteract object to retrieve information 
	 * from the file and initialize the CIFCEngineInteract object.
	 * We then initialize the m_width and m_height with the width and height of the control
	 * sent with <OBJECT> tag in the html file.
	 * After that we assign to m_hwndRenderWindow the handle of the window that we are going to draw
	 * in because we are going to use to initialize the DirectX device module and initialize the device buffer .
	 * Lastly we render the changes.
	 */
	
	/*if ( 0 == m_engineInteract->retrieveObjectGroups("C:\\temp1.ifc"))//(m_server.GetBuffer(0))))
		m_engineInteract->enrichObjectGroups();
	else	
		ASSERT(1==0);*/
	
	CObjectTransferer::getSingleton().setCtrl(this);
	CObjectTransferer::getSingleton().setEndpoint(m_server.GetBuffer(0));
	

	CRect rc;
	GetWindowRect(&rc);
	m_width = rc.Width();
	m_height = rc.Height();
	m_hwndRenderWindow = this->m_hWnd;
	initializeDevice();
	initializeDeviceBuffer();
	
	
	
	initializeGUI();
	m_objectVector.push_back(IFC_WINDOW);
	m_objectVector.push_back(IFC_DOOR);
	if(m_initialized)
			render();		
	CObjectTransfererThread *t = new CObjectTransfererThread(m_endpointModelVector);
	t->CreateThread();
				
}
EditorPreferencesWidget::EditorPreferencesWidget(QWidget *p, Qt::WindowFlags f)
        : PreferencesWidget(p, f),
          layout(nullptr),
          generalGroupBox(nullptr),
          generalLayout(nullptr),
          showGutterCheckBox(nullptr),
          editorFontLabel(nullptr),
          editorFontButton(nullptr),
          indentationWidthLabel(nullptr),
          indentationWidthSpinBox(nullptr),
          indentationModeLabel(nullptr),
          indentationModeButtonGroup(nullptr),
          indentationModeTabsRadioButton(nullptr),
          indentationModeSpacesRadioButton(nullptr),
          lineWrapGuideGroupBox(nullptr),
          lineWrapGuideLayout(nullptr),
          lineWrapGuideCheckBox(nullptr),
          lineWrapGuideWidthLabel(nullptr),
          lineWrapGuideWidthSpinBox(nullptr),
          lineWrapGuideColorLabel(nullptr),
          lineWrapGuideColorButton(nullptr),
          colorsGroupBox(nullptr),
          colorsLayout(nullptr),
          editorFGLabel(nullptr),
          editorFGButton(nullptr),
          editorBGLabel(nullptr),
          editorBGButton(nullptr),
          currentLineBGLabel(nullptr),
          currentLineBGButton(nullptr),
          gutterFGLabel(nullptr),
          gutterFGButton(nullptr),
          gutterBGLabel(nullptr),
          gutterBGButton(nullptr)
{
	setPreferencesIcon(
	        gui_utils::getIconFromTheme("accessories-text-editor"));
	setPreferencesTitle(tr("Editor"));

	initializeGUI();
}
Esempio n. 13
0
FindDialog::FindDialog(QWidget *p, Qt::WindowFlags f)
        : QDialog(p, f),
          query(),
          layout(nullptr),
          findLabel(nullptr),
          findTextEdit(nullptr),
          optionsGroupBox(nullptr),
          optionsLayout(nullptr),
          wrapCheckBox(nullptr),
          wholeWordsCheckBox(nullptr),
          caseSensitiveCheckBox(nullptr),
          regexCheckBox(nullptr),
          buttonsWidget(nullptr),
          buttonsLayout(nullptr),
          findButton(nullptr),
          closeButton(nullptr)
{
	setWindowTitle(tr("Find"));

	initializeGUI();

	setMinimumWidth(400);
}
void MessageWidget::Init(QMenu *pMenu, QString pParticipant, enum TransportType pParticipantTransport, bool pVisible)
{
    mParticipant = pParticipant;
    mParticipantTransport = pParticipantTransport;

    initializeGUI();

    mPbCall->SetPartner(mParticipant, mParticipantTransport);

    //####################################################################
    //### create the remaining necessary menu item and short cuts
    //####################################################################

    if (pMenu != NULL)
    {
        mAssignedAction = pMenu->addAction(pParticipant);
        mAssignedAction->setCheckable(true);
        mAssignedAction->setChecked(pVisible);
        QIcon tIcon;
        tIcon.addPixmap(QPixmap(":/images/22_22/Checked.png"), QIcon::Normal, QIcon::On);
        tIcon.addPixmap(QPixmap(":/images/22_22/Unchecked.png"), QIcon::Normal, QIcon::Off);
        mAssignedAction->setIcon(tIcon);
    }
    if (mAssignedAction != NULL)
        connect(mAssignedAction, SIGNAL(triggered()), this, SLOT(ToggleVisibility()));

    //####################################################################
    //### update GUI
    //####################################################################

    //TODO: remove the following if the feature is complete
    #ifdef RELEASE_VERSION
        mPbFile->setEnabled(false);
    #endif

    setWindowTitle(mParticipant);
    connect(mTeMessage, SIGNAL(SendTrigger()), this, SLOT(SendMessage()));
    connect(mPbFile, SIGNAL(released()), this, SLOT(SendFile()));
    connect(mPbAdd, SIGNAL(released()), this, SLOT(AddPArticipantToContacts()));
    if(IsKnownContact())
    {
        mPbAdd->hide();
    }else
    {
        mPbAdd->show();
    }
    if (pVisible)
    {
        show();
    }else
    {
        hide();
    }
    UpdateParticipantState(CONTACT_UNDEFINED_STATE);

    //### set focus setFocus
    mTeMessage->setFocus(Qt::TabFocusReason);

    // are we part of broadcast window?
    if (mParticipant == BROACAST_IDENTIFIER)
    {
        mPbAdd->hide();
        mPbCall->setEnabled(false);
    }
}