Example #1
0
ToolbarPanel::ToolbarPanel(wxWindow* parent, StagePanel* stage_panel)
	: ee::ToolbarPanel(parent, NULL)
	, m_stage_panel(stage_panel)
{
	SetSizer(InitLayout());	
	RegistSubject(ChangeWindowViewSizeSJ::Instance());
}
Example #2
0
void CEditDialog::ShowList(const QString& TopNode)
{
    XML.clear("OCStuff","Stuff");
    XML.load(settingsfile);
    this->TopNode=TopNode;
    InitLayout(true);
    if (XML.documentElement->childCount(TopNode)==0)
    {
        theNode=XML.documentElement->appendChild(TopNode);
        if (TopNode=="Controller")
        {
            QDomLiteElement* ctl=theNode->appendChild(TopNode+"Element");
            ctl->setAttribute("Name","Pan");
            ctl->setAttribute("Controller",10);
            ctl->setAttribute("Value",80);
        }
    }
    else
    {
        theNode=XML.documentElement->elementByTag(TopNode);
    }
    for (int i=0;i<theNode->childCount();i++)
    {
        QListWidgetItem* item=new QListWidgetItem(theNode->childElement(i)->attribute("Name"));
        item->setFlags( item->flags() | Qt::ItemIsEditable);
        ui->listWidget->addItem(item);
    }
    ui->SaveItem->setEnabled(ui->listWidget->currentRow()>-1);
    connect(ui->AddItem,SIGNAL(clicked()),this,SLOT(AddItem()));
    connect(ui->RemoveItem,SIGNAL(clicked()),this,SLOT(RemoveItem()));
    connect(ui->listWidget,SIGNAL(itemChanged(QListWidgetItem*)),this,SLOT(RenameItem(QListWidgetItem*)));
    connect(ui->listWidget,SIGNAL(currentRowChanged(int)),this,SLOT(SetItem(int)));
    connect(this,SIGNAL(accepted()),this,SLOT(HideList()));
    connect(ui->SaveItem,SIGNAL(clicked()),this,SLOT(SaveItem()));
}
Example #3
0
Task::Task(wxFrame* parent)
	: m_root(NULL)
	, m_parent(parent)
	, m_is_2d(false)
{
	InitLayout();
}
Example #4
0
ToolbarPanel::ToolbarPanel(wxWindow* parent, StagePanel* stage)
	: ee::ToolbarPanel(parent, stage->GetStageImpl())
	, m_stage(stage)
{
	AddChild(new eshape::DrawPolygon2CMPT(this, "多边形", stage, stage->GetStageImpl(), stage, NULL));
	SetSizer(InitLayout());
}
Example #5
0
void CXFA_FFDocView::StopLayout() {
  CXFA_Node* pRootItem =
      ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
  if (!pRootItem) {
    return;
  }
  CXFA_Node* pSubformNode = pRootItem->GetChild(0, XFA_ELEMENT_Subform);
  if (!pSubformNode) {
    return;
  }
  CXFA_Node* pPageSetNode =
      pSubformNode->GetFirstChildByClass(XFA_ELEMENT_PageSet);
  if (!pPageSetNode) {
    return;
  }
  RunCalculateWidgets();
  RunValidate();
  InitLayout(pPageSetNode);
  InitCalculate(pPageSetNode);
  InitValidate(pPageSetNode);
  ExecEventActivityByDeepFirst(pPageSetNode, XFA_EVENT_Ready, TRUE);
  ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_Ready);
  ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_DocReady);
  RunCalculateWidgets();
  RunValidate();
  if (RunLayout()) {
    ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_Ready);
  }
  m_CalculateAccs.RemoveAll();
  if (m_pFocusAcc && !m_pFocusWidget) {
    SetFocusWidgetAcc(m_pFocusAcc);
  }
  m_iStatus = XFA_DOCVIEW_LAYOUTSTATUS_End;
}
Example #6
0
AbstractDialog::AbstractDialog(const char *title, LineStyle::Type ltype)
: Window(10, 10, 60, 12, title, TYPE_TOP, ltype)
{
  /// @todo Set correct position.

  InitLayout();
}
Example #7
0
LRESULT CScriptEditor::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
	m_toolTip.Create(m_hWnd);

