예제 #1
0
 def __init__(self, parent=None):        
     super(materialDialog, self).__init__(parent)
     self.setupUi(self)
     
     # Initialize the window.
     self.setWindowTitle(self.tr("Material View"))
     
     self.bbx_mat_res.buttons()[0].setFlat(True)
     self.bbx_mat_res.buttons()[1].setFlat(True)
     
     # Initialyze the user interface.
     # Get the proper font size from the display size and set the font size.
     font_size = skin.getFontSize()
     
     # Make the style sheet.
     font_style_size = 'font: regular ' + str(skin.getFontSize()) + 'px;'
     
     # Define the font object for Qt.
     font = QFont()
     font.setPointSize(font_size)
     
     self.setFont(font)
     
     # Setup the skin for the dialog.
     if parent.skin == "grey":
         # Set the icon path.
         icon_path = os.path.join(parent.icon_directory, "white")
         
         # Set the default background and front color.
         back_color = 'background-color: #2C2C2C;'
         font_style_color = 'color: #FFFFFF;'
         font_style = font_style_color + font_style_size
         
         # Set the default skin for all components.
         self.setStyleSheet(back_color + font_style + 'border-style: none; border-color: #4C4C4C;')
         self.frame.setStyleSheet(back_color + font_style + 'border-style: none; border-color: #4C4C4C;')
         
         # Set the default skin for text boxes.
         text_border = 'border-style: outset; border-width: 0.5px; border-color: #4C4C4C;'
         text_background = "background-color: #6C6C6C;"
         self.tbx_mat_uuid.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_number.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_name.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_geo_lat.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_geo_lon.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_geo_alt.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_tmp_bgn.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_tmp_mid.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_tmp_end.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         self.tbx_mat_description.setStyleSheet(font_style_color + font_style_size + text_border + text_background)
         
     elif parent.skin == "white":
         # Set the icon path.
         icon_path = os.path.join(parent.icon_directory, "black")
     
     # Set the dialog button size.
     dlg_btn_size = QSize(125, 30)
     self.bbx_mat_res.buttons()[0].setMinimumSize(dlg_btn_size)
     self.bbx_mat_res.buttons()[1].setMinimumSize(dlg_btn_size)
     
     # Set the skin and icon.
     self.bbx_mat_res.buttons()[0].setIcon(skin.getIconFromPath(os.path.join(icon_path, 'check.png')))
     self.bbx_mat_res.buttons()[1].setIcon(skin.getIconFromPath(os.path.join(icon_path, 'close.png')))
     
     # Setup labels with designated language.
     if parent.language == "ja":
         self.lbl_mat_uuid.setText("UUID :")
         self.lbl_mat_number.setText("資料番号 :")
         self.lbl_mat_name.setText("資料の名称 :")
         self.lbl_mat_geo_lat.setText("緯度 :")
         self.lbl_mat_geo_lon.setText("経度 :")
         self.lbl_mat_geo_alt.setText("標高 :")
         self.lbl_mat_tmp_bgn.setText("開始時期 :")
         self.lbl_mat_tmp_mid.setText("中間時期 :")
         self.lbl_mat_tmp_end.setText("終了時期 :")
         self.lbl_mat_description.setText("資料の備考 :")
         self.bbx_mat_res.buttons()[0].setText("OK")
         self.bbx_mat_res.buttons()[1].setText("キャンセル")
     elif parent.language == "en":
         self.lbl_mat_uuid.setText("UUID :")
         self.lbl_mat_number.setText("Number :")
         self.lbl_mat_name.setText("Name :")
         self.lbl_mat_geo_lat.setText("Latitude :")
         self.lbl_mat_geo_lon.setText("Longitude :")
         self.lbl_mat_geo_alt.setText("Altitude :")
         self.lbl_mat_tmp_bgn.setText("Begin :")
         self.lbl_mat_tmp_mid.setText("Peak :")
         self.lbl_mat_tmp_end.setText("End :")
         self.lbl_mat_description.setText("Description :")
         self.bbx_mat_res.buttons()[0].setText("OK")
         self.bbx_mat_res.buttons()[1].setText("Cancel")
     
     # Set attributes to text boxes.
     self.tbx_mat_uuid.setText(parent._current_material.uuid)
     self.tbx_mat_number.setText(parent._current_material.material_number)
     self.tbx_mat_name.setText(parent._current_material.name)
     self.tbx_mat_tmp_bgn.setText(parent._current_material.estimated_period_beginning)
     self.tbx_mat_tmp_mid.setText(parent._current_material.estimated_period_peak)
     self.tbx_mat_tmp_end.setText(parent._current_material.estimated_period_ending)
     self.tbx_mat_geo_lat.setText(str(parent._current_material.latitude))
     self.tbx_mat_geo_lon.setText(str(parent._current_material.longitude))
     self.tbx_mat_geo_alt.setText(str(parent._current_material.altitude))
     self.tbx_mat_description.setText(parent._current_material.description)
     
     
     
     
