Exemplo n.º 1
0
 ModelExplorer::ModelExplorer(QWidget * parent)
   : QWidget(parent),
     mClassViewWidget(NULL),
     mTreeViewWidget(NULL),
     mObjectExplorer(NULL),
     mClassViewUnderMouse(false),
     mTreeViewUnderMouse(false),
     mProgressBarLbl(NULL),
     mSplitter(NULL),
     mDlg(NULL),
     mProgressBar(NULL),
     mQProgressBar(NULL),
     mClassAction(NULL),
     mTreeAction(NULL),
     mStackedWidget(NULL),
     mToolBar(NULL),
     mModel(openstudio::model::Model()),
     mIddFile(mModel.iddFile())
 {
   mModel.order().setDirectOrder(HandleVector());
   createProgressDlg();
   createWidgets();
   createActions();
   createToolBars();
   createLayout();
   connectSignalsAndSlots();
   restoreState();
   setIddFile(mModel);
   expandAllNodes();
 }
Exemplo n.º 2
0
QConfigComboboxWidget::QConfigComboboxWidget(QString filename, QWidget *parent) :
    QWidget(parent)
{
    settings=NULL;
    createWidgets();
    setFilename(filename);
}
Exemplo n.º 3
0
MyFracWindow::MyFracWindow() : KDockMainWindow(NULL, "mainwnd", WType_TopLevel),
	_posValid(false),
	_juliaMode(false),
	_maxIter(0.5),
	_threshold(0.5),
	_gradientData(NULL),
	_scrollTimer(NULL),
	_scrollDir(0),
	_generator(this, false),
	_progressDialog(NULL)
{
	KImageIO::registerFormats();

	generatorThread.start(QThread::LowPriority);

	createWidgets();
	createActions();
	createGUI();

	_presets.loadPresets(kapp->config());
	readParameters();

	onDefaultView();
	updateMode();

	_scrollTimer = new QTimer(this);
	connect(_scrollTimer, SIGNAL(timeout()), SLOT(scrollTimer()));

	resize(700, 520);

	setAutoSaveSettings();
	readDockConfig();
}
Exemplo n.º 4
0
LabelingWidgetQt::LabelingWidgetQt(QWidget *parent) :
    QWidget(parent)
{
    setObjectName(tr("Labeling"));
    createWidgets();
    createConnections();
}
Exemplo n.º 5
0
DMD_Settings::DMD_Settings(const DM_Settings &settings, QWidget *parent) :
	QDialog(parent), settings_(settings)
{
	createWidgets();

	setWindowTitle(tr("Settings"));
}
Exemplo n.º 6
0
//Specific GUI component
//=======================================================
pspRandomSystemSpecificGUI::pspRandomSystemSpecificGUI(pspParticleSystem* ps){
    
    mySystem = ps;
    panel = new PropertyPanel();
    panel->setBounds(0, 0, 200, 200);
    createWidgets();
}
Exemplo n.º 7
0
LevelOneDec::LevelOneDec(const QVector<QString> &vectorDate,
                         const QVector<QVector<double> > &vectorSensorReadings2D,
                         QWidget *parent) :
    QWidget(parent)
{
    vectorDateToLevelOne = vectorDate;
    vectorSensorReadings2DToLevelOne = vectorSensorReadings2D;

    row = vectorDateToLevelOne.size();
    col = vectorSensorReadings2DToLevelOne[0].size();

    retranslateUi();

    createTables();

    setVectorsToTables();

    createDoubleBoxes();

    createCharts();

    createToolBar();

    createWidgets();
}
Exemplo n.º 8
0
XmlEdit::XmlEdit(QWidget *parent)
    : QPlainTextEdit(parent), completedAndSelected(false)
{
    createWidgets();
    createConnections();
    highlightCurrentLine();
}
Exemplo n.º 9
0
MainWindow::MainWindow(QWidget *parent)
    : QDialog(parent)
{
    createWidgets();

    connect(buttonBox, SIGNAL(accepted()), this, SLOT(writeSettings()));
    connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
    connect(browse, SIGNAL(clicked()), this, SLOT(selectPath()));

    QVBoxLayout *groupBoxLayout = new QVBoxLayout;
    groupBoxLayout->addSpacing(10);
    groupBoxLayout->addWidget(new QLabel("Default filename:"));
    groupBoxLayout->addWidget(nameEdit);
    groupBoxLayout->addSpacing(20);
    groupBoxLayout->addWidget(new QLabel("Image format:"));
    groupBoxLayout->addWidget(fileExtDropdown);
    groupBoxLayout->addSpacing(25);
    groupBoxLayout->addWidget(new QLabel("Destination folder:"));
    groupBoxLayout->addWidget(pathViewer);
    groupBoxLayout->addWidget(browse);
    groupBoxLayout->addSpacing(25);

    QGroupBox *groupBox = new QGroupBox("ScreenShot Settings");
    groupBox->setLayout(groupBoxLayout);

    QVBoxLayout *mainLayout = new QVBoxLayout;
    mainLayout->addWidget(groupBox);
    mainLayout->addWidget(buttonBox);

    setLayout(mainLayout);

    loadSettings();
}
Exemplo n.º 10
0
QModernProgressDialog::QModernProgressDialog(const QString & labelText, const QString & cancelButtonText, QWidget* parent, Qt::WindowFlags f):
    QDialog(parent, f)
{
    createWidgets();
    setLabelText(labelText);
    setCancelButtonText(cancelButtonText);
}
Exemplo n.º 11
0
QFShutterConfigWidget::QFShutterConfigWidget(QWidget* parent):
    QWidget(parent)
{
    useThread=true;
    shutterStateUpdateInterval=351;
    iconOpened=QPixmap(":/libqf3widgets/shutter_open.png");
    iconClosed=QPixmap(":/libqf3widgets/shutter_closed.png");

    m_thread=new QFShutterConfigWidgetThread(this);
    connect(m_thread, SIGNAL(stateChanged(bool)), this, SLOT(shutterStateChanged(bool)));


    timUpdate=new QTimer(this);

    m_log=NULL;
    m_pluginServices=NULL;
    locked=false;
    moving=false;


    createWidgets();
    createActions();
    updateStates();


    if (!useThread) {
        timUpdate->setSingleShot(true);
        timUpdate->setInterval(shutterStateUpdateInterval);
        connect(timUpdate, SIGNAL(timeout()), this, SLOT(displayShutterStates()));
        timUpdate->start(shutterStateUpdateInterval);
    }
    //QTimer::singleShot(stageStateUpdateInterval, this, SLOT(displayAxisStates()));
}
Exemplo n.º 12
0
Arquivo: tia.cpp Projeto: hackdiy/TIA
TIA::TIA(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::TIA)
{
    ui->setupUi(this);
    this->showMaximized();
    setDockNestingEnabled(true);

    m_TIAPtr = this;


    m_StatusBar = this->statusBar();
    m_Style = new HStyle;


    createModels();
    createWidgets();
    createViews();

    createActions();
    createConnections();
    createDialogs();

    m_VLog->start();

}
Exemplo n.º 13
0
KTreeViewSearchLineWidget::KTreeViewSearchLineWidget( QWidget *parent, QTreeView *treeView )
  : QWidget( parent ), d( new Private )
{
  d->treeView = treeView;

  QTimer::singleShot( 0, this, SLOT(createWidgets()) );
}
Exemplo n.º 14
0
MainWindow::MainWindow()
{
        setWindowTitle( tr( "TWEEDY - Stop Motion software" ) );

	createActions();
	createStartWindow();
	createMenuBar();
	createToolBar();
	createWidgets();
	createStatusBar();

        _isPlaying = false;
        _timer = new QTimer( this );
        _fps = 8;
        _time = 0;
        

        connect( this, SIGNAL( timeChanged( int ) ), this->_viewerImg, SLOT( displayChanged( int ) ) );
        connect( &( this->_timelineGraphic->getTimelineDataWrapper() ), SIGNAL( timeChanged( int ) ), this->_viewerImg, SLOT( displayChanged( int ) ) );
        connect( &(this->_timelineGraphic->getTimelineDataWrapper()), SIGNAL( displayChanged( int, int ) ), _chutier, SLOT( changedPixmap( int, int ) ) );
        connect( _timer, SIGNAL( timeout() ), this, SLOT( increaseTime() ) );
        connect( &(this->_timelineGraphic->getTimelineDataWrapper()), SIGNAL( timeChanged( int )), this, SLOT( changeTimeViewer( int ) ) );
        connect( this, SIGNAL(timeChanged(int)), &(this->_timelineGraphic->getTimelineDataWrapper()), SLOT(time(int)) );

	this->adjustSize();

        Q_EMIT timeChanged( _time );
        _timelineGraphic->getTimelineDataWrapper()._currentTime = _time;
        
        QSettings settings("IMAC","Tweedy");     
}
Exemplo n.º 15
0
void chanFileSystemDockWidget::init() {

    createWidgets();
    createContextMenu();
    createFileSystemTree();
    createRoot();
}
Exemplo n.º 16
0
DialogAddView::DialogAddView(QWidget* parent, Mixer *mixer  )
  : KDialog( parent )
{
	// TODO 000 Adding View for MPRIS2 is broken. We need at least a dummy XML GUI Profile. Also the
	//      fixed list below is plain wrong. Actually we should get the Profile list from either the XML files or
	//      from the backend. The latter is probably easier for now.
    if ( viewNames.isEmpty() )
    {
        // initialize static list. Later this list could be generated from the actually installed profiles
        viewNames.append(i18n("All controls"));
        viewNames.append(i18n("Only playback controls"));
        viewNames.append(i18n("Only capture controls"));

        viewIds.append("default");
        viewIds.append("playback");
        viewIds.append("capture");
    }

    setCaption( i18n( "Add View" ) );
    if ( Mixer::mixers().count() > 0 )
        setButtons( Ok|Cancel );
    else {
        setButtons( Cancel );
    }
    setDefaultButton( Ok );
   _layout = 0;
   m_vboxForScrollView = 0;
   m_scrollableChannelSelector = 0;
   m_buttonGroupForScrollView = 0;
   createWidgets(mixer);  // Open with Mixer Hardware #0

}
Exemplo n.º 17
0
EditorFrame::EditorFrame(QWidget * parent)
  : QMainWindow(parent),
    mModelExplorer(nullptr),
    mTableModel(nullptr),
    mTreeModel(nullptr),
    mStatusBar(nullptr),
    mSearchViews(nullptr),
    mCompleter(nullptr),
    mAboutAction(nullptr),
    mAddAction(nullptr),
    mCopyAction(nullptr),
    mExitAction(nullptr),
    mExportIdfAction(nullptr),
    mImportIdfAction(nullptr),
    mNewIdkAction(nullptr),
    mOpenIdkAction(nullptr),
    mPasteAction(nullptr),
    mRemoveAction(nullptr),
    mSaveIdkAction(nullptr),
    mSaveIdkAsAction(nullptr),
    mExpandAllNodesAction(nullptr),
    mToggleGUIDsAction(nullptr),
    mSearchViewsAction(nullptr),
    mToggleCommentsAction(nullptr),
    mTogglePrecisionAction(nullptr),
    mToggleUnitsAction(nullptr),
    mFileMenu(nullptr),
    mHelpMenu(nullptr),
    mContextMenu(nullptr),
    mFileToolBar(nullptr),
    mEditToolBar(nullptr),
    mPrefToolBar(nullptr),
    mSearchToolBar(nullptr),
    mActionDescriptionPrefix(QString("Add ")),
    mLastPathOpened(QApplication::applicationDirPath()),
    mShowGUIDs(true),
    mShowComments(true),
    mShowPrecision(true)
{
  createWidgets();
  createActions();
  createMenus();
  createToolBars();
  createStatusBar();
  createLayout();
  connectSignalsAndSlots();
  readSettings();
  setCurrentFile("");

  ///! TODO HACK
  openstudio::model::Model model = mModelExplorer->getModel();
  openstudio::WorkspaceObjectVector objects = model.objects();
  QStringList strings;
  for (const openstudio::WorkspaceObject& object : objects){
    strings << object.iddObject().name().c_str();
  }
  mCompleter = new QCompleter(strings,this);
  mCompleter->setCaseSensitivity(Qt::CaseInsensitive);
  if(mSearchViews) mSearchViews->setCompleter(mCompleter);
}
Exemplo n.º 18
0
TubeManager::TubeManager() {
  setName("tube");         // Установка имени модуля (внутреннее)
  setTextName("Труба");    // Установка имени модуля (внешнее)
  checkManagerState();            // Проверка состояния плагина (вкл. или выкл.)
  createWidgets();
  m_settings = NULL;
}
Exemplo n.º 19
0
InputMappingDialog::InputMappingDialog(QWidget* parent, ProcessorNetwork* network)
    : QWidget(parent)
    , processorNetwork_(network)
    , scrollStretchItem_(0)
    , widgetsValid_(false)
{
    setWhatsThis(whatsThisInfo);

    if (processorNetwork_)
        processorNetwork_->addObserver(this);

    scrollArea_ = new QScrollArea();
    QWidget* widget = new QWidget();
    scrollArea_->setWidget(widget);
    scrollArea_->setWidgetResizable(true);
    scrollLayout_ = new QVBoxLayout(widget);

    QVBoxLayout* mainLayout = new QVBoxLayout();
    mainLayout->addWidget(scrollArea_);

    setLayout(mainLayout);

    setMaximumHeight(1024);
    setMinimumSize(400, 300);
    createWidgets();
}
Exemplo n.º 20
0
View::Report::PriceListReport::PriceListReport(int companyId, QList<Model::Domain::Product *> *products, QWidget *parent) : QWidget(parent), _companyId(companyId)
{
    createWidgets(products);
    createConnections();
    setWindowTitle(tr("Price List Report"));
    setAttribute(Qt::WA_DeleteOnClose);
}
Exemplo n.º 21
0
int main(void) {
	GEvent* pe;

	// Initialize the display
	gfxInit();

	// Set the widget defaults
	gwinSetDefaultFont(gdispOpenFont("*"));
	gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
	gdispClear(White);

	// create the widget
	createWidgets();

	// We want to listen for widget events
	geventListenerInit(&gl);
	gwinAttachListener(&gl);

	while(1) {
		// Get an Event
		pe = geventEventWait(&gl, TIME_INFINITE);
	}

	return 0;
}
QFESPIMB040SimpleCameraConfig::QFESPIMB040SimpleCameraConfig(QWidget* parent):
    QGroupBox(parent)
{
    m_camViewID=0;
    m_extManager=NULL;
    camView=NULL;
    locked=false;
    restartPreview=false;
    m_magnification=1;
    m_lastUserPreview="";


    // initialize raw image memory ...
    viewData.reset();

    // create widgets and actions

    createWidgets();
    createActions();
    displayStates(QFESPIMB040SimpleCameraConfig::Disconnected);
    if (cmbAcquisitionDevice->count()<=0) displayStates(QFESPIMB040SimpleCameraConfig::Inactive);
    init(0, NULL, "", NULL);
    setCheckable(true);
    setChecked(true);
}
Exemplo n.º 23
0
MembersPage::MembersPage(QWidget *parent) :
    QWizardPage(parent)
{
    createWidgets();
    createLayout();
    registerFields();
}
Exemplo n.º 24
0
MainWindow::MainWindow(QWidget* parent, const char* name, WFlags fl)
//     : KMainWindow(parent, name, fl),  m_debuggerSettings(0), m_browserSettings(0)
    : KParts::MainWindow(parent, name, fl),  m_debuggerSettings(0), m_browserSettings(0)
{
  if(!name) { setName("MainWindow"); }

  setupStatusBar();

  m_debugger_manager = new DebuggerManager(this);

  createWidgets();

  setupActions();

  createGUI(0);

  resize( QSize(633, 533).expandedTo(minimumSizeHint()) );
  clearWState(WState_Polished);

  m_debugger_manager->init();

  connect(kapp, SIGNAL(aboutToQuit()), this, SLOT(slotClose()));

  connect(ProtoeditorSettings::self(), SIGNAL(sigSettingsChanged()),
          this, SLOT(slotSettingsChanged()));

  loadSites();

  stateChanged("init");
}
Exemplo n.º 25
0
DialogReport::DialogReport( QWidget * parent )
	: QDialog( parent )
{
	setWindowTitle("Журнал");
	setWindowIcon( QIcon(":/report.png") );
	createWidgets();
}
Exemplo n.º 26
0
QMyLesson::QMyLesson(QWidget *parent) :
    QWidget(parent)
{
    createWidgets();
    createActions();
    createToolBars();
}
Exemplo n.º 27
0
MyRoutesAddDialog::MyRoutesAddDialog(QWidget* parent)
    : QDialog(parent)
{
    createWidgets();
    createLayout();
    createConnections();
}
Exemplo n.º 28
0
TaskButton::TaskButton(QWidget *parent)
    : QWidget(parent)
    , task(NULL)
{
    createWidgets();
    createActions();
}
Exemplo n.º 29
0
int main(void) {
//	uint16_t i;

	// one wire initialization
	static OneWireDriver owDrv;
	static const OneWireConfig owCfg = { .dqPort = GPIOB,
	                                     .dqPad =  10,
	                                     .dqAlternate = 7,
	                                     .uartd = &UARTD3 };
	static OneWireRomAddress romAddr[8];
	static bool_t searched = FALSE;
	static bool_t initialized = FALSE;
	
	

	// Initialize the uGFX and the underlying system
	gfxInit();

	// Lock screen 	
uint8_t secret_sequence[UNLOCKER_COLS * UNLOCKER_ROWS];
  displayUnlockerSetup(secret_sequence);
 	displayUnlocker(secret_sequence);
	
	// Set the widget defaults
	gwinSetDefaultFont(gdispOpenFont("UI2"));
	gwinSetDefaultStyle(&WhiteWidgetStyle, FALSE);
	gdispClear(Black);
 
	// Create the widget
	createWidgets();
 
	// Print to the console
	gwinPrintf(ghConsole, "Witamy w konsoli!\r\n\n");
	gwinPrintf(ghConsole, "Odczyt temp z czujnikow DS18B20.\r\n");
	//initialize ds18b20	
	if (initialized == FALSE) {
	    oneWireInit(&owDrv, &owCfg);
	    initialized = TRUE;
	}

	if (searched == FALSE) {
      		oneWireSearchRom (&owDrv, FALSE, romAddr, ARRAY_LEN(romAddr));
      		searched = TRUE;
	}
	while (1) {	oneWireSearchRom (&owDrv, FALSE, romAddr, ARRAY_LEN(romAddr));

	   	for (uint8_t i=0; i< ARRAY_LEN(romAddr); i++) {
			if (romAddr[i].addr[0] == 0x28) {
		  		ds1820BInit (&owDrv, &(romAddr[i]), 10);
		 		const float temp =ds1820BGetTemp (&owDrv, &(romAddr[i]));
				gwinPrintf(ghConsole, "czujnik %d temp =%.2f\r\n", i, temp);      	
				}
		}
	 
		gfxSleepMilliseconds(800);
	}
	 
	return 0;
}
Exemplo n.º 30
0
ConfigRadioButton::ConfigRadioButton(
    const QString &section, const QString &item, const QString &widgetCaption, const QString &toolTip,
    ConfigGroupBox *parentConfigGroupBox, ConfigurationWindowDataManager *dataManager)
        : QRadioButton(widgetCaption, parentConfigGroupBox->widget()),
          ConfigWidgetValue(section, item, widgetCaption, toolTip, parentConfigGroupBox, dataManager)
{
    createWidgets();
}