void OutputTabWindow::CreateGUIControls() { wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL); SetSizer(mainSizer); m_vSizer = new wxBoxSizer(wxVERTICAL); // Create the default scintilla control #ifdef __WXGTK__ m_sci = new wxStyledTextCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxRAISED_BORDER); #else m_sci = new wxStyledTextCtrl(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE); #endif // We dont really want to collect undo in the output tabs... m_sci->SetUndoCollection(false); m_sci->EmptyUndoBuffer(); InitStyle(m_sci, wxSTC_LEX_CONTAINER, false); // Add the find bar mainSizer->Add(m_vSizer, 1, wxEXPAND | wxALL, 0); BitmapLoader* bmpLoader = PluginManager::Get()->GetStdIcons(); // Create the toolbar m_tb = new wxAuiToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxAUI_TB_PLAIN_BACKGROUND); m_tb->SetToolBitmapSize(wxSize(16, 16)); m_tb->AddTool(XRCID("hold_pane_open"), _("Keep open"), bmpLoader->LoadBitmap("ToolPin"), _("Don't close this pane when an editor gets focus"), wxITEM_CHECK); m_tb->AddTool(XRCID("scroll_on_output"), _("Scroll on Output"), bmpLoader->LoadBitmap("link_editor"), _("Scroll on Output"), wxITEM_CHECK); m_tb->ToggleTool(XRCID("scroll_on_output"), m_outputScrolls); m_tb->AddTool( XRCID("word_wrap_output"), _("Word Wrap"), bmpLoader->LoadBitmap("word_wrap"), _("Word Wrap"), wxITEM_CHECK); m_tb->AddTool(XRCID("clear_all_output"), _("Clear All"), bmpLoader->LoadBitmap("clear"), _("Clear All")); m_tb->AddTool(XRCID("collapse_all"), _("Fold All Results"), bmpLoader->LoadBitmap("fold"), _("Fold All Results")); m_tb->AddTool(XRCID("repeat_output"), _("Repeat"), bmpLoader->LoadBitmap("debugger_restart"), _("Repeat")); m_tb->Realize(); m_vSizer->Add(m_tb, 0, wxEXPAND); m_vSizer->Add(m_sci, 1, wxEXPAND); // Hide the find bar by default m_vSizer->Layout(); }
/*---------------------------------------------------------------------------*/ bool wxSQLEditor::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) { if (!wxSQLEditorBase::Create(parent, id, pos, size, style, name)) return false; InitStyle(); return true; }
ControlPanelButton::ControlPanelButton(UiDefines::ControlButtonType type) : QGraphicsProxyWidget(0, Qt::Widget), internal_widget_(new QWidget()), type_(type) { setupUi(internal_widget_); setWidget(internal_widget_); connect(actionButton, SIGNAL(clicked()), SLOT(Clicked())); InitStyle(); }
BookEditDialog::BookEditDialog(QString currentId,QWidget *parent) : QDialog(parent), ui(new Ui::BookEditDialog) { ui->setupUi(this); InitStyle(); this->currentId = currentId; netManager = new QNetworkAccessManager; netManager->setCookieJar(Tool::getInstance()->getCookieJar()); connect(netManager,&QNetworkAccessManager::finished,this,&BookEditDialog::finishHttp); init(); }
int main(int argc, char *argv[]) { #ifdef CHECK_LICENSE if ( !CheckLicense() ) return -1; #endif DbgHelper::InstallDbgHelper(); Test(); PROCESS_INFORMATION procInfo = ProcessProxy::CreateProcess((Utils::GetExePath() + L"\\GenymotionMonitor.exe").c_str()); CloseHandle(procInfo.hThread); CloseHandle(procInfo.hProcess); QApplication a(argc, argv); a.setWindowIcon(QIcon(QPixmap(":/Image/icon.png"))); QTranslator* ts = new QTranslator; ts->load(":/qt_zh_CN.qm"); a.installTranslator(ts); FramelessDlg dlg(0); AppDlg* app = new AppDlg(&dlg); dlg.SetDlg(app); dlg.SetTitle(Utils::GetConfigValue("title", "value")); dlg.SetSubTitle(Utils::stoq("未选择要分析的设备")); dlg.setMinimumSize(1020, 600); QObject::connect(app, SIGNAL(AddMenuAction(QAction*)), &dlg, SLOT(AddMenuAction(QAction*))); QObject::connect(app, SIGNAL(AddSubMenu(QMenu*)), &dlg, SLOT(AddSubMenu(QMenu*))); QObject::connect(app, SIGNAL(RemoveMenuAction(QAction*)), &dlg, SLOT(RemoveMenuAction(QAction*))); QObject::connect(app, SIGNAL(SetSubTitle(QString)), &dlg, SLOT(SetSubTitle(QString))); app->InitAction(); InitStyle(a); dlg.show(); dlg.CenterWindow(); app->AnalyzeDir(GetDefaultForensicsDir()); a.exec(); ProcessProxy::KillProcess(L"GenymotionMonitor.exe"); return 0; }
void OutputTabWindow::CreateGUIControls() { wxBoxSizer *mainSizer = new wxBoxSizer(wxHORIZONTAL); SetSizer(mainSizer); //Create the toolbar m_tb = new wxToolBar(this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT|wxTB_VERTICAL|wxTB_NODIVIDER); m_tb->AddTool(XRCID("scroll_on_output"), wxT("Scroll on Output"), wxXmlResource::Get()->LoadBitmap(wxT("link_editor")), wxT("Scroll on Output"), wxITEM_CHECK); m_tb->ToggleTool(XRCID("scroll_on_output"), m_outputScrolls); m_tb->AddTool(XRCID("word_wrap_output"), wxT("Word Wrap"), wxXmlResource::Get()->LoadBitmap(wxT("word_wrap")), wxT("Word Wrap"), wxITEM_CHECK); m_tb->AddTool(XRCID("clear_all_output"), wxT("Clear All"), wxXmlResource::Get()->LoadBitmap(wxT("document_delete")), wxT("Clear All")); m_tb->AddTool(XRCID("collapse_all"), _("Fold All Results"), wxXmlResource::Get()->LoadBitmap(wxT("fold_airplane")), _("Fold All Results")); m_tb->AddTool(XRCID("repeat_output"), _("Repeat"), wxXmlResource::Get()->LoadBitmap(wxT("find_refresh")), _("Repeat")); m_tb->Realize(); mainSizer->Add(m_tb, 0, wxTOP|wxBOTTOM|wxEXPAND, 5); m_sci = new wxScintilla(this); InitStyle(m_sci, wxSCI_LEX_CONTAINER, false); mainSizer->Add(m_sci, 1, wxEXPAND | wxALL, 1); mainSizer->Layout(); }
Tk_Style Tk_CreateStyle( const char *name, /* Name of the style to create. NULL or empty * means the default system style. */ Tk_StyleEngine engine, /* The style engine. */ ClientData clientData) /* Private data passed as is to engine code. */ { ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData)); Tcl_HashEntry *entryPtr; int newEntry; Style *stylePtr; /* * Attempt to create a new entry in the style table. */ entryPtr = Tcl_CreateHashEntry(&tsdPtr->styleTable, (name?name:""), &newEntry); if (!newEntry) { /* * A style was already registered by that name. */ return NULL; } /* * Allocate and intitialize a new style. */ stylePtr = ckalloc(sizeof(Style)); InitStyle(stylePtr, Tcl_GetHashKey(&tsdPtr->styleTable, entryPtr), (engine!=NULL ? (StyleEngine*) engine : tsdPtr->defaultEnginePtr), clientData); Tcl_SetHashValue(entryPtr, stylePtr); return (Tk_Style) stylePtr; }
/*---------------------------------------------------------------------------*/ wxSQLEditor::wxSQLEditor(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name) : wxSQLEditorBase(parent, id, pos, size, style, name) { InitStyle(); }