예제 #2
0
    def __init__(self, parent=None, sop_file=None):
        # Get the path of the tethered image.
        self._sop_file = sop_file
        self._qt_image = parent.qt_image
        self._language = parent.language
        self._source_directory = parent.source_directory
        self._root_directory = parent.root_directory
        self._database = parent.database

        # Set the source directory which this program located.
        super(imageInformationDialog, self).__init__(parent)
        self.setupUi(self)

        # Initialize the window.
        self.setWindowTitle(self.tr("File Information Dialog"))

        # Initialyze the user interface.
        # Get the proper font size from the display size and set the font size.
        font_size = skin.getFontSize()

        # Make the style sheet.
        font_style_size = 'font: regular ' + str(skin.getFontSize()) + 'px;'

        # Define the font object for Qt.
        font = QFont()
        font.setPointSize(font_size)

        self.setFont(font)

        if parent.skin == "grey":
            # Set the icon path.
            icon_path = os.path.join(parent.icon_directory, "white")

            # Set the default background and front color.
            back_color = 'background-color: #2C2C2C;'
            font_style_color = 'color: #FFFFFF;'
            font_style = font_style_color + font_style_size

            # Set the default skin for all components.
            self.setStyleSheet(back_color + font_style +
                               'border-style: none; border-color: #4C4C4C;')
            self.frame.setStyleSheet(
                back_color + font_style +
                'border-style: none; border-color: #4C4C4C;')

            # Set the default skin for text boxes.
            text_border = 'border-style: outset; border-width: 0.5px; border-color: #4C4C4C;'
            text_background = "background-color: #6C6C6C;"
            self.cmb_fil_stts.setStyleSheet(font_style_color +
                                            font_style_size + text_border +
                                            text_background)
            self.tbx_fil_ali.setStyleSheet(font_style_color + font_style_size +
                                           text_border + text_background)

            self.dte_fil_dt_cre.setStyleSheet(font_style_color +
                                              font_style_size + text_border +
                                              text_background)
            self.dte_fil_dt_mod.setStyleSheet(font_style_color +
                                              font_style_size + text_border +
                                              text_background)
            self.cmb_fil_eope.setStyleSheet(font_style_color +
                                            font_style_size + text_border +
                                            text_background)
            self.tbx_fil_ope_app.setStyleSheet(font_style_color +
                                               font_style_size + text_border +
                                               text_background)
            self.tbx_fil_dsc.setStyleSheet(font_style_color + font_style_size +
                                           text_border + text_background)
            self.tbx_fil_capt.setStyleSheet(font_style_color +
                                            font_style_size + text_border +
                                            text_background)
        elif skin == "white":
            # Set the icon path.
            icon_path = os.path.join(parent.icon_directory, "black")

            # Set the icon path.
            parent.icon_directory = os.path.join(parent.icon_directory,
                                                 "black")

        # Add the text label to the tab
        if self._language == "ja":
            self.cbx_fil_pub.setText("公開設定")
            self.cbx_fil_edit.setText("削除可能")
            self.lab_fil_sta.setText("ステータス")
            self.lab_fil_ali.setText("別 名 :")
            self.lab_fil_dt_cr.setText("作成日時 :")
            self.lab_fil_dt_mod.setText("編集日時 :")
            self.lab_fil_ope.setText("操 作 :")
            self.lab_fil_ope_app.setText("操作アプリ :")
            self.lab_fil_cap.setText("キャプション :")
            self.lbl_fil_dsc.setText("備 考 :")
            self.btn_fil_dt_cre_exif.setText("Exifから取得")
            self.btn_fil_dt_mod_exif.setText("Exifから取得")
            self.box_fil_ope.buttons()[0].setText("OK")
            self.box_fil_ope.buttons()[1].setText("キャンセル")
        elif self._language == "en":
            self.cbx_fil_pub.setText("Public")
            self.cbx_fil_edit.setText("Erasable")
            self.lab_fil_sta.setText("Status")
            self.lab_fil_ali.setText("Alias :")
            self.lab_fil_dt_cr.setText("Date of Create :")
            self.lab_fil_dt_mod.setText("Date of Edit :")
            self.lab_fil_ope.setText("Operation :")
            self.lab_fil_ope_app.setText("Application :")
            self.lab_fil_cap.setText("Caption :")
            self.lbl_fil_dsc.setText("Description :")
            self.btn_fil_dt_cre_exif.setText("Get from Exif")
            self.btn_fil_dt_mod_exif.setText("Get from Exif")
            self.box_fil_ope.buttons()[0].setText("OK")
            self.box_fil_ope.buttons()[1].setText("Cancel")

        # Change the default icons for dialoc button box.
        self.box_fil_ope.buttons()[0].setFlat(True)
        self.box_fil_ope.buttons()[1].setFlat(True)

        # Set the dialog button size.
        dlg_btn_size = QSize(125, 30)
        self.box_fil_ope.buttons()[0].setMinimumSize(dlg_btn_size)
        self.box_fil_ope.buttons()[1].setMinimumSize(dlg_btn_size)

        # Set the skin and icon.
        self.box_fil_ope.buttons()[0].setIcon(
            skin.getIconFromPath(os.path.join(icon_path, 'check.png')))
        self.box_fil_ope.buttons()[1].setIcon(
            skin.getIconFromPath(os.path.join(icon_path, 'close.png')))

        self.btn_fil_dt_cre_exif.clicked.connect(self.getCreateDateByExif)
        self.btn_fil_dt_mod_exif.clicked.connect(self.getModifiedDateByExif)

        self.tab_src.currentChanged.connect(self.toggleTab)

        # Define the return values.
        self.box_fil_ope.accepted.connect(self.accept)
        self.box_fil_ope.rejected.connect(self.reject)

        # Get the image properties from the instance.
        if self._sop_file.public == "1":
            self.cbx_fil_pub.setChecked(True)
        else:
            self.cbx_fil_pub.setChecked(False)

        if self._sop_file.lock == "1":
            self.cbx_fil_edit.setChecked(False)
            self.cbx_fil_edit.setDisabled(True)
        else:
            self.cbx_fil_edit.setChecked(True)
            self.cbx_fil_edit.setDisabled(False)

        # Set the alias name of the file object.
        self.tbx_fil_ali.setText(self._sop_file.alias)

        # Get the date of creation and modification.
        cdate = self._sop_file.created_date
        mdate = self._sop_file.modified_date

        # Set the maximum date if the given date is invalid.
        if (cdate == None or cdate == ""): cdate = "7999-12-31T23:59:59"
        if (mdate == None or mdate == ""): mdate = "7999-12-31T23:59:59"

        # Convert string date format to the PyQt date type.
        fil_dt_create = general.pyDateTimeToQDateTime(parse(cdate))
        fil_dt_modify = general.pyDateTimeToQDateTime(parse(mdate))

        # Set dates of creation and modification.
        self.dte_fil_dt_cre.setDateTime(fil_dt_create)
        self.dte_fil_dt_mod.setDateTime(fil_dt_modify)

        # Set the operating application software.
        self.tbx_fil_ope_app.setText(self._sop_file.operating_application)

        # Set the caption of the file object.
        self.tbx_fil_capt.setText(self._sop_file.caption)

        self.tbx_fil_dsc.setText(self._sop_file.description)

        # Set the status of the file object and optional values.
        self.cmb_fil_stts.addItem(self._sop_file.status)
        self.cmb_fil_stts.addItem("Original")
        self.cmb_fil_stts.addItem("Original(RAW)")
        self.cmb_fil_stts.addItem("Removed")
        self.cmb_fil_stts.addItem("Imported")
        self.cmb_fil_stts.addItem("Edited")

        # Set the operation of the file object and option values.
        self.cmb_fil_eope.addItem(self._sop_file.operation)
        self.cmb_fil_eope.addItem("Editing on GIMP")
        self.cmb_fil_eope.addItem("Rotating")
        self.cmb_fil_eope.addItem("Grayscaling")
        self.cmb_fil_eope.addItem("White balance adjusting")
        self.cmb_fil_eope.addItem("Normalizing")
        self.cmb_fil_eope.addItem("Cropping")
        self.cmb_fil_eope.addItem("Color inverting")
        self.cmb_fil_eope.addItem("Removing")
        self.cmb_fil_eope.addItem("Colorlizing")
        self.cmb_fil_eope.addItem("Unknown")
        self.cmb_fil_eope.addItem("Other")

        if self._sop_file.file_type == "image":
            # Get the path from selected image object.
            img_file_path = os.path.join(parent.root_directory,
                                         self._sop_file.filename)

            if self.imageIsValid(img_file_path) == True:
                # Add a tab for the thumbnail.
                self.tab_img_thumb = QWidget()
                self.tab_img_thumb.setLayoutDirection(Qt.LeftToRight)
                self.tab_img_thumb.setObjectName("tab_img_thumb")

                # Add a tab for the image viewer
                self.tab_img_view = QWidget()
                self.tab_img_view.setLayoutDirection(Qt.LeftToRight)
                self.tab_img_view.setObjectName("tab_img_view")
                self.tab_img_view.setAccessibleName("tab_img_view")

                # Add the layout for image viewer.
                self.lay_img_view = QVBoxLayout(self.tab_img_view)
                self.lay_img_view.setContentsMargins(0, 0, 0, 0)
                self.lay_img_view.setObjectName("lay_thm")

                # Add the layout for image viewer.
                self.lay_img_thumb = QVBoxLayout(self.tab_img_thumb)
                self.lay_img_thumb.setContentsMargins(0, 0, 0, 0)
                self.lay_img_thumb.setObjectName("lay_thm")

                self.lbl_img_thumb = QLabel()
                self.lbl_img_thumb.setAlignment(Qt.AlignCenter)
                self.lbl_img_thumb.setObjectName("lbl_img_thumb")

                self.lay_img_thumb.addWidget(self.lbl_img_thumb)

                # Add the layout to the tab.
                self.tab_src.addTab(self.tab_img_thumb, "")

                # Add the layout to the tab.
                self.tab_src.addTab(self.tab_img_view, "")

                # Create the graphic view item.
                self.graphicsView = viewer.ImageViewer()
                self.graphicsView.setObjectName("graphicsView")
                self.lay_img_view.addWidget(self.graphicsView)

                # Add the text label to the tab
                if self._language == "ja":
                    self.tab_src.setTabText(
                        self.tab_src.indexOf(self.tab_img_thumb), "サムネイル")
                    self.tab_src.setTabText(
                        self.tab_src.indexOf(self.tab_img_view), "画像ビューア")
                elif self._language == "en":
                    self.tab_src.setTabText(
                        self.tab_src.indexOf(self.tab_img_thumb), "Thumbnail")
                    self.tab_src.setTabText(
                        self.tab_src.indexOf(self.tab_img_view),
                        "Image Viewer")

                if parent.skin == "grey":
                    # Set the icon path.
                    icon_path = os.path.join(parent.icon_directory, "white")

                    # Set the default skin for tabs.
                    back_color_tab = 'QTabBar::tab {background-color: #2C2C2C; }'
                    back_color_tab_act = 'QTabBar::tab::selected {background-color: #4C4C4C;}'
                    self.tab_src.setStyleSheet(back_color_tab +
                                               back_color_tab_act)

                # Get the image file.
                self.showImage()
