void VPiano::initialization() { initMidi(); refreshConnections(); readSettings(); initToolBars(); applyPreferences(); applyConnections(); applyInitialSettings(); }
MainWindow::MainWindow() { textArea = new TextArea; //textArea->is windowTitle="Text Editor"; setWindowIcon(QIcon(":/images/app.png")); setCentralWidget(textArea); documentModified=false; initMenus(); initToolBars(); //initContext(); }
void VPiano::initialization() { if (m_initialized = initMidi()) { refreshConnections(); readSettings(); initToolBars(); applyPreferences(); applyConnections(); applyInitialSettings(); initExtraControllers(); } }
MainWindow::MainWindow(const wxString& title, const wxPoint& pos, const wxSize& size) : wxFrame( NULL, -1, title, pos, size ), m_menuBar(NULL), m_toolBar(NULL), m_bitmap(wxBitmap()), m_hsizer(NULL) { m_mgr.SetManagedWindow(this); wxInitAllImageHandlers(); initMenuBar(); SetMenuBar( m_menuBar ); initToolBars(); initMainPanel(); { wxPanel * pnSettings = new wxPanel(this, wxID_ANY); wxPanel * p = pnSettings; wxButton * btnInpaint = new wxButton(p, wxID_ANY, wxT("Inpaint"), // wxBitmap(inpaint_xpm), wxDefaultPosition, wxDefaultSize); wxBoxSizer * vsizer = new wxBoxSizer(wxVERTICAL); vsizer->Add(btnInpaint, 0, wxALIGN_CENTER | wxALIGN_CENTER_VERTICAL | wxEXPAND ); p->SetSizer(vsizer); p->SetSize(wxSize(200,150)); //if (0) { wxPanel * pInpaint = new wxPanel(this, wxID_ANY); wxSpinCtrl * scThreshold = new wxSpinCtrl(pInpaint, wxID_ANY, wxT("threshold")); scThreshold->SetValue(5); scThreshold->SetRange(1,100); wxBoxSizer * pInpaintSizer = new wxBoxSizer(wxVERTICAL); pInpaintSizer->Add(scThreshold, 0, wxALIGN_CENTER|wxALIGN_CENTER_VERTICAL|wxEXPAND); pInpaint->SetSizer(pInpaintSizer); pInpaint->SetSize(200, 150); p = pInpaint; // m_mgr.AddPane(p, wxRIGHT, wxT("Inpaint Panel")); } m_mgr.AddPane(p, wxRIGHT, wxT("Manipulations Panel")); } initEvents(); m_mgr.Update(); }
/* * Constructs a QG_CadToolBarSelect as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ QG_CadToolBarSelect::QG_CadToolBarSelect(QG_CadToolBar* parent, Qt::WindowFlags fl) :LC_CadToolBarInterface(parent, fl) ,nextAction(-1) ,selectAction(nullptr) { initToolBars(); if(layout()) { QToolButton* button=new QToolButton; button->setDefaultAction(m_pButtonForward); button->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); layout()->addWidget(button); static_cast<QVBoxLayout*>(layout())->addStretch(1); } connect(m_pButtonForward, SIGNAL(triggered()), this, SLOT(runNextAction())); }
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { activeDocument_ = 0L; newcnt_ = 1; // set up the main window init(); initGui(); initActions(); initMenus(); initToolBars(); initConnections(); Config *cfg = Application::self()->config(); QByteArray state = cfg->state(); QByteArray geometry = cfg->geometry(); if (!state.isEmpty()) restoreState(state); if (!geometry.isEmpty()) restoreGeometry(geometry); // to make sure that there is no open models. activeDocumentChanged(-1); emit actionEnabled(false); // parse cmd line args QStringList args = qApp->arguments(); for (int i = 1; i < args.size(); ++i) { const QString &arg = args[i]; if (!arg.startsWith("-")) openFile(arg); } setStatusMessage(tr("Ready...")); }
/* * Constructs a QG_CadToolBarInfo as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ QG_CadToolBarInfo::QG_CadToolBarInfo(QG_CadToolBar* parent, Qt::WindowFlags fl) :LC_CadToolBarInterface(parent, fl) { initToolBars(); }
/* * Constructs a QG_CadToolBarEllipses as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ QG_CadToolBarEllipses::QG_CadToolBarEllipses(QG_CadToolBar* parent, Qt::WindowFlags fl) :LC_CadToolBarInterface(parent, fl) { initToolBars(); }