Exemple #1
0
Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
    initForm();
}
FLFormRecordDB::FLFormRecordDB( FLSqlCursor * cursor, const QString & actionName,
                                QWidget * parent, bool showAcceptContinue )
    : FLFormDB( parent, actionName,
                Qt::WStyle_Customize | Qt::WStyle_Maximize | Qt::WStyle_Title |
                Qt::WType_Dialog | Qt::WShowModal | Qt::WStyle_SysMenu ),
      pushButtonAccept( 0 ), pushButtonAcceptContinue( 0 ),
      pushButtonFirst( 0 ), pushButtonPrevious( 0 ), pushButtonNext( 0 ),
      pushButtonLast( 0 ), showAcceptContinue_( showAcceptContinue ),
      iface( 0 ), accepting( false ), initTransLevel( 0 ),
      initialModeAccess( cursor ? cursor->modeAccess() : FLSqlCursor::BROWSE ) {
#ifdef FL_DEBUGGER
    pushButtonIDE = 0;
#endif

    setFocusPolicy( QWidget::NoFocus );

    if ( actionName.isEmpty() )
        action_ = 0;
    else if ( cursor )
        action_ = cursor->db()->manager()->action( actionName );
    else
        action_ = FLSqlConnections::database()->manager()->action( actionName );
    cursor_ = cursor;
    name_ = QString::null;

    initForm();
}
Exemple #3
0
TcpSrvGui::TcpSrvGui(QWidget *parent)
	: QMainWindow(parent),

	  sMSG("Message: "),
	  sFILE("File: "),
	  sSRV("srv: "),
	  sCLI("cli: "),
	  sBTS("Total bytes: "),

	  pbListen(new QPushButton("Listen")),
	  pbClose(new QPushButton("Close")),
	  lbStatus(new QLabel("<status>")),

	  lbMessage(new QLabel(sMSG)),
	  lbFile(new QLabel(sFILE)),
	  lbSrv(new QLabel(sSRV + "<addr>:<port>")),
	  lbCli(new QLabel(sCLI + "<addr>:<port>")),
	  lbBytes(new QLabel(sBTS + "0")),

	  switcher(false),
	  path("")
{
	initMembers();
	initForm();
	initConnections();
}
Exemple #4
0
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 构造函数
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
CEccAddMonitor1st::CEccAddMonitor1st(WContainerWidget *parent):
CEccBaseTable(parent),
m_szDTName("")
{
    setStyleClass("panel");
    initForm(false);
    connect(&m_MTMapper, SIGNAL(mapped(int)), this, SLOT(AddMonitorByType(int)));
}
Exemple #5
0
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 构造函数
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
CEccGenTitle::CEccGenTitle(WContainerWidget *parent):
WTable(parent),
m_pTitle(NULL),
m_pTime(NULL),
m_pIcon(NULL),
m_pList(NULL)
{
    initForm();
}
Exemple #6
0
CSVBatchAdd::CSVBatchAdd(WContainerWidget *parent)
:WContainerWidget(parent)
{
    m_pList = NULL;
    m_pSelAll = NULL;
    m_pMonitorName = NULL;

    loadString();
    initForm();
}
Exemple #7
0
CSVReportSet::CSVReportSet(WContainerWidget * parent):
WContainerWidget(parent)
{
	IsShow = true;
	chgstr = ""; 
	loadString();
    initForm();

	PrintDebugString("Init ReportSet Finish\n");
}
Exemple #8
0
SVDeviceList::SVDeviceList(WContainerWidget * parent,string szIDCUser, string szIDCPwd):
WTable(parent)
{
    setStyleClass("t5");        // 样式表    
    m_pContentTable = NULL;     // 内容表
    m_pSubContent= NULL;        // 子内容表
    m_szIDCUser = szIDCUser;    // 
    m_szIDCPwd = szIDCPwd;      //
    initForm();                 // 初始化页面
}
Exemple #9
0
void frmSchetClienta::on_add_summa_clicked()
{
    QDate date_ = QDate::currentDate();
    if (ui->sertifikat->checkState())
        EditChetClienta(ID_client,N_CH_SERTIF,ui->summa->value(),date_.toString("dd.MM.yyyy"));
    else
        EditChetClienta(ID_client,N_CH_PRIHOD,ui->summa->value(),date_.toString("dd.MM.yyyy"));

    initForm(ID_client);
}
Exemple #10
0
bool BaseForm::init()
{
    if (!initForm() || !initHotkeys())
        return false;

    initConfig();

    m_logger.setProperty(SET_SEC_DIR, property(SET_SEC_DIR).toString());

    return true;
}
Exemple #11
0
CSVSortList::CSVSortList(WContainerWidget *parent, CUser *pUser, string szIDCUser, string szIDCPwd):
WTable(parent)
{
    m_szIDCUser = szIDCUser;
    m_szIDCPwd  = szIDCPwd;
    m_pSVUser   = pUser;

    m_pContent  = NULL;

    //loadString();
    initForm();
}
mySpaces::mySpaces(QWidget *parent) :
    QMainWindow(parent),
    mySpacesSettings(new MySettings()),
    WindowWidth(0)
{
    mySpacesSettings->applyProxySettings();
    setMinimumSize(320,465);
    QFile file(QLatin1String(":/myspaces/style/tabs.css"));
    file.open(QIODevice::ReadOnly);
    tabsStyle = QString(file.readAll());
    file.close();

    initForm();
}
AnagraficaAddDialog::AnagraficaAddDialog(QWidget *parent) :
    CustomInsertDialog(parent),
    ui(new Ui::AnagraficaAddDialog)
{
    qDebug() << "AnagraficaAddDialog()";
    ui->setupUi(this); 

    initForm();
    initComboBox();

    toggleAgente(false);
    ui->aziendaRB->setChecked(true);
    checkAzienda();
}
Exemple #14
0
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 函数 SVDependTable
// 说明 构造函数
// 参数 WContainerWidget * parent,父页面
// 返回 无
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
SVDependTable::SVDependTable(WContainerWidget * parent):
WTable(parent)
{
    m_pSub = NULL;
    m_pShow = NULL;
    m_pHide = NULL;
    m_pHideEdit = NULL;
    m_pHideButton = NULL;
    // 加载文字
    //loadString();
    // 样式表
    setStyleClass("t2");
    //初始化界面
    initForm();
}
Exemple #15
0
SVSEView::SVSEView(WContainerWidget *parent, CUser * pUser, string szIDCUser, string szIDCPwd):
WTable(parent)
{
    m_szIDCUser = szIDCUser;
    m_szIDCPwd = szIDCPwd;
    m_pSVUser = pUser;

    //m_pBtnHideDel = NULL;
    //m_pAdd = NULL;
    //m_pDel = NULL;
    //m_pDel_g = NULL;

    //loadString();
    initForm();
    setStyleClass("t1");
}
MainWindow::MainWindow(QWidget *parent) :
  QMainWindow(parent),
  ui(new Ui::MainWindow) {
  ui->setupUi(this);

  // workaround for buttonBox translation
  ui->buttonBox->button(QDialogButtonBox::Ok)->setText(tr("&Run"));
  ui->buttonBox->button(QDialogButtonBox::Close)->setText(tr("&Close"));

  // TODO(zdenop): get psm from cmd line ;-)

  setWindowTitle(QString(tr("Tesseract-OCR QT4 gui %1")).arg(ProductVersion));
  setWindowIcon(QIcon(":/Images/images/qt4tesseract.svg"));

  initForm();
  connect(ui->checkBoxName, SIGNAL(toggled(bool)), this,
          SLOT(setOutName(bool)));
  connect(ui->comboBoxForm, SIGNAL(currentIndexChanged(int)), this,
          SLOT(formatChanged(int)));
}
Exemple #17
0
CHZDLReport::CHZDLReport(TTime starttime, TTime endtime, WContainerWidget *parent):
	WTable(parent)
{
	m_starttime = starttime;
	m_endtime = endtime;

	//生成xml文件的名字
	szXSLReportName = "HZDL";
	szXSLReportName += starttime.Format();
	szXSLReportName += endtime.Format();
	replace_all_distinct(szXSLReportName, ":", "");
	replace_all_distinct(szXSLReportName, " ", "");
	replace_all_distinct(szXSLReportName, ".", "");
	replace_all_distinct(szXSLReportName, "-", "");
	replace_all_distinct(szXSLReportName, "\\", "");
	replace_all_distinct(szXSLReportName, "/", "");
	szXSLReportName += ".xls";

	initForm();
}
Exemple #18
0
SVConditionParam::SVConditionParam(WContainerWidget *parent,int nConditionType):
WTable(parent)
{
    m_pReturnList = NULL;
    m_pOperateList = NULL;
    m_pParam = NULL;
    m_pLabel = NULL;
    m_pConditionGroup = NULL;
    m_pConditionOR = NULL;
    m_pConditionAND = NULL;

    m_pHelpText = NULL;
    m_pConditionArea = NULL;

    m_bShowHelp = false;
    m_pOperate = NULL;

    m_nConditionType = nConditionType;
    loadCondition();
    initForm();
}
Exemple #19
0
PortViewer::PortViewer(QWidget* parent)
	: QDialog(parent),

	  ports((QSerialPortInfo::availablePorts())),

	  lbPort(new QLabel("Port:", this)),
	  cbPorts(new QComboBox(this)),
	  pbSelect(new QPushButton("Select", this)),

      lbManfLb(new QLabel("Manufacturer:", this)),
	  lbDescLb(new QLabel("Description:", this)),
      lbBusyLb(new QLabel("Busy:", this)),

	  lbManf(new QLabel(this)),
	  lbDesc(new QLabel(this)),
	  lbBusy(new QLabel(this))
{
	initForm();
	initWigets();
	initConnect();

	fillForm();
}
void HAssociations::setConnectionName(QString conn)
{
    sConn=conn;
    initForm();
    getClientsList();
}
Exemple #21
0
KexiFormView::KexiFormView(QWidget *parent, bool dbAware)
        : KexiDataAwareView(parent)
        , d(new Private)
{
    Q_UNUSED(dbAware);
    d->delayedFormContentsResizeOnShow = 0;
//! @todo remove?
    setSortedProperties(true);

    d->scrollView = new KexiFormScrollView(         // will be added to layout
        this, viewMode() == Kexi::DataViewMode);   // in KexiDataAwareView::init()

    initForm();

    if (viewMode() == Kexi::DesignViewMode) {
        connect(form(), SIGNAL(propertySetSwitched()), this, SLOT(slotPropertySetSwitched()));
        connect(form(), SIGNAL(modified(bool)), this, SLOT(setDirty(bool)));
        connect(d->scrollView, SIGNAL(resized()), this, SLOT(setFormModified()));

        connect(d->dbform, SIGNAL(handleDragMoveEvent(QDragMoveEvent*)),
                this, SLOT(slotHandleDragMoveEvent(QDragMoveEvent*)));
        connect(d->dbform, SIGNAL(handleDropEvent(QDropEvent*)),
                this, SLOT(slotHandleDropEvent(QDropEvent*)));

        // action stuff
        plugSharedAction("formpart_taborder", form(), SLOT(editTabOrder()));
        plugSharedAction("formpart_adjust_size", form(), SLOT(adjustWidgetSize()));
//! @todo add formpart_pixmap_collection action
//! @todo add formpart_connections action

        plugSharedAction("edit_copy", form(), SLOT(copyWidget()));
        plugSharedAction("edit_cut", form(), SLOT(cutWidget()));
        plugSharedAction("edit_paste", form(), SLOT(pasteWidget()));
        plugSharedAction("edit_delete", form(), SLOT(deleteWidget()));
        plugSharedAction("edit_select_all", form(), SLOT(selectAll()));
        plugSharedAction("formpart_clear_contents", form(), SLOT(clearWidgetContent()));
        plugSharedAction("edit_undo", form(), SLOT(undo()));
        plugSharedAction("edit_redo", form(), SLOT(redo()));

//! @todo add formpart_layout_menu action
        plugSharedAction("formpart_layout_hbox", form(), SLOT(layoutHBox()));
        plugSharedAction("formpart_layout_vbox", form(), SLOT(layoutVBox()));
        plugSharedAction("formpart_layout_grid", form(), SLOT(layoutGrid()));
#ifdef KEXI_SHOW_SPLITTER_WIDGET
        plugSharedAction("formpart_layout_hsplitter", form(), SLOT(layoutHSplitter()));
        plugSharedAction("formpart_layout_vsplitter", form(), SLOT(layoutVSplitter()));
#endif
        plugSharedAction("formpart_break_layout", form(), SLOT(breakLayout()));

        plugSharedAction("formpart_format_raise", form(), SLOT(bringWidgetToFront()));
        plugSharedAction("formpart_format_lower", form(), SLOT(sendWidgetToBack()));

        plugSharedAction("other_widgets_menu", form(), 0);
        setAvailable("other_widgets_menu", true);

        plugSharedAction("formpart_align_menu", form(), 0);
        plugSharedAction("formpart_align_to_left", form(), SLOT(alignWidgetsToLeft()));
        plugSharedAction("formpart_align_to_right", form(), SLOT(alignWidgetsToRight()));
        plugSharedAction("formpart_align_to_top", form(), SLOT(alignWidgetsToTop()));
        plugSharedAction("formpart_align_to_bottom", form(), SLOT(alignWidgetsToBottom()));
        plugSharedAction("formpart_align_to_grid", form(), SLOT(alignWidgetsToGrid()));

        plugSharedAction("formpart_adjust_size_menu", form(), 0);
        plugSharedAction("formpart_adjust_to_fit", form(), SLOT(adjustWidgetSize()));
        plugSharedAction("formpart_adjust_size_grid", form(), SLOT(adjustSizeToGrid()));
        plugSharedAction("formpart_adjust_height_small", form(),  SLOT(adjustHeightToSmall()));
        plugSharedAction("formpart_adjust_height_big", form(), SLOT(adjustHeightToBig()));
        plugSharedAction("formpart_adjust_width_small", form(), SLOT(adjustWidthToSmall()));
        plugSharedAction("formpart_adjust_width_big", form(), SLOT(adjustWidthToBig()));

        plugSharedAction("format_font", form(), SLOT(changeFont()));

        // - setup local actions
        QList<QAction*> viewActions;
        QAction* a;
        a = form()->action("edit_undo");
        a->setProperty("iconOnly", true);
        viewActions << a;
        a = form()->action("edit_redo");
        a->setProperty("iconOnly", true);
        viewActions << a;
        setViewActions(viewActions);
    }
Exemple #22
0
void frmSchetClienta::on_del_summa_clicked()
{
    QDate date_ = QDate::currentDate();
    EditChetClienta(ID_client,N_CH_SPISAN,ui->summa->value(),date_.toString("dd.MM.yyyy"));
    initForm(ID_client);
}
DownloadWidget::DownloadWidget(QWidget *parent)
    :AbstractTabWidget(parent)
{
    initForm();
    initConnect();
}