Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
5667ca14
Kaydet (Commit)
5667ca14
authored
Şub 10, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert add relationships dialog to .ui
Change-Id: I984ff7e4fca6e7cd3529e921383bca4e6f2a464e
üst
aea6aab9
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
267 additions
and
233 deletions
+267
-233
AllLangResTarget_dbu.mk
dbaccess/AllLangResTarget_dbu.mk
+0
-1
UIConfig_dbaccess.mk
dbaccess/UIConfig_dbaccess.mk
+1
-0
dbaccess_helpid.hrc
dbaccess/inc/dbaccess_helpid.hrc
+0
-8
AutoControls.src
dbaccess/source/ui/dlg/AutoControls.src
+11
-0
adtabdlg.cxx
dbaccess/source/ui/dlg/adtabdlg.cxx
+52
-66
adtabdlg.hrc
dbaccess/source/ui/dlg/adtabdlg.hrc
+0
-39
adtabdlg.src
dbaccess/source/ui/dlg/adtabdlg.src
+0
-97
adtabdlg.hxx
dbaccess/source/ui/inc/adtabdlg.hxx
+11
-20
dbu_dlg.hrc
dbaccess/source/ui/inc/dbu_dlg.hrc
+2
-2
tablesjoindialog.ui
dbaccess/uiconfig/ui/tablesjoindialog.ui
+190
-0
No files found.
dbaccess/AllLangResTarget_dbu.mk
Dosyayı görüntüle @
5667ca14
...
@@ -37,7 +37,6 @@ $(eval $(call gb_SrsTarget_add_files,dbaccess/dbu,\
...
@@ -37,7 +37,6 @@ $(eval $(call gb_SrsTarget_add_files,dbaccess/dbu,\
dbaccess/source/ui/control/tabletree.src \
dbaccess/source/ui/control/tabletree.src \
dbaccess/source/ui/control/undosqledit.src \
dbaccess/source/ui/control/undosqledit.src \
dbaccess/source/ui/dlg/admincontrols.src \
dbaccess/source/ui/dlg/admincontrols.src \
dbaccess/source/ui/dlg/adtabdlg.src \
dbaccess/source/ui/dlg/AutoControls.src \
dbaccess/source/ui/dlg/AutoControls.src \
dbaccess/source/ui/dlg/CollectionView.src \
dbaccess/source/ui/dlg/CollectionView.src \
dbaccess/source/ui/dlg/ConnectionPage.src \
dbaccess/source/ui/dlg/ConnectionPage.src \
...
...
dbaccess/UIConfig_dbaccess.mk
Dosyayı görüntüle @
5667ca14
...
@@ -27,6 +27,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
...
@@ -27,6 +27,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
dbaccess/uiconfig/ui/sortdialog \
dbaccess/uiconfig/ui/sortdialog \
dbaccess/uiconfig/ui/tablesfilterdialog \
dbaccess/uiconfig/ui/tablesfilterdialog \
dbaccess/uiconfig/ui/tablesfilterpage \
dbaccess/uiconfig/ui/tablesfilterpage \
dbaccess/uiconfig/ui/tablesjoindialog \
dbaccess/uiconfig/ui/useradmindialog \
dbaccess/uiconfig/ui/useradmindialog \
))
))
...
...
dbaccess/inc/dbaccess_helpid.hrc
Dosyayı görüntüle @
5667ca14
...
@@ -88,12 +88,9 @@
...
@@ -88,12 +88,9 @@
#define HID_DSADMIN_PAGE_ADO "DBACCESS_HID_DSADMIN_PAGE_ADO"
#define HID_DSADMIN_PAGE_ADO "DBACCESS_HID_DSADMIN_PAGE_ADO"
#define HID_JOINSH_ADDTAB_CLOSE "DBACCESS_HID_JOINSH_ADDTAB_CLOSE"
#define HID_JOINSH_ADDTAB_TABLELIST "DBACCESS_HID_JOINSH_ADDTAB_TABLELIST"
#define HID_CTL_QRYDGNTAB "DBACCESS_HID_CTL_QRYDGNTAB"
#define HID_CTL_QRYDGNTAB "DBACCESS_HID_CTL_QRYDGNTAB"
#define HID_DLG_QRY_JOIN "DBACCESS_HID_DLG_QRY_JOIN"
#define HID_DLG_QRY_JOIN "DBACCESS_HID_DLG_QRY_JOIN"
#define HID_DLG_QRY_JOINTYPE "DBACCESS_HID_DLG_QRY_JOINTYPE"
#define HID_DLG_QRY_JOINTYPE "DBACCESS_HID_DLG_QRY_JOINTYPE"
#define HID_JOINSH_ADDTAB_QUERYLIST "DBACCESS_HID_JOINSH_ADDTAB_QUERYLIST"
#define HID_DLG_QRY_HELPTEXT "DBACCESS_HID_DLG_QRY_HELPTEXT"
#define HID_DLG_QRY_HELPTEXT "DBACCESS_HID_DLG_QRY_HELPTEXT"
#define HID_CTL_QRYDGNCRIT "DBACCESS_HID_CTL_QRYDGNCRIT"
#define HID_CTL_QRYDGNCRIT "DBACCESS_HID_CTL_QRYDGNCRIT"
...
@@ -376,11 +373,6 @@
...
@@ -376,11 +373,6 @@
#define HID_DLG_QRY_JOIN_CONTROL "DBACCESS_HID_DLG_QRY_JOIN_CONTROL"
#define HID_DLG_QRY_JOIN_CONTROL "DBACCESS_HID_DLG_QRY_JOIN_CONTROL"
#define HID_MACRO_MIGRATION_BACKUP_LOCATION "DBACCESS_HID_MACRO_MIGRATION_BACKUP_LOCATION"
#define HID_MACRO_MIGRATION_BACKUP_LOCATION "DBACCESS_HID_MACRO_MIGRATION_BACKUP_LOCATION"
// this one below have hid in number space HID_SBA_START
#define HID_DLG_JOIN_TABADD "DBACCESS_HID_DLG_JOIN_TABADD"
#endif // _DBA_DBACCESS_HELPID_HRC_
#endif // _DBA_DBACCESS_HELPID_HRC_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dbaccess/source/ui/dlg/AutoControls.src
Dosyayı görüntüle @
5667ca14
...
@@ -79,6 +79,17 @@ String STR_THUNDERBIRD_PROFILE_NAME
...
@@ -79,6 +79,17 @@ String STR_THUNDERBIRD_PROFILE_NAME
Text[ en-US ] = "~Thunderbird profile name";
Text[ en-US ] = "~Thunderbird profile name";
};
};
String STR_ADD_TABLES
{
Text [ en-US ] = "Add Tables";
};
String STR_ADD_TABLE_OR_QUERY
{
Text [ en-US ] = "Add Table or Query" ;
};
// -------------------------------------------------------------------------------------------------
// -------------------------------------------------------------------------------------------------
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dbaccess/source/ui/dlg/adtabdlg.cxx
Dosyayı görüntüle @
5667ca14
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
*/
*/
#include "adtabdlg.hxx"
#include "adtabdlg.hxx"
#include "adtabdlg.hrc"
#include "sqlmessage.hxx"
#include "sqlmessage.hxx"
#include <tools/debug.hxx>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
#include <tools/diagnose_ex.h>
...
@@ -316,61 +315,49 @@ bool QueryListFacade::isLeafSelected() const
...
@@ -316,61 +315,49 @@ bool QueryListFacade::isLeafSelected() const
}
}
OAddTableDlg
::
OAddTableDlg
(
Window
*
pParent
,
IAddTableDialogContext
&
_rContext
)
OAddTableDlg
::
OAddTableDlg
(
Window
*
pParent
,
IAddTableDialogContext
&
_rContext
)
:
ModelessDialog
(
pParent
,
ModuleRes
(
DLG_JOIN_TABADD
)
)
:
ModelessDialog
(
pParent
,
"TablesJoinDialog"
,
"dbaccess/ui/tablesjoindialog.ui"
)
,
m_aCaseTables
(
this
,
ModuleRes
(
RB_CASE_TABLES
)
)
,
m_rContext
(
_rContext
)
,
m_aCaseQueries
(
this
,
ModuleRes
(
RB_CASE_QUERIES
)
)
,
m_aTableList
(
this
,
ModuleRes
(
LB_TABLE_OR_QUERY
),
sal_False
)
,
m_aQueryList
(
this
,
ModuleRes
(
LB_TABLE_OR_QUERY
)
)
,
aAddButton
(
this
,
ModuleRes
(
PB_ADDTABLE
)
)
,
aCloseButton
(
this
,
ModuleRes
(
PB_CLOSE
)
)
,
aHelpButton
(
this
,
ModuleRes
(
PB_HELP
)
)
,
m_rContext
(
_rContext
)
{
{
// the Close-Button already has a standard help text which should not
get
(
m_pCaseTables
,
"tables"
);
// occur here. Therefore, resetting the text and giving a new ID
get
(
m_pCaseQueries
,
"queries"
);
aCloseButton
.
SetHelpText
(
OUString
());
aCloseButton
.
SetHelpId
(
HID_JOINSH_ADDTAB_CLOSE
);
get
(
m_pTableList
,
"tablelist"
);
get
(
m_pQueryList
,
"querylist"
);
m_aTableList
.
SetHelpId
(
HID_JOINSH_ADDTAB_TABLELIST
);
Size
aSize
(
LogicToPixel
(
Size
(
106
,
122
),
MAP_APPFONT
));
m_aQueryList
.
SetHelpId
(
HID_JOINSH_ADDTAB_QUERYLIST
);
m_pTableList
->
set_height_request
(
aSize
.
Height
());
m_pTableList
->
set_width_request
(
aSize
.
Width
());
m_aCaseTables
.
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
OnTypeSelected
)
);
get
(
m_pQueryList
,
"querylist"
);
m_aCaseQueries
.
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
OnTypeSelected
)
);
m_pQueryList
->
set_height_request
(
aSize
.
Height
());
aAddButton
.
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
AddClickHdl
)
);
m_pQueryList
->
set_width_request
(
aSize
.
Width
());
aCloseButton
.
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
CloseClickHdl
)
);
m_aTableList
.
SetDoubleClickHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListDoubleClickHdl
)
);
get
(
m_pAddButton
,
"add"
);
m_aTableList
.
SetSelectHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListSelectHdl
)
);
get
(
m_pCloseButton
,
"close"
);
m_aQueryList
.
SetDoubleClickHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListDoubleClickHdl
)
);
m_aQueryList
.
SetSelectHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListSelectHdl
)
);
m_pCaseTables
->
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
OnTypeSelected
)
);
m_pCaseQueries
->
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
OnTypeSelected
)
);
m_aTableList
.
EnableInplaceEditing
(
false
);
m_pAddButton
->
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
AddClickHdl
)
);
m_aTableList
.
SetStyle
(
m_aTableList
.
GetStyle
()
|
WB_BORDER
|
WB_HASLINES
|
WB_HASBUTTONS
|
WB_HASBUTTONSATROOT
|
WB_HASLINESATROOT
|
WB_SORT
|
WB_HSCROLL
);
m_pCloseButton
->
SetClickHdl
(
LINK
(
this
,
OAddTableDlg
,
CloseClickHdl
)
);
m_aTableList
.
EnableCheckButton
(
NULL
);
// do not show any buttons
m_pTableList
->
SetDoubleClickHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListDoubleClickHdl
)
);
m_aTableList
.
SetSelectionMode
(
SINGLE_SELECTION
);
m_pTableList
->
SetSelectHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListSelectHdl
)
);
m_aTableList
.
notifyHiContrastChanged
();
m_pQueryList
->
SetDoubleClickHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListDoubleClickHdl
)
);
m_aTableList
.
suppressEmptyFolders
();
m_pQueryList
->
SetSelectHdl
(
LINK
(
this
,
OAddTableDlg
,
TableListSelectHdl
)
);
m_aQueryList
.
EnableInplaceEditing
(
false
);
m_pTableList
->
EnableInplaceEditing
(
false
);
m_aQueryList
.
SetSelectionMode
(
SINGLE_SELECTION
);
m_pTableList
->
SetStyle
(
m_pTableList
->
GetStyle
()
|
WB_BORDER
|
WB_HASLINES
|
WB_HASBUTTONS
|
WB_HASBUTTONSATROOT
|
WB_HASLINESATROOT
|
WB_SORT
|
WB_HSCROLL
);
m_pTableList
->
EnableCheckButton
(
NULL
);
// do not show any buttons
m_pTableList
->
SetSelectionMode
(
SINGLE_SELECTION
);
m_pTableList
->
notifyHiContrastChanged
();
m_pTableList
->
suppressEmptyFolders
();
m_pQueryList
->
EnableInplaceEditing
(
false
);
m_pQueryList
->
SetSelectionMode
(
SINGLE_SELECTION
);
if
(
!
m_rContext
.
allowQueries
()
)
if
(
!
m_rContext
.
allowQueries
()
)
{
{
m_aCaseTables
.
Hide
();
m_pCaseTables
->
Hide
();
m_aCaseQueries
.
Hide
();
m_pCaseQueries
->
Hide
();
long
nPixelDiff
=
m_aTableList
.
GetPosPixel
().
Y
()
-
m_aCaseTables
.
GetPosPixel
().
Y
();
Point
aListPos
(
m_aTableList
.
GetPosPixel
()
);
aListPos
.
Y
()
-=
nPixelDiff
;
Size
aListSize
(
m_aTableList
.
GetSizePixel
()
);
aListSize
.
Height
()
+=
nPixelDiff
;
m_aTableList
.
SetPosSizePixel
(
aListPos
,
aListSize
);
}
}
FreeResource
();
SetText
(
getDialogTitleForContext
(
m_rContext
)
);
SetText
(
getDialogTitleForContext
(
m_rContext
)
);
}
}
...
@@ -384,36 +371,36 @@ void OAddTableDlg::impl_switchTo( ObjectList _eList )
...
@@ -384,36 +371,36 @@ void OAddTableDlg::impl_switchTo( ObjectList _eList )
switch
(
_eList
)
switch
(
_eList
)
{
{
case
Tables
:
case
Tables
:
m_
aTableList
.
Show
(
true
);
m_aCaseTables
.
Check
(
sal_True
);
m_
pTableList
->
Show
(
true
);
m_pCaseTables
->
Check
(
sal_True
);
m_
aQueryList
.
Show
(
false
);
m_aCaseQueries
.
Check
(
sal_False
);
m_
pQueryList
->
Show
(
false
);
m_pCaseQueries
->
Check
(
sal_False
);
m_
pCurrentList
.
reset
(
new
TableListFacade
(
m_a
TableList
,
m_rContext
.
getConnection
()
)
);
m_
xCurrentList
.
reset
(
new
TableListFacade
(
*
m_p
TableList
,
m_rContext
.
getConnection
()
)
);
m_
aTableList
.
GrabFocus
();
m_
pTableList
->
GrabFocus
();
break
;
break
;
case
Queries
:
case
Queries
:
m_
aTableList
.
Show
(
false
);
m_aCaseTables
.
Check
(
sal_False
);
m_
pTableList
->
Show
(
false
);
m_pCaseTables
->
Check
(
sal_False
);
m_
aQueryList
.
Show
(
true
);
m_aCaseQueries
.
Check
(
sal_True
);
m_
pQueryList
->
Show
(
true
);
m_pCaseQueries
->
Check
(
sal_True
);
m_
pCurrentList
.
reset
(
new
QueryListFacade
(
m_a
QueryList
,
m_rContext
.
getConnection
()
)
);
m_
xCurrentList
.
reset
(
new
QueryListFacade
(
*
m_p
QueryList
,
m_rContext
.
getConnection
()
)
);
m_
aQueryList
.
GrabFocus
();
m_
pQueryList
->
GrabFocus
();
break
;
break
;
}
}
m_
p
CurrentList
->
updateTableObjectList
(
m_rContext
.
allowViews
()
);
m_
x
CurrentList
->
updateTableObjectList
(
m_rContext
.
allowViews
()
);
}
}
void
OAddTableDlg
::
Update
()
void
OAddTableDlg
::
Update
()
{
{
if
(
!
m_
p
CurrentList
.
get
()
)
if
(
!
m_
x
CurrentList
.
get
()
)
impl_switchTo
(
Tables
);
impl_switchTo
(
Tables
);
else
else
m_
p
CurrentList
->
updateTableObjectList
(
m_rContext
.
allowViews
()
);
m_
x
CurrentList
->
updateTableObjectList
(
m_rContext
.
allowViews
()
);
}
}
void
OAddTableDlg
::
impl_addTable
()
void
OAddTableDlg
::
impl_addTable
()
{
{
if
(
m_
p
CurrentList
->
isLeafSelected
()
)
if
(
m_
x
CurrentList
->
isLeafSelected
()
)
{
{
OUString
sSelectedName
,
sAliasName
;
OUString
sSelectedName
,
sAliasName
;
sSelectedName
=
m_
p
CurrentList
->
getSelectedName
(
sAliasName
);
sSelectedName
=
m_
x
CurrentList
->
getSelectedName
(
sAliasName
);
m_rContext
.
addTableWindow
(
sSelectedName
,
sAliasName
);
m_rContext
.
addTableWindow
(
sSelectedName
,
sAliasName
);
}
}
...
@@ -440,7 +427,7 @@ IMPL_LINK( OAddTableDlg, TableListDoubleClickHdl, void*, /*EMPTY_ARG*/ )
...
@@ -440,7 +427,7 @@ IMPL_LINK( OAddTableDlg, TableListDoubleClickHdl, void*, /*EMPTY_ARG*/ )
IMPL_LINK
(
OAddTableDlg
,
TableListSelectHdl
,
void
*
,
/*EMPTY_ARG*/
)
IMPL_LINK
(
OAddTableDlg
,
TableListSelectHdl
,
void
*
,
/*EMPTY_ARG*/
)
{
{
aAddButton
.
Enable
(
m_p
CurrentList
->
isLeafSelected
()
);
m_pAddButton
->
Enable
(
m_x
CurrentList
->
isLeafSelected
()
);
return
0
;
return
0
;
}
}
...
@@ -451,7 +438,7 @@ IMPL_LINK( OAddTableDlg, CloseClickHdl, Button*, /*pButton*/ )
...
@@ -451,7 +438,7 @@ IMPL_LINK( OAddTableDlg, CloseClickHdl, Button*, /*pButton*/ )
IMPL_LINK
(
OAddTableDlg
,
OnTypeSelected
,
void
*
,
/*EMPTY_ARG*/
)
IMPL_LINK
(
OAddTableDlg
,
OnTypeSelected
,
void
*
,
/*EMPTY_ARG*/
)
{
{
if
(
m_
aCaseTables
.
IsChecked
()
)
if
(
m_
pCaseTables
->
IsChecked
()
)
impl_switchTo
(
Tables
);
impl_switchTo
(
Tables
);
else
else
impl_switchTo
(
Queries
);
impl_switchTo
(
Queries
);
...
@@ -473,7 +460,6 @@ OUString OAddTableDlg::getDialogTitleForContext( IAddTableDialogContext& _rConte
...
@@ -473,7 +460,6 @@ OUString OAddTableDlg::getDialogTitleForContext( IAddTableDialogContext& _rConte
{
{
OUString
sTitle
;
OUString
sTitle
;
::
svt
::
OLocalResourceAccess
aLocalRes
(
ModuleRes
(
DLG_JOIN_TABADD
),
RSC_MODELESSDIALOG
);
if
(
_rContext
.
allowQueries
()
)
if
(
_rContext
.
allowQueries
()
)
sTitle
=
ModuleRes
(
STR_ADD_TABLE_OR_QUERY
);
sTitle
=
ModuleRes
(
STR_ADD_TABLE_OR_QUERY
);
else
else
...
...
dbaccess/source/ui/dlg/adtabdlg.hrc
deleted
100644 → 0
Dosyayı görüntüle @
aea6aab9
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef DBAUI_ADTABDLG_HRC
#define DBAUI_ADTABDLG_HRC
#define LB_TABLE_OR_QUERY 1
#define LB_DATABASE 2
#define FT_DATABASE 1
#define PB_ADDTABLE 1
#define PB_CLOSE 2
#define PB_HELP 3
#define RB_CASE_TABLES 1
#define RB_CASE_QUERIES 2
#define STR_ADD_TABLES 1
#define STR_ADD_TABLE_OR_QUERY 2
#endif // DBAUI_ADTABDLG_HRC
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dbaccess/source/ui/dlg/adtabdlg.src
deleted
100644 → 0
Dosyayı görüntüle @
aea6aab9
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "adtabdlg.hrc"
#include "dbaccess_helpid.hrc"
#include "dbu_dlg.hrc"
ModelessDialog DLG_JOIN_TABADD
{
OutputSize = TRUE ;
SVLook = TRUE ;
HelpID = HID_DLG_JOIN_TABADD ;
Size = MAP_APPFONT ( 178 , 147 ) ;
Moveable = TRUE ;
Closeable = TRUE ;
Hide = TRUE ;
RadioButton RB_CASE_TABLES
{
HelpID = "dbaccess:RadioButton:DLG_JOIN_TABADD:RB_CASE_TABLES";
Pos = MAP_APPFONT( 6, 6 );
Size = MAP_APPFONT( 50, 8 );
Text [ en-US ] = "Tables";
};
RadioButton RB_CASE_QUERIES
{
HelpID = "dbaccess:RadioButton:DLG_JOIN_TABADD:RB_CASE_QUERIES";
Pos = MAP_APPFONT( 62, 6 );
Size = MAP_APPFONT( 50, 8 );
Text [ en-US ] = "Queries";
};
Control LB_TABLE_OR_QUERY
{
Border = TRUE ;
Pos = MAP_APPFONT ( 6 , 18 ) ;
Size = MAP_APPFONT ( 106 , 122 ) ;
TabStop = TRUE ;
Hide = TRUE;
Group = TRUE;
};
PushButton PB_ADDTABLE
{
HelpID = "dbaccess:PushButton:DLG_JOIN_TABADD:PB_ADDTABLE";
Pos = MAP_APPFONT ( 123 , 6 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Add" ;
TabStop = TRUE ;
DefButton = TRUE ;
};
CancelButton PB_CLOSE
{
Pos = MAP_APPFONT ( 123 , 22 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
HelpId = HID_JOINSH_ADDTAB_CLOSE;
Text [ en-US ] = "~Close" ;
TabStop = TRUE ;
};
HelpButton PB_HELP
{
Pos = MAP_APPFONT ( 123 , 43 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
};
String STR_ADD_TABLES
{
Text [ en-US ] = "Add Tables";
};
String STR_ADD_TABLE_OR_QUERY
{
Text [ en-US ] = "Add Table or Query" ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dbaccess/source/ui/inc/adtabdlg.hxx
Dosyayı görüntüle @
5667ca14
...
@@ -19,20 +19,14 @@
...
@@ -19,20 +19,14 @@
#ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_ADTABDLG_HXX
#ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_ADTABDLG_HXX
#define INCLUDED_DBACCESS_SOURCE_UI_INC_ADTABDLG_HXX
#define INCLUDED_DBACCESS_SOURCE_UI_INC_ADTABDLG_HXX
#include <boost/scoped_ptr.hpp>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <vcl/dialog.hxx>
#include <vcl/dialog.hxx>
#include <vcl/button.hxx>
#include <vcl/button.hxx>
#include <vcl/fixed.hxx>
#include <vcl/fixed.hxx>
#include <com/sun/star/sdbc/XConnection.hpp>
#include <vcl/lstbox.hxx>
#include <vcl/lstbox.hxx>
#include "tabletree.hxx"
#include "tabletree.hxx"
#include <memory>
namespace
dbaui
namespace
dbaui
{
{
/** unifies the access to a list of table/query objects
/** unifies the access to a list of table/query objects
...
@@ -64,20 +58,17 @@ namespace dbaui
...
@@ -64,20 +58,17 @@ namespace dbaui
class
OAddTableDlg
:
public
ModelessDialog
class
OAddTableDlg
:
public
ModelessDialog
{
{
RadioButton
m_a
CaseTables
;
RadioButton
*
m_p
CaseTables
;
RadioButton
m_a
CaseQueries
;
RadioButton
*
m_p
CaseQueries
;
OTableTreeListBox
m_aTableList
;
OTableTreeListBox
*
m_pTableList
;
SvTreeListBox
m_aQueryList
;
SvTreeListBox
*
m_pQueryList
;
::
std
::
auto_ptr
<
TableObjectListFacade
>
boost
::
scoped_ptr
<
TableObjectListFacade
>
m_xCurrentList
;
m_pCurrentList
;
PushButton
aAddButton
;
PushButton
*
m_pAddButton
;
CancelButton
aCloseButton
;
PushButton
*
m_pCloseButton
;
HelpButton
aHelpButton
;
IAddTableDialogContext
&
IAddTableDialogContext
&
m_rContext
;
m_rContext
;
DECL_LINK
(
AddClickHdl
,
Button
*
);
DECL_LINK
(
AddClickHdl
,
Button
*
);
DECL_LINK
(
CloseClickHdl
,
Button
*
);
DECL_LINK
(
CloseClickHdl
,
Button
*
);
...
@@ -91,7 +82,7 @@ namespace dbaui
...
@@ -91,7 +82,7 @@ namespace dbaui
IAddTableDialogContext
&
_rContext
);
IAddTableDialogContext
&
_rContext
);
virtual
~
OAddTableDlg
();
virtual
~
OAddTableDlg
();
void
DetermineAddTable
()
{
aAddButton
.
Enable
(
impl_isAddAllowed
()
);
}
void
DetermineAddTable
()
{
m_pAddButton
->
Enable
(
impl_isAddAllowed
()
);
}
void
Update
();
void
Update
();
static
OUString
getDialogTitleForContext
(
static
OUString
getDialogTitleForContext
(
...
...
dbaccess/source/ui/inc/dbu_dlg.hrc
Dosyayı görüntüle @
5667ca14
...
@@ -69,8 +69,8 @@
...
@@ -69,8 +69,8 @@
// FREE
// FREE
#define STR_COMMAND_EXECUTED_SUCCESSFULLY RID_STR_DLG_START + 23
#define STR_COMMAND_EXECUTED_SUCCESSFULLY RID_STR_DLG_START + 23
#define STR_DIRECTSQL_CONNECTIONLOST RID_STR_DLG_START + 24
#define STR_DIRECTSQL_CONNECTIONLOST RID_STR_DLG_START + 24
// FREE
#define STR_ADD_TABLES RID_STR_DLG_START + 25
// FREE
#define STR_ADD_TABLE_OR_QUERY RID_STR_DLG_START + 26
#define STR_USERADMIN_NOT_AVAILABLE RID_STR_DLG_START + 27
#define STR_USERADMIN_NOT_AVAILABLE RID_STR_DLG_START + 27
#define STR_TAB_INDEX_SORTORDER RID_STR_DLG_START + 28
#define STR_TAB_INDEX_SORTORDER RID_STR_DLG_START + 28
#define STR_TAB_INDEX_FIELD RID_STR_DLG_START + 29
#define STR_TAB_INDEX_FIELD RID_STR_DLG_START + 29
...
...
dbaccess/uiconfig/ui/tablesjoindialog.ui
0 → 100644
Dosyayı görüntüle @
5667ca14
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.0"
/>
<!-- interface-requires LibreOffice 1.0 -->
<object
class=
"GtkDialog"
id=
"TablesJoinDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"type_hint"
>
dialog
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"dialog-vbox1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"dialog-action_area1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkButton"
id=
"add"
>
<property
name=
"label"
>
gtk-add
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"can_default"
>
True
</property>
<property
name=
"has_default"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"close"
>
<property
name=
"label"
>
gtk-close
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"help"
>
<property
name=
"label"
>
gtk-help
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkGrid"
id=
"grid1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"row_spacing"
>
6
</property>
<child>
<object
class=
"GtkRadioButton"
id=
"tables"
>
<property
name=
"label"
translatable=
"yes"
>
Tables
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"active"
>
True
</property>
<property
name=
"draw_indicator"
>
True
</property>
<property
name=
"group"
>
queries
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkRadioButton"
id=
"queries"
>
<property
name=
"label"
translatable=
"yes"
>
Queries
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"xalign"
>
0.0099999997764825821
</property>
<property
name=
"draw_indicator"
>
True
</property>
<property
name=
"group"
>
tables
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"dbulo-OTableTreeListBox"
id=
"tablelist:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"OTableTreeListBox-selection3"
/>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
2
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"title"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"no_show_all"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Add Tables
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
4
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkLabel"
id=
"alttitle"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"no_show_all"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Add Table or Query
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
5
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"svtlo-SvTreeListBox"
id=
"querylist:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"Tree List-selection3"
/>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
3
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget
response=
"0"
>
add
</action-widget>
<action-widget
response=
"0"
>
close
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
</action-widgets>
</object>
</interface>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment