From patchwork Fri Jul 15 19:13:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Utkarsh Tiwari X-Patchwork-Id: 16655 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9D295BE173 for ; Fri, 15 Jul 2022 19:14:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D345563313; Fri, 15 Jul 2022 21:14:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657912450; bh=B0OmOQJxcMmmFL3M4nDUGYENuahrL9l26RJFzpd7kJg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=WZHBs7iiI07HGQbeUC0mcqAxk1Z31FEiWSwhzm2mtwNfodMmWzZvdtWe45ICAyCMG khRRaeX8hUrG3/zNJHi1aGOfHTDV2wGlkCyLemCUc8tGD+SEBqBeWC6Q3W3N11Bz4C NoxCyaufr4UZ5VyjoFJTxzz3gfLiYiewiYtqh3Tlc/4jLW6B4+75p8JN4xKSG+FL38 xW9N8rkzK9APJifQev+o9I82pscJHjyKBIEYdElI7esqgarzHSmBw9V6Hf7CKqT8+q 8kxmbFyydcagiogDsZxRWJlxD75eTodG0KZ/FqZ6+Id/sJgPGVK+WFH+HIJw5ocK6n OvuOd5E5Kys7g== Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3D2D56330A for ; Fri, 15 Jul 2022 21:14:08 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PDrqJw8T"; dkim-atps=neutral Received: by mail-pj1-x1030.google.com with SMTP id t5-20020a17090a6a0500b001ef965b262eso6986459pjj.5 for ; Fri, 15 Jul 2022 12:14:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lDYyZTEiSad4OUs34TBNMmlMyEp2FQQLOxg6SZpVaGU=; b=PDrqJw8TBdE/O/AViN/vwN24QV/mR/FUjq0Vnpk2Ek8MMoLv5yOYx02fgY/1NgkC7j z0LFaFwg37wXAD55cjKtqO82qFVBNJegZeO4flQcjzu+apnpBBqYa9Xlv8Tr9ngytGXv wjHWul5KOFUoGjv28OE2VIHZDFbi1NYpRrChJ5NsY+j5/s4ARbmhFppGoZCYu20E7N/i diP7FM4KTzcuC5sB6fmOM7N6lTy89rpRNMbR5maTz+KHcE/Bi/xZrO9y+uUIwy4O247e csz2u+6+tYxQeUZ0Cpdkcd2po9jdFuPt6Eofmhz/RC7VvGV070qUuffPeDvL6Y7+qYjo q2cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lDYyZTEiSad4OUs34TBNMmlMyEp2FQQLOxg6SZpVaGU=; b=4gFyaof4dzm5hnWThR/GRxbeFenra2YAbIqBsSQPs+Da7v6FeGlN+OKBEokfAS8weU h5WVgp25NJ0uCWQNiP/dcipTnuXlN+pcKRB/sqiHscJlxcOcT4hQEDukLAPykJxQUJc2 rJR2qb+KkX6xqq1bZVTbDwgx4jNz58MQth1WGZ7f3qz/lW4j+Rni2p4XmV/bJUPfvg/5 x2Fe4gQdALNh5ZtU/89QasUKuVEBbxMLc3Sh5vLT/iS1KMGLUCTFcg+MqtyQG64/jkuH 5oQVQEK0eR4kFSjLhC0swRYwWUKolWtUFg1GdL23NyC4pOTSbDxvKX/GVG7CqzTMwZfH u4KQ== X-Gm-Message-State: AJIora94HnUECCBe0GWqBNWMZldXCdcUNthM5jTzbxxwYb0b5r5WvQa+ r6d375LpJdOMY+pAFy40eqjz7FQ74xA3hg== X-Google-Smtp-Source: AGRyM1seVoqloh9FLRcHfNWJIAML2kqZ5EFIKBuI1qttiZxrAuTB8IVv+B8qu/xob+MdCMb+xySwKw== X-Received: by 2002:a17:90b:1a86:b0:1ef:a6dd:8239 with SMTP id ng6-20020a17090b1a8600b001efa6dd8239mr17033782pjb.80.1657912446346; Fri, 15 Jul 2022 12:14:06 -0700 (PDT) Received: from localhost.localdomain ([2406:3003:2005:1c27:d8e8:f9ac:919c:9ac8]) by smtp.gmail.com with ESMTPSA id s10-20020a170903214a00b0016be834d544sm3834315ple.237.2022.07.15.12.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 12:14:05 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Sat, 16 Jul 2022 03:13:49 +0800 Message-Id: <20220715191400.890976-1-utkarsh02t@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/11] Introduce control interaction to qcam X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Utkarsh Tiwari via libcamera-devel From: Utkarsh Tiwari Reply-To: Utkarsh Tiwari Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, This patch series brings control manipulation from qcam. It provides the GUI needed to change control values for ControlTypeBool, ControlTypeFloat, ControlTypeIntger32. Also this displays the controls and their default values. It also displays the current values for the controls which have been set by qcam itself either through capture script or through the GUI. The patch series starts with building the basic GUI and just showing the name of the controls. then proceeds to add deault value and then implement just for ControlTypeBool and then for the other types mentioned above. This patch series implements the basic groundwork to facilitate the manipulation of controls. The design for various control components can be ofcourse improved, I have tried to isolate the design part much to be disconnected. Utkarsh Tiwari (11): qcam: Add settings Dialog with Control tab qcam: ControlFrame: Display defualt value of controls qcam: Add GUI way to change control values qcam: ControlsTab: Implement QScrollArea qcam: ControlFrame: Add Current Value label qcam: Add Float Slider qcam: Slider: Add SliderLayout to display value qcam: ControlsTab: Allow widget to resizeable qcam: ControlFrame: Add GUI interaction to float controls qcam: ControlFrame: Add GUI way to interact with ControlTypeIntger32 qcam: ControlFrame: Implement Current Values for integer types src/qcam/assets/feathericons/feathericons.qrc | 1 + src/qcam/main_window.cpp | 63 ++++- src/qcam/main_window.h | 12 + src/qcam/meson.build | 6 + src/qcam/settings/control_frame.cpp | 218 ++++++++++++++++++ src/qcam/settings/control_frame.h | 54 +++++ src/qcam/settings/controls_tab.cpp | 68 ++++++ src/qcam/settings/controls_tab.h | 40 ++++ src/qcam/settings/settings_dialog.h | 47 ++++ src/qcam/settings/slider.h | 138 +++++++++++ 10 files changed, 644 insertions(+), 3 deletions(-) create mode 100644 src/qcam/settings/control_frame.cpp create mode 100644 src/qcam/settings/control_frame.h create mode 100644 src/qcam/settings/controls_tab.cpp create mode 100644 src/qcam/settings/controls_tab.h create mode 100644 src/qcam/settings/settings_dialog.h create mode 100644 src/qcam/settings/slider.h