예제 #3
0
    def __init__(self, parent=None, img_path=None, snd_path=None):
        # Initialyze super class and set up this.
        super(RecordWithImage, self).__init__(parent)
        self.setupUi(self)

        # Set the source directory which this program located.
        self._source_directory = parent.source_directory
        self._icon_directory = parent.icon_directory
        self._qt_image = parent.qt_image
        self._image_extensions = parent.image_extensions
        self._sound_extensions = parent.sound_extensions

        # Initialize the window.
        self.setWindowTitle(self.tr("Check Tethered Image"))
        self.setWindowState(Qt.WindowMaximized)

        # Setup labels with designated language.
        if parent.language == "ja":
            self.lbl_fl_snd.setText("音声ファイル")
            self.btn_rec_start.setText("録音開始")
            self.btn_rec_stop.setText("録音停止")
            self.lbl_img.setText("画像一覧")
        elif parent.language == "en":
            self.lbl_fl_snd.setText("Sound Files")
            self.btn_rec_start.setText("Rec")
            self.btn_rec_stop.setText("Stop")
            self.lbl_img.setText("Image File List")

        # Initialyze the list view of the thumbnails.
        self.lst_img_icon.setIconSize(QSize(200, 200))
        self.lst_img_icon.setMovement(QListView.Static)
        self.lst_img_icon.setModel(QStandardItemModel())

        # Initialyze the record button.
        self.btn_rec_start.setIcon(
            QIcon(QPixmap(os.path.join(self._icon_directory, 'record.png'))))
        self.btn_rec_start.setIconSize(QSize(24, 24))
        self.btn_rec_start.clicked.connect(self.startRecording)

        # Initialyze the stop button.
        self.btn_rec_stop.setIcon(
            QIcon(QPixmap(os.path.join(self._icon_directory, 'pause.png'))))
        self.btn_rec_stop.setIconSize(QSize(24, 24))

        # Define the return values.
        self.bbx_rec_pht.accepted.connect(self.accept)
        self.bbx_rec_pht.rejected.connect(self.reject)

        # Create the graphic view item.
        self.graphicsView = viewer.ImageViewer()
        self.graphicsView.setObjectName("graphicsView")
        self.verticalLayout.addWidget(self.graphicsView)

        # Get the path of the tethered image.
        self.path_img = img_path
        self.path_snd = snd_path

        # Initialyze the thumbnail selector.
        self.lst_img_icon.selectionModel().selectionChanged.connect(
            self.showImage)

        # Create recording thread.
        self.recThread = RecordThreading(parent=self, path=self.path_snd)

        # Get tethered image files.
        self.getImageFiles()
        self.getSoundFiles()

        # Initialyze the user interface.
        # Get the proper font size from the display size and set the font size.
        font_size = skin.getFontSize()

        # Make the style sheet.
        font_style_size = 'font: regular ' + str(skin.getFontSize()) + 'px;'

        # Define the font object for Qt.
        font = QFont()
        font.setPointSize(font_size)

        self.setFont(font)

        if parent.skin == "grey":
            # Set the icon path.
            self._icon_directory = os.path.join(self._icon_directory, "white")

            # Set the default background and front color.
            back_color = 'background-color: #2C2C2C;'
            font_style_color = 'color: #FFFFFF;'
            font_style = font_style_color + font_style_size

            # Set the default skin for all components.
            self.setStyleSheet(back_color + font_style +
                               'border-style: none; border-color: #4C4C4C;')
            #self.frm_photo_view.setStyleSheet('border-style: solid; border-width: 0.5px; border-color: #FFFFFF;')
            self.graphicsView.setStyleSheet(
                'border-style: outset; border-width: 0.5px; border-color: #FFFFFF;'
            )

            self.lst_snd_fls.setStyleSheet(
                'border-style: outset; border-width: 0.5px; border-color: #FFFFFF;'
            )
            self.lst_img_icon.setStyleSheet(
                'border-style: outset; border-width: 0.5px; border-color: #FFFFFF;'
            )
        elif skin == "white":
            # Set the icon path.
            self._icon_directory = os.path.join(self._icon_directory, "black")

        # Set the dialog button size.
        dlg_btn_size = QSize(125, 30)
        self.bbx_rec_pht.buttons()[0].setMinimumSize(dlg_btn_size)
        self.bbx_rec_pht.buttons()[1].setMinimumSize(dlg_btn_size)

        # Set the skin and icon.
        self.bbx_rec_pht.buttons()[0].setIcon(
            skin.getIconFromPath(
                os.path.join(self._icon_directory, 'check.png')))
        self.bbx_rec_pht.buttons()[1].setIcon(
            skin.getIconFromPath(
                os.path.join(self._icon_directory, 'close.png')))

        # Change the icon color red to black.
        self.btn_rec_start.setIcon(
            QIcon(QPixmap(os.path.join(self._icon_directory, 'record.png'))))
        self.btn_rec_stop.setIcon(
            QIcon(QPixmap(os.path.join(self._icon_directory, 'pause.png'))))
