00033 {
00034 StoreConfigWindowValues();
00035 if(mStringValues["First view"] == mStringValues["Second view"])
00036 {
00037 SetErrorMessage(mConfigWindow,
00038 "First and second view can not be the same.");
00039 return;
00040 }
00041 ClearConfigWindowValues();
00042
00043 TableDataSourceModule::DrawConfigWindow();
00044 OglGui::GroupBox* grp = new OglGui::GroupBox(mConfigWindow, mConfigWindow->W()-2, 362, "");
00045
00046 AddTextField(grp, "Name");
00047
00048 AddSelectorWithColumnsOfType(grp, "First column", mStringValues["First view"],
00049 TableDataSource::TYPE_FLAG_ALL, true);
00050 AddSelectorWithColumnsOfType(grp, "Second column", mStringValues["Second view"],
00051 TableDataSource::TYPE_FLAG_ALL, true);
00052 (new OglGui::Button(grp, grp->W()-4, 26, "New "+GetName(), BEV_ETCHED))
00053 ->SetButtonListener(this);
00054
00055 grp->RepositionViewports();
00056 grp->ScaleChildren();
00057 }