Ejemplo n.º 1
0
void CSVSortList::initForm()
{
    setStyleClass("t5");
    createTitle();
    createContent();
    createOperate();
}
Ejemplo n.º 2
0
//-----------------------------------------------------------------------------
ImgChildWnd::ImgChildWnd(QSize Size, ImageType Type, QString sVarName, QWidget *parent) :
    m_pIplImage(0)
{
    CvSize size = cvSize(Size.width(), Size.height());

    switch (Type)
    {
    case IMG_BW8:
        m_pIplImage = cvCreateImage(size, IPL_DEPTH_8U, 1);
        break;


    case IMG_C24:
        m_pIplImage = cvCreateImage(size, IPL_DEPTH_8U, 3);
        break;

    default:
        break;
    }

    if (m_pIplImage != 0)
    {
        QImage img;

        cvSetZero(m_pIplImage);

        cvqCopyImage(m_pIplImage, img);

        createContent(&img, parent);
    }

    setWindowTitle(sVarName);
}
Ejemplo n.º 3
0
DTReceptionListWidget::DTReceptionListWidget(QWidget* parent, Qt::WindowFlags f) :
    DTAbstractMasterWidget(parent,f),
    ui(new Ui::DTReceptionListWidget)
{
    ui->setupUi(this);
    createContent();
    setupActions();
}
Ejemplo n.º 4
0
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 初始化
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CEccBaseTable::initForm(bool bHasHelp)
{
    // 创建标题
    createTitle(bHasHelp);
    // 创建内容
    createContent();
    // 创建操作
    createOperate();
}
t_phoneringingtoneplayer::t_phoneringingtoneplayer(QGraphicsItem *parent)
    : HbView(parent), m_volume(10)
{
    setTitle(tr("t_ringingtoneplayer"));
    createMenu();
    createContent();

    m_ringingtone.Format(KNokiatune);
    m_ringingtoneplayer = CPhoneRingingToneController::NewL();
}
WarrantyWidget::WarrantyWidget (
    WarrantyBusinessLogic  *warrantyBusinessLogic,
    QGraphicsWidget        *parent) :
    DcpStylableWidget (parent),
    m_WarrantyBusinessLogic (warrantyBusinessLogic),
    m_labelExpiration (0)
{
    initialize ();

    createContent ();
}
automaticanswertest::automaticanswertest(QGraphicsItem *parent)
    : HbView(parent), m_incomingVoiceCallMonitor(NULL)
{
    qDebug () << "automaticanswertest::automaticanswertest<<";
    setTitle(tr("automaticanswer"));

    // Add menu item for automatic answer
    /*   connect(
           menu()->addAction("start automatic answer"), SIGNAL(triggered()), 
           this, SLOT(answer()));*/

    createContent();
    qDebug () << "automaticanswertest::automaticanswertest>>";
}
Ejemplo n.º 8
0
bool HelloWorld::init()
{
	if (!Layer::init()){
		return false;
	}

	createContent();

	log("-------> Stast connect");
	_client = SocketIO::connect("ws://127.0.0.1:8080/", *this);
	_client->on("hello", CC_CALLBACK_2(HelloWorld::onReceiveEvent, this));

	return true;
}
Ejemplo n.º 9
0
/**
 * Creates the window, including the content.
 * This includes: Registering a window class from the szClassName member,
 * creating the windows control and creating  the content.
 */
bool CWindow::createWindow()
{
	if(!createWindowClass(basicWindowProcedure))
	{
		return false;
	}

	mapMessages();
	mapCommands();

	createControl();
	createContent();
    return true;
}
ResetWidget::ResetWidget (
        ResetBusinessLogic     *resetBusinessLogic, 
        QGraphicsWidget        *parent) :
    DcpWidget (parent),
    m_ResetBusinessLogic (resetBusinessLogic),
    m_currentPlan (None)
{
    createContent();

    connect (resetBusinessLogic, SIGNAL (gotAccess ()),
             this, SLOT (doTheWork ()));
    connect (resetBusinessLogic, SIGNAL (accessDenied ()),
             this, SLOT (operationCancelled ()));
}
Ejemplo n.º 11
0
void DSceneBasic::createControls()
{
    logMessage("DSceneBasic::createControls()");

    // dialog buttons
    buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
    connect(buttonBox, SIGNAL(accepted()), this, SLOT(doAccept()));
    connect(buttonBox, SIGNAL(rejected()), this, SLOT(doReject()));

    layout->addLayout(createContent());
    layout->addStretch();
    layout->addWidget(buttonBox);

    setLayout(layout);
}
Ejemplo n.º 12
0
//-----------------------------------------------------------------------------
ImgChildWnd::ImgChildWnd(QString sFileName, QString sVarName, QWidget *parent) :
    QWidget(parent), m_pIplImage(0)
{
    QImage img;
    bool br = false;

    br = loadImageFile(sFileName, img);

    if (br)
    {
        createContent(&img, parent);

        setWindowTitle(sVarName);
    }
}
Ejemplo n.º 13
0
bool GuiInspectorGroup::onAdd()
{
   setDataField( StringTable->insert("profile"), NULL, "GuiInspectorGroupProfile" );

   if( !Parent::onAdd() )
      return false;

   // Create our inner controls. Allow subclasses to provide other content.
   if(!createContent())
      return false;

   inspectGroup();

   return true;
}