예제 #4
0
 def __init__(self, parent=None, path=None):
     # Set the source directory which this program located.
     self._source_directory = parent.source_directory
     self._icon_directory = parent.icon_directory
     self._qt_image = parent.qt_image
     self._image_extensions = parent.image_extensions
     self._raw_image_extensions = parent.raw_image_extensions
     self._sound_extensions = parent.sound_extensions
     
     super(CheckImageDialog, self).__init__(parent)
     self.setupUi(self)
     
     # Create the graphic view item.        
     self.graphicsView = viewer.ImageViewer()
     self.graphicsView.setObjectName("graphicsView")
     self.horizontalLayout_2.addWidget(self.graphicsView)
     
     # Initialize the window.
     self.setWindowTitle(self.tr("Check Tethered Image"))
     self.setWindowState(Qt.WindowMaximized)
     
     # Initialyze the user interface.
     # Get the proper font size from the display size and set the font size.
     font_size = skin.getFontSize()
     
     # Make the style sheet.
     font_style_size = 'font: regular ' + str(skin.getFontSize()) + 'px;'
     
     # Define the font object for Qt.
     font = QFont()
     font.setPointSize(font_size)
     
     self.setFont(font)
     
     if parent.skin == "grey":
         # Set the icon path.
         self._icon_directory = os.path.join(self._icon_directory, "white")
         
         # Set the default background and front color.
         back_color = 'background-color: #2C2C2C;'
         font_style_color = 'color: #FFFFFF;'
         font_style = font_style_color + font_style_size
         
         # Set the default skin for all components.
         self.setStyleSheet(back_color + font_style + 'border-color: #4C4C4C;')
         
     elif skin == "white":
         # Set the icon path.
         self._icon_directory = os.path.join(self._icon_directory, "black")
     
     # Get the path of the tethered image.
     self.tethered = path
     
     # Define the return values.
     self.buttonBox.accepted.connect(self.accept)
     self.buttonBox.rejected.connect(self.reject)
     
     # Initialyze the image info view.
     self.tre_img_info.setMaximumSize(QSize(600, 16777215))
     
     # Initialyze the file information view.
     self.lst_fls.setMaximumSize(QSize(16777215, 100))
     self.lst_fls.itemSelectionChanged.connect(self.getImageFileInfo)
     
     # Get tethered image files.
     self.getImageFiles()
