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
a9dc79b3
Kaydet (Commit)
a9dc79b3
authored
Nis 01, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert sql exception dialog to .ui
Change-Id: I57878f8c9fcae09e3904c4e316ffa6277625b960
üst
6bf6c90b
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
198 additions
and
148 deletions
+198
-148
UIConfig_dbaccess.mk
dbaccess/UIConfig_dbaccess.mk
+1
-0
dbaccess_helpid.hrc
dbaccess/inc/dbaccess_helpid.hrc
+0
-2
sqlmessage.cxx
dbaccess/source/ui/dlg/sqlmessage.cxx
+24
-35
sqlmessage.hrc
dbaccess/source/ui/dlg/sqlmessage.hrc
+0
-44
sqlmessage.src
dbaccess/source/ui/dlg/sqlmessage.src
+6
-63
dbu_dlg.hrc
dbaccess/source/ui/inc/dbu_dlg.hrc
+2
-2
dbu_resource.hrc
dbaccess/source/ui/inc/dbu_resource.hrc
+0
-2
sqlexception.ui
dbaccess/uiconfig/ui/sqlexception.ui
+165
-0
No files found.
dbaccess/UIConfig_dbaccess.mk
Dosyayı görüntüle @
a9dc79b3
...
...
@@ -30,6 +30,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \
dbaccess/uiconfig/ui/savedialog \
dbaccess/uiconfig/ui/specialsettingspage \
dbaccess/uiconfig/ui/sortdialog \
dbaccess/uiconfig/ui/sqlexception \
dbaccess/uiconfig/ui/tablesfilterdialog \
dbaccess/uiconfig/ui/tablesfilterpage \
dbaccess/uiconfig/ui/tablesjoindialog \
...
...
dbaccess/inc/dbaccess_helpid.hrc
Dosyayı görüntüle @
a9dc79b3
...
...
@@ -144,8 +144,6 @@
#define HID_BROWSER_TABLE_CREATE_DESIGN "DBACCESS_HID_BROWSER_TABLE_CREATE_DESIGN"
#define HID_BROWSER_TABLE_EDIT "DBACCESS_HID_BROWSER_TABLE_EDIT"
#define HID_BROWSER_TABLE_DELETE "DBACCESS_HID_BROWSER_TABLE_DELETE"
#define HID_SQLERROR_EXCHAIN_ERRORS "DBACCESS_HID_SQLERROR_EXCHAIN_ERRORS"
#define HID_SQLERROR_EXCHAIN_TEXT "DBACCESS_HID_SQLERROR_EXCHAIN_TEXT"
#define HID_TAB_WIZ_COLUMN_SELECT "DBACCESS_HID_TAB_WIZ_COLUMN_SELECT"
#define HID_TAB_WIZ_TYPE_SELECT "DBACCESS_HID_TAB_WIZ_TYPE_SELECT"
#define HID_TAB_NAMEMATCHING_COLS_AVAIL "DBACCESS_HID_TAB_NAMEMATCHING_COLS_AVAIL"
...
...
dbaccess/source/ui/dlg/sqlmessage.cxx
Dosyayı görüntüle @
a9dc79b3
...
...
@@ -19,7 +19,6 @@
#include "sqlmessage.hxx"
#include "dbu_dlg.hrc"
#include "sqlmessage.hrc"
#include <com/sun/star/sdbc/SQLException.hpp>
#include <com/sun/star/sdb/SQLContext.hpp>
#include <vcl/fixed.hxx>
...
...
@@ -293,12 +292,8 @@ namespace
class
OExceptionChainDialog
:
public
ModalDialog
{
FixedLine
m_aFrame
;
FixedText
m_aListLabel
;
SvTreeListBox
m_aExceptionList
;
FixedText
m_aDescLabel
;
MultiLineEdit
m_aExceptionText
;
OKButton
m_aOK
;
SvTreeListBox
*
m_pExceptionList
;
VclMultiLineEdit
*
m_pExceptionText
;
OUString
m_sStatusLabel
;
OUString
m_sErrorCodeLabel
;
...
...
@@ -307,36 +302,34 @@ class OExceptionChainDialog : public ModalDialog
public
:
OExceptionChainDialog
(
Window
*
pParent
,
const
ExceptionDisplayChain
&
_rExceptions
);
~
OExceptionChainDialog
();
protected
:
DECL_LINK
(
OnExceptionSelected
,
void
*
);
};
OExceptionChainDialog
::
OExceptionChainDialog
(
Window
*
pParent
,
const
ExceptionDisplayChain
&
_rExceptions
)
:
ModalDialog
(
pParent
,
ModuleRes
(
DLG_SQLEXCEPTIONCHAIN
))
,
m_aFrame
(
this
,
ModuleRes
(
FL_DETAILS
))
,
m_aListLabel
(
this
,
ModuleRes
(
FT_ERRORLIST
))
,
m_aExceptionList
(
this
,
ModuleRes
(
CTL_ERRORLIST
))
,
m_aDescLabel
(
this
,
ModuleRes
(
FT_DESCRIPTION
))
,
m_aExceptionText
(
this
,
ModuleRes
(
ME_DESCRIPTION
))
,
m_aOK
(
this
,
ModuleRes
(
PB_OK
))
,
m_aExceptions
(
_rExceptions
)
OExceptionChainDialog
::
OExceptionChainDialog
(
Window
*
pParent
,
const
ExceptionDisplayChain
&
_rExceptions
)
:
ModalDialog
(
pParent
,
"SQLExceptionDialog"
,
"dbaccess/ui/sqlexception.ui"
)
,
m_aExceptions
(
_rExceptions
)
{
get
(
m_pExceptionList
,
"list"
);
Size
aListSize
(
LogicToPixel
(
Size
(
85
,
93
),
MAP_APPFONT
));
m_pExceptionList
->
set_width_request
(
aListSize
.
Width
());
m_pExceptionList
->
set_height_request
(
aListSize
.
Height
());
get
(
m_pExceptionText
,
"description"
);
Size
aTextSize
(
LogicToPixel
(
Size
(
125
,
93
),
MAP_APPFONT
));
m_pExceptionText
->
set_width_request
(
aTextSize
.
Width
());
m_pExceptionText
->
set_height_request
(
aTextSize
.
Height
());
m_sStatusLabel
=
ModuleRes
(
STR_EXCEPTION_STATUS
);
m_sErrorCodeLabel
=
ModuleRes
(
STR_EXCEPTION_ERRORCODE
);
FreeResource
();
m_pExceptionList
->
SetSelectionMode
(
SINGLE_SELECTION
);
m_pExceptionList
->
SetDragDropMode
(
0
);
m_pExceptionList
->
EnableInplaceEditing
(
false
);
m_pExceptionList
->
SetStyle
(
m_pExceptionList
->
GetStyle
()
|
WB_HASLINES
|
WB_HASBUTTONS
|
WB_HASBUTTONSATROOT
|
WB_HSCROLL
);
m_aExceptionList
.
SetSelectionMode
(
SINGLE_SELECTION
);
m_aExceptionList
.
SetDragDropMode
(
0
);
m_aExceptionList
.
EnableInplaceEditing
(
false
);
m_aExceptionList
.
SetStyle
(
m_aExceptionList
.
GetStyle
()
|
WB_HASLINES
|
WB_HASBUTTONS
|
WB_HASBUTTONSATROOT
|
WB_HSCROLL
);
m_aExceptionList
.
SetSelectHdl
(
LINK
(
this
,
OExceptionChainDialog
,
OnExceptionSelected
));
m_aExceptionList
.
SetNodeDefaultImages
(
);
m_aExceptionText
.
SetReadOnly
(
true
);
m_pExceptionList
->
SetSelectHdl
(
LINK
(
this
,
OExceptionChainDialog
,
OnExceptionSelected
));
m_pExceptionList
->
SetNodeDefaultImages
(
);
bool
bHave22018
=
false
;
size_t
elementPos
=
0
;
...
...
@@ -346,7 +339,7 @@ OExceptionChainDialog::OExceptionChainDialog( Window* pParent, const ExceptionDi
++
loop
,
++
elementPos
)
{
lcl_insertExceptionEntry
(
m_a
ExceptionList
,
elementPos
,
*
loop
);
lcl_insertExceptionEntry
(
*
m_p
ExceptionList
,
elementPos
,
*
loop
);
bHave22018
=
loop
->
sSQLState
.
equalsAscii
(
"22018"
);
}
...
...
@@ -362,18 +355,14 @@ OExceptionChainDialog::OExceptionChainDialog( Window* pParent, const ExceptionDi
aInfo22018
.
pImageProvider
=
aProviderFactory
.
getImageProvider
(
SQLExceptionInfo
::
SQL_CONTEXT
);
m_aExceptions
.
push_back
(
aInfo22018
);
lcl_insertExceptionEntry
(
m_a
ExceptionList
,
m_aExceptions
.
size
()
-
1
,
aInfo22018
);
lcl_insertExceptionEntry
(
*
m_p
ExceptionList
,
m_aExceptions
.
size
()
-
1
,
aInfo22018
);
}
}
OExceptionChainDialog
::~
OExceptionChainDialog
()
{
}
IMPL_LINK_NOARG
(
OExceptionChainDialog
,
OnExceptionSelected
)
{
SvTreeListEntry
*
pSelected
=
m_
aExceptionList
.
FirstSelected
();
OSL_ENSURE
(
!
pSelected
||
!
m_
aExceptionList
.
NextSelected
(
pSelected
),
"OExceptionChainDialog::OnExceptionSelected : multi selection ?"
);
SvTreeListEntry
*
pSelected
=
m_
pExceptionList
->
FirstSelected
();
OSL_ENSURE
(
!
pSelected
||
!
m_
pExceptionList
->
NextSelected
(
pSelected
),
"OExceptionChainDialog::OnExceptionSelected : multi selection ?"
);
OUString
sText
;
...
...
@@ -404,7 +393,7 @@ IMPL_LINK_NOARG(OExceptionChainDialog, OnExceptionSelected)
sText
+=
aExceptionInfo
.
sMessage
;
}
m_
aExceptionText
.
SetText
(
sText
);
m_
pExceptionText
->
SetText
(
sText
);
return
0L
;
}
...
...
dbaccess/source/ui/dlg/sqlmessage.hrc
deleted
100644 → 0
Dosyayı görüntüle @
6bf6c90b
/* -*- 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_SQLMESSAGE_HRC_
#define _DBAUI_SQLMESSAGE_HRC_
#define FT_ERRORLIST 1
#define FT_DESCRIPTION 2
#define ED_TEXT 1
#define FL_DATA 1
#define FL_DETAILS 1
#define PB_OK 1
#define PB_CANCEL 2
#define CTL_ERRORLIST 1
#define ME_DESCRIPTION 1
#define STR_EXCEPTION_STATUS 1
#define STR_EXCEPTION_ERRORCODE 2
#endif // _DBAUI_SQLMESSAGE_HRC_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
dbaccess/source/ui/dlg/sqlmessage.src
Dosyayı görüntüle @
a9dc79b3
...
...
@@ -19,8 +19,6 @@
#include "dbaccess_helpid.hrc"
#include "dbu_dlg.hrc"
#include "sqlmessage.hrc"
Image BMP_EXCEPTION_ERROR
{
...
...
@@ -40,69 +38,14 @@ Image BMP_EXCEPTION_INFO
MaskColor = Color { Red = 0xff00 ; Green = 0x0000 ; Blue = 0xff00 ; };
};
ModalDialog DLG_SQLEXCEPTIONCHAIN
String STR_EXCEPTION_STATUS
{
HelpID = "dbaccess:ModalDialog:DLG_SQLEXCEPTIONCHAIN";
Moveable = TRUE ;
Closeable = TRUE ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 240 , 150 ) ;
Text [ en-US ] = "%PRODUCTNAME Base" ;
FixedLine FL_DETAILS
{
Pos = MAP_APPFONT ( 6, 3 ) ;
Size = MAP_APPFONT ( 228, 8 ) ;
Text [ en-US ] = "Details";
};
FixedText FT_ERRORLIST
{
Pos = MAP_APPFONT ( 12, 12 ) ;
Size = MAP_APPFONT ( 85, 10 ) ;
Text [ en-US ] = "Error ~list:";
Group = TRUE;
};
Control CTL_ERRORLIST
{
Pos = MAP_APPFONT ( 12, 25 ) ;
Size = MAP_APPFONT ( 85, 93 ) ;
Border = TRUE;
TabStop = TRUE;
HelpId = HID_SQLERROR_EXCHAIN_ERRORS;
};
FixedText FT_DESCRIPTION
{
Pos = MAP_APPFONT ( 103, 12 ) ;
Size = MAP_APPFONT ( 125, 10 ) ;
Text [ en-US ] = "~Description:";
Group = TRUE;
};
MultiLineEdit ME_DESCRIPTION
{
Border = TRUE ;
Pos = MAP_APPFONT ( 103 , 25 ) ;
Size = MAP_APPFONT ( 125 , 93 ) ;
TabStop = TRUE ;
VScroll = TRUE ;
HelpId = HID_SQLERROR_EXCHAIN_TEXT;
};
OKButton PB_OK
{
Pos = MAP_APPFONT ( 95 , 130 ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
Text [ en-US ] = "SQL Status";
};
String STR_EXCEPTION_STATUS
{
Text [ en-US ] = "SQL Status";
};
String STR_EXCEPTION_ERRORCODE
{
Text [ en-US ] = "Error code";
};
String STR_EXCEPTION_ERRORCODE
{
Text [ en-US ] = "Error code";
};
String STR_EXPLAN_STRINGCONVERSION_ERROR
...
...
dbaccess/source/ui/inc/dbu_dlg.hrc
Dosyayı görüntüle @
a9dc79b3
...
...
@@ -96,10 +96,10 @@
#define STR_MSACCESS_MDB_FILE RID_STR_DLG_START + 52
#define STR_COMMONURL RID_STR_DLG_START + 53
#define STR_DATABASEDEFAULTNAME RID_STR_DLG_START + 54
// FREE
#define STR_EXCEPTION_ERRORCODE RID_STR_DLG_START + 55
#define STR_NO_ADDITIONAL_SETTINGS RID_STR_DLG_START + 56
#define STR_HOSTNAME RID_STR_DLG_START + 57
// FREE
#define STR_EXCEPTION_STATUS RID_STR_DLG_START + 58
#define STR_MOZILLA_PROFILE_NAME RID_STR_DLG_START + 59
#define STR_THUNDERBIRD_PROFILE_NAME RID_STR_DLG_START + 60
#define STR_EXPLAN_STRINGCONVERSION_ERROR RID_STR_DLG_START + 61
...
...
dbaccess/source/ui/inc/dbu_resource.hrc
Dosyayı görüntüle @
a9dc79b3
...
...
@@ -75,8 +75,6 @@
// dialog ids
#define DLG_SQLEXCEPTIONCHAIN RID_DIALOG_START + 3
#define DLG_PARAMETERS RID_DIALOG_START + 5
#define DLG_JOIN_TABADD RID_DIALOG_START + 14
...
...
dbaccess/uiconfig/ui/sqlexception.ui
0 → 100644
Dosyayı görüntüle @
a9dc79b3
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.0"
/>
<object
class=
"GtkDialog"
id=
"SQLExceptionDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"title"
translatable=
"yes"
>
%PRODUCTNAME Base
</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=
"ok"
>
<property
name=
"label"
>
gtk-ok
</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>
</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=
"GtkFrame"
id=
"frame1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"label_xalign"
>
0
</property>
<property
name=
"shadow_type"
>
none
</property>
<child>
<object
class=
"GtkAlignment"
id=
"alignment1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"top_padding"
>
6
</property>
<property
name=
"left_padding"
>
12
</property>
<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>
<property
name=
"column_spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"label2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
Error _list:
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
list:border
</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=
"GtkLabel"
id=
"label3"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
_Description:
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"mnemonic_widget"
>
description:border
</property>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkScrolledWindow"
id=
"scrolledwindow1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"vscrollbar_policy"
>
always
</property>
<property
name=
"shadow_type"
>
in
</property>
<child>
<object
class=
"GtkTextView"
id=
"description:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<property
name=
"editable"
>
False
</property>
</object>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
1
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"svtlo-SvTreeListBox"
id=
"list:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</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>
</object>
</child>
</object>
</child>
<child
type=
"label"
>
<object
class=
"GtkLabel"
id=
"label1"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"label"
translatable=
"yes"
>
Details
</property>
<attributes>
<attribute
name=
"weight"
value=
"bold"
/>
</attributes>
</object>
</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"
>
ok
</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