Skip to content

Commit 3f6b131

Browse files
committed
cpp-builder: Display the State grid column
- Add the State column to display the dashboard UI state BLOB. - Rename and reorder columns. - Remove the unused TdxReport component. - Remove the TdxSkinController component. DevExpress skin settings are now available directly in the project menu.
1 parent 4239a4f commit 3f6b131

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

CPB/uData.dfm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,6 @@ object DataModule1: TDataModule1
174174
end
175175
end
176176
end
177-
object dxSkinController1: TdxSkinController
178-
NativeStyle = False
179-
SkinName = 'WXI'
180-
Left = 288
181-
Top = 84
182-
end
183177
object mdRevenueByIndustry: TdxMemData
184178
Active = True
185179
Indexes = <>

CPB/uData.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class TDataModule1 : public TDataModule
2626
TdxBackendDataConnectionManager *dxBackendDataConnectionManager1;
2727
TdxBackendDataSetJSONConnection *RevenueByIndustryConnection;
2828
TdxBackendDataSetCollectionItem *RevenueByIndustryConnectionItem1;
29-
TdxSkinController *dxSkinController1;
3029
TdxMemData *mdRevenueByIndustry;
3130
TStringField *mdRevenueByIndustryCity;
3231
TStringField *mdRevenueByIndustryIndustry;

CPB/uMainForm.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
#pragma link "dxAI"
4141
#pragma link "dxAI.Commands.SmartPaste"
4242
#pragma link "cxTextEdit"
43+
#pragma link "cxColorComboBox"
44+
#pragma link "cxContainer"
45+
#pragma link "cxDBColorComboBox"
46+
#pragma link "cxDropDownEdit"
47+
#pragma link "cxMaskEdit"
48+
#pragma link "dxLayoutcxEditAdapters"
4349
#pragma resource "*.dfm"
4450
TMainForm *MainForm;
4551
//---------------------------------------------------------------------------

CPB/uMainForm.dfm

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,23 @@ object MainForm: TMainForm
6565
DataBinding.FieldName = 'RecId'
6666
Visible = False
6767
end
68-
object gvLayoutsLayout: TcxGridDBColumn
69-
Caption = 'Report Layout'
70-
DataBinding.FieldName = 'Layout'
71-
Options.Editing = False
72-
end
7368
object gvLayoutsName: TcxGridDBColumn
74-
Caption = 'Report Name'
69+
Caption = 'Dashboard Name'
7570
DataBinding.FieldName = 'Name'
7671
PropertiesClassName = 'TcxTextEditProperties'
7772
Properties.OnValidate = gvLayoutsNamePropertiesValidate
73+
Width = 246
74+
end
75+
object gvLayoutsLayout: TcxGridDBColumn
76+
Caption = 'Dashboard Layout'
77+
DataBinding.FieldName = 'Layout'
78+
Options.Editing = False
79+
Width = 275
80+
end
81+
object gvLayoutsColumn1: TcxGridDBColumn
82+
Caption = 'Dashboard State'
83+
DataBinding.FieldName = 'State'
84+
Width = 269
7885
end
7986
end
8087
object cxGrid2Level1: TcxGridLevel
@@ -178,8 +185,4 @@ object MainForm: TMainForm
178185
Index = 2
179186
end
180187
end
181-
object dxReport1: TdxReport
182-
Left = 48
183-
Top = 88
184-
end
185188
end

CPB/uMainForm.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
#include "dxAI.Commands.SmartPaste.hpp"
4646
#include "dxAI.hpp"
4747
#include "cxTextEdit.hpp"
48+
#include "cxColorComboBox.hpp"
49+
#include "cxContainer.hpp"
50+
#include "cxDBColorComboBox.hpp"
51+
#include "cxDropDownEdit.hpp"
52+
#include "cxMaskEdit.hpp"
53+
#include "dxLayoutcxEditAdapters.hpp"
4854
//---------------------------------------------------------------------------
4955
class TMainForm : public TForm
5056
{
@@ -67,7 +73,7 @@ class TMainForm : public TForm
6773
TdxLayoutItem *liBtnNew;
6874
TdxLayoutGroup *lgButtons;
6975
TdxLayoutItem *liBtnDelete;
70-
TdxReport *dxReport1;
76+
TcxGridDBColumn *gvLayoutsState;
7177
void __fastcall btnNewDashboardClick(TObject *Sender);
7278
void __fastcall btnDeleteClick(TObject *Sender);
7379
void __fastcall btnDesignClick(TObject *Sender);

0 commit comments

Comments
 (0)