예제 #5
0
    def __init__(self, parent=None):
        super(consolidationDialog, self).__init__(parent)
        self.setupUi(self)

        # Initialize the window.
        self.setWindowTitle(self.tr("Consolidation View"))

        # Initialyze the user interface.
        # Get the proper font size from the display size and set the font size.
        font_size = skin.getFontSize()

        # Make the style sheet.
        font_style_size = 'font: regular ' + str(skin.getFontSize()) + 'px;'

        # Define the font object for Qt.
        font = QFont()
        font.setPointSize(font_size)

        self.setFont(font)

        # Setup the skin for the dialog.
        if parent.skin == "grey":
            # Set the icon path.
            icon_path = os.path.join(parent.icon_directory, "white")

            # Set the default background and front color.
            back_color = 'background-color: #2C2C2C;'
            font_style_color = 'color: #FFFFFF;'
            font_style = font_style_color + font_style_size

            # Set the default skin for all components.
            self.setStyleSheet(back_color + font_style +
                               'border-style: none; border-color: #4C4C4C;')
            self.frame.setStyleSheet(
                back_color + font_style +
                'border-style: none; border-color: #4C4C4C;')

            # Set the default skin for text boxes.
            text_border = 'border-style: none; border-width: 0.5px; border-color: #4C4C4C;'
            text_background = "background-color: #6C6C6C;"
            self.tbx_con_uuid.setStyleSheet(font_style_color +
                                            font_style_size + text_border +
                                            text_background)
            self.tbx_con_name.setStyleSheet(font_style_color +
                                            font_style_size + text_border +
                                            text_background)
            self.tbx_con_geoname.setStyleSheet(font_style_color +
                                               font_style_size + text_border +
                                               text_background)
            self.tbx_con_temporal.setStyleSheet(font_style_color +
                                                font_style_size + text_border +
                                                text_background)
            self.tbx_con_description.setStyleSheet(font_style_color +
                                                   font_style_size +
                                                   text_border +
                                                   text_background)

        elif parent.skin == "white":
            # Set the icon path.
            icon_path = os.path.join(parent.icon_directory, "black")

        # Set the dialog button size.
        dlg_btn_size = QSize(125, 30)
        self.bbx_con_res.buttons()[0].setMinimumSize(dlg_btn_size)
        self.bbx_con_res.buttons()[1].setMinimumSize(dlg_btn_size)

        # Set the skin and icon.
        self.bbx_con_res.buttons()[0].setIcon(
            skin.getIconFromPath(os.path.join(icon_path, 'check.png')))
        self.bbx_con_res.buttons()[1].setIcon(
            skin.getIconFromPath(os.path.join(icon_path, 'close.png')))

        # Setup labels with designated language.
        if parent.language == "ja":
            self.lbl_con_uuid.setText("UUID :")
            self.lbl_con_name.setText("統合体の名称 :")
            self.lbl_con_tempral.setText("時間識別子 :")
            self.lbl_con_description.setText("統合体の備考 :")
            self.lbl_con_geoname.setText("地理識別子 :")
            self.bbx_con_res.buttons()[0].setText("OK")
            self.bbx_con_res.buttons()[1].setText("キャンセル")
        elif parent.language == "en":
            self.lbl_con_uuid.setText("UUID :")
            self.lbl_con_description.setText("Description :")
            self.lbl_con_name.setText("Name :")
            self.lbl_con_geoname.setText("Location:")
            self.lbl_con_tempral.setText("Era/Age:")
            self.bbx_con_res.buttons()[0].setText("OK")
            self.bbx_con_res.buttons()[1].setText("Cancel")

        # Set attributes to text boxes.
        self.tbx_con_uuid.setText(parent._current_consolidation.uuid)
        self.tbx_con_name.setText(parent._current_consolidation.name)
        self.tbx_con_geoname.setText(
            parent._current_consolidation.geographic_annotation)
        self.tbx_con_temporal.setText(
            parent._current_consolidation.temporal_annotation)
        self.tbx_con_description.setText(
            parent._current_consolidation.description)