//{{WTLBUILDER_MEMBER_CREATION
	m_formFont.CreateFont(-12,0,0,0,FW_NORMAL,false,false,false,DEFAULT_CHARSET,OUT_DEFAULT_PRECIS,CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_DONTCARE,_TEXT("MS Sans Serif"));
	SetFont((HFONT)m_formFont);
	ResizeClient(675,513);
	SetWindowText(_TEXT("FrameWindowImpl0"));

	m_edit.Create(m_hWnd,CRect(0,0,675,490),_TEXT(""),WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_HSCROLL|WS_TABSTOP|ES_MULTILINE|ES_AUTOVSCROLL|ES_AUTOHSCROLL|ES_WANTRETURN,0,IDC_EDIT);
	m_edit.SetFont((HFONT)m_formFont);

	m_statusbarctrl1.Create(m_hWnd,CRect(0,490,675,513),NULL,WS_CHILD|WS_VISIBLE|WS_TABSTOP,0,IDC_CSCRIPTEDITOR_STATUSBARCTRL1);
	m_statusbarctrl1.SetFont((HFONT)m_formFont);

	Menu2.LoadMenu(IDR_SCRIPT_EDITOR);
//}}WTLBUILDER_MEMBER_CREATION

//{{WTLBUILDER_POST_CREATION
	SetMenu(Menu2);
	m_hWndClient=(HWND)m_edit;
	m_hWndStatusBar=(HWND)m_statusbarctrl1;
	m_edit.SetFocus();
//}}WTLBUILDER_POST_CREATION

//{{WTLBUILDER_TABSTOP
//}}WTLBUILDER_TABSTOP
	//m_hAccel = AtlLoadAccelerators(IDR_SCRIPT_EDITOR);
	InitLayout();

	return 0;
}
Example #8
0
CAlertUI::CAlertUI(AppListInterface * pList, QWidget *parent) : AppBase(pList, parent), mLayout(NULL)
{
    InitLayout();
    connect(this, SIGNAL(onSpaceCliced()), this, SLOT(onSpaceClicedSlots()));
    connect(&m_timer,SIGNAL(timeout()),this,SLOT(timeoutSlots()));
    //connect(this,SIGNAL(alertAbort(int,int)),this,SLOT(alertAbortSlots(int,int)));
    //connect(this,SIGNAL(softButtonClicked(int,int)),this,SLOT(softButtonClickedSlots(int,int)));
}
Example #9
0
SeisWidget::SeisWidget(SeisView *view)
{
    seisview = view;

    InitLayout();


}
Example #10
0
EditDialog::EditDialog(wxWindow* parent, const std::shared_ptr<Symbol>& sym, wxGLContext* glctx)
	: wxDialog(parent, wxID_ANY, "Edit Scale9", wxDefaultPosition,
	wxSize(800, 600), wxCLOSE_BOX | wxCAPTION | wxMAXIMIZE_BOX)
	, m_sym(sym)
{
	SetTitle(sym->GetFilepath());
	InitLayout(glctx);
}
Example #11
0
void CEditParameter::Init()
{
	InitLayout();
	InitSignalSlot();
	RefreshText();

	m_strScope = CScreenProject::GetInstance()->GetOpenedFileName();
}
Example #12
0
TabBar::TabBar(QWidget *parent)
: QWidget(parent)
, layout_(QBoxLayout::LeftToRight, this)
, orientation_(Qt::Horizontal)
, buttons_()
{
    InitLayout();
}
Example #13
0
FftWaveUi::FftWaveUi(QWidget *parent) :
    QDialog(parent)
{
    InitWidget();
    InitLayout();
    InitConnector();
    this->setFixedSize(840, 600);
}
Example #14
0
AdvancedDistance::AdvancedDistance(QDate date, ReportType type, QWidget *parent)
    : QDialog(parent)
{

    Init();
    InitLayout();
    InitConnector();
    InitData(date, type);
}
Example #15
0
CEditDialog::CEditDialog(QWidget *parent) :
        QDialog(parent,Qt::Sheet),
    ui(new Ui::CEditDialog)
{
    ui->setupUi(this);
    setWindowModality(Qt::WindowModal);
    EditWidget=ui->EditWidget;
    InitLayout(false);
}
Example #16
0
void CTeachingBox::Init()
{
	InitLayout();
	InitSignalSlots();
	InitThread();
	SlotChangeToScreenSetting();
	SlotOnButtonModelClicked();

	CTcpManager::GetInstance();	/*初始化net,用于在程序启动时建立连接*/
}
Example #17
0
KeysPanel::KeysPanel(wxWindow* parent)
	: wxScrolledWindow(parent)
	, m_layer(NULL)
{
	m_selected_row = m_selected_col = -1;

	InitLayout();

	RegistSubject(SetSelectedSJ::Instance());
}
Example #18
0
CTxParamString::CTxParamString( const CTxParamString& other )
{
	if (&other == this)
	{
		return;
	}
	Clear();
	m_strRealString = other.m_strRealString;
	m_bInited = FALSE;
	InitLayout();
}
Example #19
0
EditDialogSimple::EditDialogSimple(wxWindow* parent, wxGLContext* glctx,
								   ee::SprPtr edited, const ee::MultiSpritesImpl* sprite_impl)
 	: wxDialog(parent, wxID_ANY, "Edit Shape", wxDefaultPosition, 
	wxSize(800, 600), wxCLOSE_BOX | wxCAPTION | wxMAXIMIZE_BOX)
	, m_stage(nullptr)
	, m_capture(5)
{
	InitLayout(glctx, edited, sprite_impl);
	InitEditOP(edited);

	ee::SetWndDirtySJ::Instance()->SetDirty();
}
Example #20
0
ToolbarPanel::ToolbarPanel(wxWindow* parent, ee::LibraryPanel* library,
						   StagePanel* stage)
	: ee::ToolbarPanel(parent, stage->GetStageImpl())
	, m_stage(stage)
	, m_image(NULL)
{
	SetScrollbars(1,1, 200, 100, 0, 0);
	SetSizer(InitLayout());	
	InitParticle();

	SetDropTarget(new DropTarget(library, stage, this));

	RegistSubject(ee::ClearPanelSJ::Instance());
}
// ---------------------------------------------------------------------------
// Name:        gpSessionView
// Description: constructor
// Author:      Gilad Yarnitzky
// Date:        18/8/2013
// ---------------------------------------------------------------------------
gpSessionView::gpSessionView(QWidget* pParent, const osFilePath& sessionPath) : gpBaseSessionView(pParent),
    m_pSessionData(nullptr), m_pImageLabel(nullptr), m_pSimulateUserCaptureButton(nullptr) , m_pCaptureButton(nullptr),
    m_pStopButton(nullptr), m_pOpenTimelineButton(nullptr), m_pCurrentFrameDetailsLabel(nullptr), m_pCurrentFrameCaptionLabel(nullptr),
    m_pPropsHTMLLabel(nullptr), m_pSnapshotsThumbView(nullptr),
    m_isSessionRunning(false), m_isDisplayingCurrentFrame(false), m_lastCapturedFrameIndex(-1), m_sessionPath(sessionPath)
{
    // init the view layout
    InitLayout();

    QPalette p = palette();
    p.setColor(backgroundRole(), QColor::fromRgb(251, 251, 251));
    p.setColor(QPalette::Base, QColor::fromRgb(251, 251, 251));
    setAutoFillBackground(true);
    setPalette(p);
}
Example #22
0
LRESULT [!CLASSNAME]::OnCreate(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
{
	m_toolTip.Create(m_hWnd);

//{{WTLBUILDER_MEMBER_CREATION
//}}WTLBUILDER_MEMBER_CREATION

//{{WTLBUILDER_POST_CREATION
//}}WTLBUILDER_POST_CREATION

//{{WTLBUILDER_TABSTOP
//}}WTLBUILDER_TABSTOP

	InitLayout();

	return 0;
}
Example #23
0
EditDialog::EditDialog(wxWindow* parent, wxGLContext* glctx,
					   const std::shared_ptr<Sprite>& edited, const ee::MultiSpritesImpl* sprite_impl)
	: wxDialog(parent, wxID_ANY, "Edit Texture", wxDefaultPosition, wxSize(800, 600), wxCLOSE_BOX | wxCAPTION | wxMAXIMIZE_BOX)
	, m_sym(NULL)
	, m_stage(NULL)
{
	assert(edited);

	auto sym = std::dynamic_pointer_cast<Symbol>(edited->GetSymbol());
	m_sym = sym;
//	m_sym->ReloadTexture();
	SetTitle(sym->GetFilepath());

	InitLayout(glctx, edited, sprite_impl);

	ee::SetWndDirtySJ::Instance()->SetDirty();

	m_visible_tex_edge = ee::Config::Instance()->GetSettings().visible_tex_edge;
	ee::Config::Instance()->GetSettings().visible_tex_edge = true;
}
Example #24
0
/**
 * @param hWnd - handle to the control to receive the default keyboard focus.
 * @param lParam - specifies additional initialization data.
 * @return message result code.
 */
LRESULT CManualModeDlg::OnInitDialog(HWND /*hWnd*/, LPARAM /*lParam*/)
{
	m_txtMapPdbFile.Attach(GetDlgItem(IDC_MAPPDBFILE));
	m_txtMapPdbFile.SetLimitText(MAX_PATH - 1);
	m_txtBaseAddress.Attach(GetDlgItem(IDC_BASEADDRESS), GetDlgItem(IDC_BASEADDRESS_RADIX));
	CNumEdit& txtBaseAddress = m_txtBaseAddress.GetNumEdit();
	txtBaseAddress.SetLimitText(8);
	txtBaseAddress.SetNumFormat(CNumEdit::NF_HEX);
	CNumEdit& txtModuleSize = m_txtModuleSize.GetNumEdit();
	m_txtModuleSize.Attach(GetDlgItem(IDC_MODULESIZE), GetDlgItem(IDC_MODULESIZE_RADIX));
	txtModuleSize.SetLimitText(8);
	txtModuleSize.SetNumFormat(CNumEdit::NF_HEX);
	txtModuleSize.EnableWindow(FALSE);
	CNumEdit& txtCrashAddress = m_txtCrashAddress.GetNumEdit();
	m_txtCrashAddress.Attach(GetDlgItem(IDC_CRASHADDRESS), GetDlgItem(IDC_CRASHADDRESS_RADIX));
	txtCrashAddress.SetLimitText(8);
	txtCrashAddress.SetNumFormat(CNumEdit::NF_HEX);
	m_txtFunctionName.Attach(GetDlgItem(IDC_FUNCTIONNAME));
	m_txtSourceFile.Attach(GetDlgItem(IDC_SOURCEFILE));
	m_txtLineNumber.Attach(GetDlgItem(IDC_LINENUMBER));

	//////////////////////////////////////////////////////////////
	// workaround for WinXP bug when scrollbars are not skinned //
	LONG lStyle = GetWindowLong(GWL_STYLE);                     //
	SetWindowLong(GWL_STYLE, lStyle | WS_HSCROLL | WS_VSCROLL); //
	SetWindowLong(GWL_STYLE, lStyle);                           //
	//////////////////////////////////////////////////////////////

	InitLayout(false, true);
	AddControlsToLayout(g_arrLayout, countof(g_arrLayout));

	CRect rcClient;
	GetClientRect(&rcClient);
	SetScrollSize(rcClient.right, rcClient.bottom);
	DWORD dwDlgUnits = GetDialogBaseUnits();
	int nLineUnit = HIWORD(dwDlgUnits);
	SetScrollLine(nLineUnit, nLineUnit);

	ClearProcessor();
	return TRUE;
}
Example #25
0
int32_t CXFA_FFDocView::StartLayout(int32_t iStartPage) {
  m_iStatus = XFA_DOCVIEW_LAYOUTSTATUS_Start;
  m_pDoc->GetXFADoc()->DoProtoMerge();
  m_pDoc->GetXFADoc()->DoDataMerge();
  m_pXFADocLayout = GetXFALayout();
  int32_t iStatus = m_pXFADocLayout->StartLayout();
  if (iStatus < 0) {
    return iStatus;
  }
  CXFA_Node* pRootItem =
      ToNode(m_pDoc->GetXFADoc()->GetXFAObject(XFA_HASHCODE_Form));
  if (!pRootItem) {
    return iStatus;
  }
  InitLayout(pRootItem);
  InitCalculate(pRootItem);
  InitValidate(pRootItem);
  ExecEventActivityByDeepFirst(pRootItem, XFA_EVENT_Ready, TRUE);
  m_iStatus = XFA_DOCVIEW_LAYOUTSTATUS_Start;
  return iStatus;
}
Example #26
0
void ModeSetupUi::Init()
{
    InitWidget();
    InitLayout();
    SetUiData();
}
Example #27
0
Task::Task(wxFrame* parent)
	: m_root(NULL)
	, m_parent(parent)
{
	InitLayout();
}
Example #28
0
void FrameKit::InitLayout(const char* name) {
  InitLayout(this, name);
}
Example #29
0
Task::Task(Frame* frame)
	: m_root(NULL)
	, m_frame(frame)
{
	InitLayout();
}
Example #30
0
void CScreenLineEditor::Init()
{
	InitLayout();
	InitSignalSlot();
	RefreshText();
}